This commit is contained in:
Vojtěch Sajdl 2017-12-12 14:17:10 +01:00
parent 3e973ad9de
commit f2600d0c56
No known key found for this signature in database
GPG Key ID: 5D4EB1361A272390
4 changed files with 16 additions and 7 deletions

View File

@ -73,7 +73,7 @@ render_header("Dashboard", true);
<div class="panel-body">
<textarea name="text" placeholder="Here goes your text..." required><?php echo htmlspecialchars($_POST['text']); ?></textarea>
</div>
<div class="panel-footer">
<div class="panel-footer clearfix">
<small>Posted by: <?php echo $user->get_username();?> <span class="pull-right" id="end_time_wrapper">Ending:&nbsp;<input id="end_time" title="Use ISO 8601 format (e.g. 2017-11-23T19:50:51+00:00)" type="text" pattern="(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))" name="end_time" class="pull-right" placeholder="End time" value="<?php echo htmlspecialchars($_POST['end_time']); ?>"></span></small>
</div>
</article>

View File

@ -139,7 +139,7 @@ class Incident
<div class="panel-body">
<?php echo $this->text; ?>
</div>
<div class="panel-footer">
<div class="panel-footer clearfix">
<small>Posted by: <?php echo $this->username;
if (isset($this->end_date)){?>
<span class="pull-right"><?php echo strtotime($this->end_date)>time()?"Ending:":"Ended:";?>&nbsp;<time class="pull-right timeago" datetime="<?php echo $this->end_date; ?>"><?php echo $this->end_date; ?></time></span>

View File

@ -54,7 +54,10 @@ a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-collapse
{
background: #2f60a3;
}
.navbar-default {
z-index: 200;
background-color: #2f60a3;
@ -113,8 +116,9 @@ div.center {
.service{
float: left;
width:70%;
min-width: 250px;
box-sizing: border-box;
width:60%;
min-width: 200px;
padding: 15px 35px;
font-weight: bold;
font-size: 16px;
@ -129,8 +133,9 @@ a h1{
.status{
float: left;
width:30%;
min-width: 100px;
box-sizing: border-box;
width:40%;
min-width: 150px;
padding: 15px 35px;
text-align: right;
font-size: 14px;

View File

@ -9,6 +9,10 @@ function timeago()
(function(){
timeago();
$("body").on("click", ".navbar-toggle", function(){
$($(this).data("target")).toggleClass("collapse");
});
var incidents = $('.timeline');
$("body").on("click", "#loadmore", function(e){