mirror of
https://github.com/discourse/discourse.git
synced 2025-04-30 16:54:46 +08:00
Remove extra anon glyphs, move sign in button.
See: https://meta.discourse.org/t/add-sign-in-to-anonymous-header/15335
This commit is contained in:
parent
17ad49ffbc
commit
2f33c288a6
@ -37,14 +37,18 @@
|
|||||||
<div class='current-username'>
|
<div class='current-username'>
|
||||||
{{#if currentUser}}
|
{{#if currentUser}}
|
||||||
<span class='username'><a {{bind-attr href="currentUser.path"}}>{{currentUser.displayName}}</a></span>
|
<span class='username'><a {{bind-attr href="currentUser.path"}}>{{currentUser.displayName}}</a></span>
|
||||||
{{else}}
|
|
||||||
<button {{action showLogin}} class='btn btn-primary btn-small'>{{i18n log_in}}</button>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
{{#unless currentUser}}
|
||||||
|
<button {{action showLogin}} class='btn btn-primary btn-small login-button'>
|
||||||
|
<i class="fa fa-user"></i>
|
||||||
|
{{i18n log_in}}
|
||||||
|
</button>
|
||||||
|
{{/unless}}
|
||||||
<ul class='icons clearfix' role='navigation'>
|
<ul class='icons clearfix' role='navigation'>
|
||||||
<li class='notifications'>
|
|
||||||
{{#if currentUser}}
|
{{#if currentUser}}
|
||||||
|
<li class='notifications'>
|
||||||
<a class='icon' href="#" {{action showNotifications target="view"}} data-notifications="notifications-dropdown" id='user-notifications' title='{{i18n notifications.title}}'>
|
<a class='icon' href="#" {{action showNotifications target="view"}} data-notifications="notifications-dropdown" id='user-notifications' title='{{i18n notifications.title}}'>
|
||||||
<i class='fa fa-comment'></i>
|
<i class='fa fa-comment'></i>
|
||||||
<span class='sr-only'>{{i18n notifications.title}}</span>
|
<span class='sr-only'>{{i18n notifications.title}}</span>
|
||||||
@ -55,10 +59,8 @@
|
|||||||
{{#if currentUser.unread_private_messages}}
|
{{#if currentUser.unread_private_messages}}
|
||||||
<a href='#' class='badge-notification unread-private-messages'>{{currentUser.unread_private_messages}}</a>
|
<a href='#' class='badge-notification unread-private-messages'>{{currentUser.unread_private_messages}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
|
||||||
<a class='icon' href="#" {{action showLogin}} title='{{i18n notifications.title}}' aria-hidden="true"><i class='fa fa-comment'></i></a>
|
|
||||||
{{/if}}
|
|
||||||
</li>
|
</li>
|
||||||
|
{{/if}}
|
||||||
<li>
|
<li>
|
||||||
{{#if Discourse.loginRequired}}
|
{{#if Discourse.loginRequired}}
|
||||||
<a id='search-button' class='icon expand' href='#' aria-hidden="true" {{action showLogin}}>
|
<a id='search-button' class='icon expand' href='#' aria-hidden="true" {{action showLogin}}>
|
||||||
@ -98,8 +100,8 @@
|
|||||||
<a href='/admin/flags/active' title='{{i18n notifications.total_flagged}}' class='badge-notification flagged-posts'>{{currentUser.site_flagged_posts_count}}</a>
|
<a href='/admin/flags/active' title='{{i18n notifications.total_flagged}}' class='badge-notification flagged-posts'>{{currentUser.site_flagged_posts_count}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
<li class='current-user dropdown'>
|
|
||||||
{{#if currentUser}}
|
{{#if currentUser}}
|
||||||
|
<li class='current-user dropdown'>
|
||||||
<a class='icon'
|
<a class='icon'
|
||||||
data-dropdown="user-dropdown"
|
data-dropdown="user-dropdown"
|
||||||
data-render="renderUserDropdown"
|
data-render="renderUserDropdown"
|
||||||
@ -108,10 +110,8 @@
|
|||||||
id="current-user">
|
id="current-user">
|
||||||
{{boundAvatar currentUser imageSize="medium"}}
|
{{boundAvatar currentUser imageSize="medium"}}
|
||||||
</a>
|
</a>
|
||||||
{{else}}
|
|
||||||
<div class="icon not-logged-in-avatar" aria-hidden="true" {{action showLogin}}><i class='fa fa-user' title='{{i18n not_logged_in_user}}'></i></div>
|
|
||||||
{{/if}}
|
|
||||||
</li>
|
</li>
|
||||||
|
{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{{render "search"}}
|
{{render "search"}}
|
||||||
|
@ -47,9 +47,12 @@
|
|||||||
display:block;
|
display:block;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
button {
|
|
||||||
margin-top: 9px;
|
|
||||||
}
|
}
|
||||||
|
button.login-button {
|
||||||
|
float: left;
|
||||||
|
margin-top: 7px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
.fa { margin-right: 3px; }
|
||||||
}
|
}
|
||||||
.icons {
|
.icons {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -51,14 +51,17 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
button {
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
}
|
||||||
|
button.login-button {
|
||||||
|
float: left;
|
||||||
|
margin-top: 7px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
.fa { margin-right: 3px; }
|
||||||
}
|
}
|
||||||
.icons {
|
.icons {
|
||||||
float: left;
|
float: left;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0 0 0 15px;
|
margin: 0 0 0 5px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
> li {
|
> li {
|
||||||
float: left;
|
float: left;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user