Skip to content

Commit eeb719d

Browse files
committed
Small fixes
1 parent 54d499e commit eeb719d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

admin/dashboard.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class="line text-muted"></div>
3939
<h3><?php echo _("New incident");?></h3>
4040
<form id="new-incident" action="<?php echo WEB_URL;?>/admin/?new=incident" method="POST" class="clearfix">
41-
<article class="panel">
41+
<div class="panel">
4242
<?php if (isset($message))
4343
{?>
4444
<p class="alert alert-danger"><?php echo $message?></p>
@@ -63,8 +63,8 @@
6363
}
6464
?>
6565
</div>
66-
</article>
67-
<article class="panel new panel-primary">
66+
</div>
67+
<div class="panel new panel-primary">
6868
<div class="panel-heading icon">
6969
<i class="glyphicon glyphicon-info-sign"></i>
7070
</div>
@@ -77,7 +77,7 @@
7777
<div class="panel-footer clearfix">
7878
<small><?php echo _("Posted by");?>: <?php echo $user->get_username();?> <span class="pull-right" id="end_time_wrapper"><?php echo _("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="<?php echo _("End time");?>" value="<?php echo (isset($_POST['end_time'])?htmlspecialchars($_POST['end_time']):''); ?>"></span></small>
7979
</div>
80-
</article>
80+
</div>
8181
<select class="form-control pull-left" id="type" name="type">
8282
<?php
8383
if (isset($_POST['type']))

classes/incident.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function render($admin=0){
176176
<div class="panel-footer clearfix">
177177
<small><?php echo _("Posted by");?>: <?php echo $this->username;
178178
if (isset($this->end_date)){?>
179-
<span class="pull-right"><?php echo strtotime($this->end_date)>time()?_("Ending"):_("Ended");?>: <time class="pull-right timeago" datetime="<?php echo $this->end_date; ?>"><?php echo $this->end_date; ?></time></span>
179+
<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>
180180
<?php } ?>
181181
</small>
182182
</div>

template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ public static function render_footer($admin = false)
137137
<span class="caret"></span>
138138
<span class="sr-only"><?php echo _("Toggle Dropdown");?></span>
139139
</button>
140-
<ul class="dropdown-menu">
140+
<div class="dropdown-menu">
141141
<?php
142142
foreach ($lang_names as $key => $value) {
143143
echo '<a href="?lang='.$key.'"><img src="'.WEB_URL.'/locale/'.$key.'/flag.png" alt="'.$value.'">'.$value.'</a>';
144144
}
145145
?>
146146
<hr role="separator" class="divider">
147147
<a href="https://poeditor.com/join/project/37SpmJtyOm"><?php echo _("Help with translation!");?></a>
148-
</ul>
148+
</div>
149149
</div>
150150
</div>
151151
<div class="col-md-4 text-right"><a href="https://github.com/Pryx/server-status/" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a></div>

0 commit comments

Comments
 (0)