diff options
Diffstat (limited to 'app/php/controls/HeaderMenu.tpl')
-rw-r--r-- | app/php/controls/HeaderMenu.tpl | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/app/php/controls/HeaderMenu.tpl b/app/php/controls/HeaderMenu.tpl index a7e666d..a760588 100644 --- a/app/php/controls/HeaderMenu.tpl +++ b/app/php/controls/HeaderMenu.tpl @@ -1,27 +1,35 @@ <nav role="navigation"> - <com:TActiveLinkButton Text="Login" OnCommand="loginUser"> + <com:TActiveLinkButton OnCommand="loginUser"> + <prop:Text><%[ Login ]%></prop:Text> <prop:Visible><%= $this->User->IsGuest %></prop:Visible> <prop:ClientSide.OnFailure>window.location.replace('<%= $this->Service->constructUrl('Login') %>')</prop:ClientSide.OnFailure> <prop:ClientSide.OnException>window.location.replace('<%= $this->Service->constructUrl('Login') %>')</prop:ClientSide.OnException> </com:TActiveLinkButton> - <com:THyperLink Text="Profile"> + <com:THyperLink> + <prop:Text><%[ Profile ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Profile') %></prop:NavigateUrl> <prop:Visible><%= !$this->User->IsGuest %></prop:Visible> </com:THyperLink> - <com:THyperLink Text="Calendar list"> + <com:THyperLink> + <prop:Text><%[ Calendar list ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Select') %></prop:NavigateUrl> </com:THyperLink> <com:TActiveLinkButton OnCommand="logoutUser"> - <prop:Text>Logout (<%= $this->User->Name %>)</prop:Text> + <com:TTranslate> + Logout ({name}) + <com:TTranslateParameter Key="name"><%= $this->User->Name %></com:TTranslateParameter> + </com:TTranslate> <prop:Visible><%= !$this->User->IsGuest %></prop:Visible> <prop:ClientSide.OnFailure>window.location.reload()</prop:ClientSide.OnFailure> <prop:ClientSide.OnException>window.location.reload()</prop:ClientSide.OnException> </com:TActiveLinkButton> - <com:THyperLink Text="New user"> + <com:THyperLink> + <prop:Text><%[ New user ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Signup') %></prop:NavigateUrl> <prop:Visible><%= $this->User->getIsAdmin() %></prop:Visible> </com:THyperLink> - <com:THyperLink Text="Admin calendars"> + <com:THyperLink> + <prop:Text><%[ Admin calendars ]%></prop:Text> <prop:NavigateUrl><%= $this->Service->constructUrl('Admin') %></prop:NavigateUrl> <prop:Visible><%= $this->User->getIsAdmin() %></prop:Visible> </com:THyperLink> |