Skip to content

Commit

Permalink
Fix #12300 - Logout button hidden behind issue # box
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryn Warriner committed Aug 27, 2010
1 parent 839f1d6 commit 02aac88
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
18 changes: 10 additions & 8 deletions core/html_api.php
Expand Up @@ -855,15 +855,8 @@ function print_menu() {

# Logout (no if anonymously logged in)
if( !current_user_is_anonymous() ) {
$t_menu_options[] = '<a href="' . helper_mantis_url( 'logout_page.php">' ) . lang_get( 'logout_link' ) . '</a>';
$t_menu_options[] = '<a id="logout-link" href="' . helper_mantis_url( 'logout_page.php">' ) . lang_get( 'logout_link' ) . '</a>';
}
echo '<div class="main-menu">';
echo '<ul class="menu">';
echo '<li>';
echo implode( $t_menu_options, "</li>\n<li>" );
echo '</li>';
echo '</ul>';
echo '</div>';
echo '<div class="bug-jump">';
echo '<form method="post" action="' . helper_mantis_url( 'jump_to_bug.php" class="bug-jump-form">' );
# CSRF protection not required here - form does not result in modifications
Expand All @@ -875,6 +868,15 @@ function print_menu() {
echo '<input type="submit" class="button-small" value="' . lang_get( 'jump' ) . '" />&nbsp;';
echo '</form>';
echo '</div>';
echo '<div class="main-menu">';
echo '<div>';
echo '<ul class="menu">';
echo '<li>';
echo implode( $t_menu_options, "</li>\n<li>" );
echo '</li>';
echo '</ul>';
echo '</div>';
echo '</div>';
}
}

Expand Down
15 changes: 8 additions & 7 deletions css/default.css
Expand Up @@ -91,11 +91,13 @@ td.login-info-left { width: 33%; padding: 0px; text-align: left; }
td.login-info-middle { width: 33%; padding: 0px; text-align: center; }
td.login-info-right { width: 33%; padding: 0px; text-align: right; white-space: nowrap; }

.main-menu { float: left; width:100%; margin: 0; padding: 0; overflow: hidden; font-size: 1em; position: relative; border: 1px solid #999; background-color: #e8e8e8; z-index: 99; }
.main-menu ul { clear: left; float: left; list-style: none; position: relative; left: 50%; margin: 0 0 0 -3em; padding: .25em; }
.main-menu ul li { display:block; float: left; list-style: none; padding: .5em; margin: 0; position: relative; right: 50%; }
.main-menu ul li a { padding-left: .9em; border-left: 1px solid #000; text-decoration: underline; }
.main-menu ul li:first-child > a { padding-left: 0; border-left: none; }
.bug-jump { display:block; float: right; padding: .25em; margin: 0; position: relative; top: .3em; z-index: 100; }
.main-menu { float: right; width:100%; margin: 0; padding: 0; overflow: hidden; font-size: 1em; position: relative; top: -2em; border: 1px solid #999; background-color: #e8e8e8; z-index: 99; }
.main-menu div { width: 93.75%; }
.main-menu ul { clear: left; float: left; list-style: none; position: relative; left: 50%; margin: 0 0 0 -3.75em; padding: .25em; width: 90%; }
.main-menu ul li { display:block; float: left; list-style: none; padding: .15em .5em; margin: 0; position: relative; right: 50%; }
.main-menu ul li a { padding-right: .9em; border-right: 1px solid #000; text-decoration: underline; }
.main-menu ul li > a#logout-link { padding-right: 0; border-right: none; }

#manage-menu, #account-menu, #summary-menu , #summary-submenu, #manage-config-menu { float: left; width: 100%; margin: 0; padding: 0; overflow: hidden; font-size: 1em; position: relative; top: -1.5em; }
#manage-menu ul, #manage-config-menu ul, #summary-menu ul, #summary-submenu ul { clear: left; float: left; list-style: none; position: relative; left: 50%; padding: 0; margin: 0; text-align: center; }
Expand Down Expand Up @@ -126,11 +128,10 @@ span.permalink:after,
span.switch-view:after { content: "]" }

#content { position: relative; top: 0; margin: 0; padding: .5em; }
.recently-visited { position: relative; top: .5em; right: -14em; float: right; text-align: right; font-size: x-small; }
.recently-visited { position: relative; top: -2.5em; float: right; text-align: right; font-size: x-small; }

br { clear:both; }

.bug-jump { position: relative; top: -2.5em; right: .5em; float: right; z-index: 100; }
.field-default { color: #999; }

td.menu
Expand Down

0 comments on commit 02aac88

Please sign in to comment.