Skip to content

Commit

Permalink
We really only need one "back to the Gallery" link in the banner. Rep…
Browse files Browse the repository at this point in the history
…lace the one on the left with "you are logged in as". Added a bit of height to the admin banner to space out the admin menu from the login menu. Forced the removal of padding-left in g-inline list items.
  • Loading branch information
ckieffer committed Oct 28, 2009
1 parent d182ba9 commit 27571a1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/gallery.common.css
Expand Up @@ -558,8 +558,8 @@ div#g-action-status {

.g-inline li {
float: left;
margin-left: 1.6em;
padding-left: 0;
margin-left: 1.8em;
padding-left: 0 !important;
}

.g-inline li.g-first {
Expand Down
2 changes: 1 addition & 1 deletion themes/admin_wind/css/screen.css
Expand Up @@ -246,7 +246,7 @@ th {
background: transparent url('../../../lib/images/logo.png') no-repeat 0 .5em;
color: #A5A5A5 !important;
display: block;
height: 55px;
height: 65px;
padding-top: 5px;
width: 105px;
}
Expand Down
12 changes: 11 additions & 1 deletion themes/admin_wind/views/admin.html.php
Expand Up @@ -44,7 +44,17 @@
<div id="g-header">
<?= $theme->admin_header_top() ?>
<ul id="g-login-menu" class="g-inline g-right">
<li class="g-first"><?= html::anchor(item::root()->abs_url(), "&larr; ".t("Back to the Gallery")) ?></li>
<li class="g-first">
<? if (identity::is_writable()): ?>
<?= t('Logged in as %name', array('name' => html::mark_clean(
'<a href="' . url::site("form/edit/users/{$user->id}") .
'" title="' . t("Edit Your Profile")->for_html_attr() .
'" id="g-user-profile-link" class="g-dialog-link">' .
html::clean($user->display_name()) . '</a>'))) ?>
<? else: ?>
<?= t('Logged in as %name', array('name' => html::clean($user->display_name()))) ?>
<? endif ?>
</li>
<li id="g-logout-link"><a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(item::root()->url())) ?>"><?= t("Logout") ?></a></li>
</ul>
<a id="g-logo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery")->for_html_attr() ?>">
Expand Down

0 comments on commit 27571a1

Please sign in to comment.