summaryrefslogtreecommitdiff
path: root/app/php/controls/HeaderMenu.tpl
blob: 603a23199fb6dfcc2df814e9b5ffc0aacd087a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<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>
  <com:THyperLink Text="Admin calendars">
    <prop:NavigateUrl><%= $this->Service->constructUrl('Admin') %></prop:NavigateUrl>
    <prop:Visible><%= $this->User->getIsAdmin() %></prop:Visible>
  </com:THyperLink>
</nav>