Move link to profile to operator's name in the top right corner

Fixes #93
This commit is contained in:
Dmitriy Simushev 2014-12-24 15:30:21 +00:00
parent fb83027a1e
commit 31d602986e
2 changed files with 9 additions and 4 deletions

View File

@ -31,7 +31,15 @@
</div>
{{#if operator}}
<div id="path"><p>{{l10n "You are {0}" operator}}</p></div>
<div id="path">
<p>
{{#if currentopid}}
{{{l10n "You are <a href=\"{0}\">{1}</a>" (route "operator_edit" operator_id=currentopid) operator}}}
{{else}}
{{{l10n "You are <a href=\"{0}\">{1}</a>" "#" operator}}}
{{/if}}
</p>
</div>
{{else}}
{{#if show_small_login}}
<div id="login-small-pane">

View File

@ -38,9 +38,6 @@
<li{{#ifEqual menuid "mail_templates"}} class="active"{{/ifEqual}}><a href="{{route "mail_templates"}}">{{l10n "Mail templates"}}</a></li>
<li{{#ifEqual menuid "about"}} class="active"{{/ifEqual}}><a href="{{route "about"}}">{{l10n "About"}}</a></li>
{{/if}}
{{#if currentopid}}
<li{{#ifEqual menuid "profile"}} class="active"{{/ifEqual}}><a href="{{route "operator_edit" operator_id=currentopid}}">{{l10n "Profile"}}</a></li>
{{/if}}
</ul>
</li>
<li>