summaryrefslogtreecommitdiff
path: root/app/php/components/HeaderMenu.tpl
blob: ff1d417f3f6ad94419ac5234e9b230b9cbc43f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<nav role="navigation">
  <com:THyperLink Text="Login">
    <prop:NavigateUrl><%= $this->Service->constructUrl('Login') %></prop:NavigateUrl>
    <prop:Visible><%= $this->User->IsGuest %></prop:Visible>
  </com:THyperLink>
  <com:THyperLink Text="Profile">
    <prop:NavigateUrl><%= $this->Service->constructUrl('Profile') %></prop:NavigateUrl>
    <prop:Visible><%= !$this->User->IsGuest %></prop:Visible>
  </com:THyperLink>
  <com:TActiveLinkButton OnCommand="logoutUser">
    <prop:Text>Logout (<%= $this->User->Name %>)</prop:Text>
    <prop:Visible><%= !$this->User->IsGuest %></prop:Visible>
  </com:TActiveLinkButton>
  <com:THyperLink Text="New user">
    <prop:NavigateUrl><%= $this->Service->constructUrl('Signup') %></prop:NavigateUrl>
    <prop:Visible><%= $this->User->getIsAdmin() %></prop:Visible>
  </com:THyperLink>
</nav>