optimize navbar for 1024 px width

This commit is contained in:
Philip Häusler 2014-09-24 15:03:41 +02:00
parent 086ddc2248
commit 094715e6ee
5 changed files with 4 additions and 5 deletions

View File

@ -48,7 +48,7 @@ function make_langselect() {
$items = array();
foreach ($locales as $locale => $name)
$items[] = toolbar_item_link(htmlspecialchars($URL) . $locale, '', '<img src="pic/flag/' . $locale . '.png" alt="' . $name . '" title="' . $name . '"> ' . $name);
return toolbar_dropdown('', '<img src="pic/flag/' . $_SESSION['locale'] . '.png" alt="' . $locales[$_SESSION['locale']] . '" title="' . $locales[$_SESSION['locale']] . '"> ' . $locales[$_SESSION['locale']], $items);
return toolbar_dropdown('', '<img src="pic/flag/' . $_SESSION['locale'] . '.png" alt="' . $locales[$_SESSION['locale']] . '" title="' . $locales[$_SESSION['locale']] . '">', $items);
}
?>

View File

@ -9,7 +9,7 @@ function user_unread_messages() {
if (isset($user)) {
$new_messages = sql_num_query("SELECT * FROM `Messages` WHERE isRead='N' AND `RUID`=" . sql_escape($user['UID']));
if ($new_messages > 0)
return '<span class="badge pull-right">' . $new_messages . '</span>';
return ' <span class="badge">' . $new_messages . '</span>';
}
return '';
}

View File

@ -1,6 +1,6 @@
<?php
function shifts_title() {
return _("All Shifts");
return _("Shifts");
}
function user_shifts() {

View File

@ -52,7 +52,6 @@ function make_navigation() {
$pages = array(
"news" => news_title(),
"user_meetings" => meetings_title(),
"user_myshifts" => myshifts_title(),
"user_shifts" => shifts_title(),
"angeltypes" => angeltypes_title(),
"user_messages" => messages_title() . ' ' . user_unread_messages(),

View File

@ -22,7 +22,7 @@
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="?"><span class="icon-icon_angel"></span> <strong>ENGELSYSTEM</strong></a>
<a class="navbar-brand" href="?"><span class="icon-icon_angel"></span> <strong class="visible-lg-inline">ENGELSYSTEM</strong></a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-1">%menu% %header_toolbar%</div>
</div>