Merge pull request #347 from ZogStriP/put-a-gear-button-on-it

added the gear icon to the "Admin" button on the user page
This commit is contained in:
Neil Lalonde 2013-03-04 06:27:37 -08:00
commit 40f5b9170d
1 changed files with 7 additions and 7 deletions

View File

@ -4,23 +4,23 @@
<h1>{{content.name}}<span>{{unbound content.username}}</span></h1>
{{#if viewingSelf}}
<button {{action "logout" target="Discourse"}} class='btn'>{{i18n user.log_out}}</button>
<button {{action "logout" target="Discourse"}} class='btn'>{{i18n user.log_out}}</button>
{{/if}}
{{#if Discourse.currentUser.admin}}
<a href="/admin/users/{{unbound content.username_lower}}" class='btn'>{{i18n admin.user.show_admin_profile}}</a>
<a href="/admin/users/{{unbound content.username_lower}}" class='btn'><i class="icon-cog"></i>&nbsp;{{i18n admin.user.show_admin_profile}}</a>
{{/if}}
<ul class="nav nav-pills">
<li>
{{#linkTo 'user.activity'}}{{i18n user.activity_stream}}{{/linkTo}}
</li>
</li>
{{#if controller.canSeePrivateMessages}}
<li>
{{#linkTo "user.privateMessages"}}{{i18n user.private_messages}}{{/linkTo}}
</li>
{{/if}}
</li>
{{/if}}
<li>
{{#linkTo 'user.invited'}}{{i18n user.invited.title}}{{/linkTo}}
</li>
</li>
{{#if content.can_edit}}
<li>
{{#linkTo 'preferences'}}{{i18n user.preferences}}{{/linkTo}}
@ -34,7 +34,7 @@
</div>
</div>
<div class="container">
<div class='user-info clearfix'>
<div class='user-info clearfix'>
<div class='about-me'>
{{{content.bio_excerpt}}}
</div>