summaryrefslogtreecommitdiff
path: root/app/php/controls/HeaderMenu.tpl
blob: b50c4ef803a17e1bbdd468a68f2e533d97f805f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<nav role="navigation">
  <com:TActiveLinkButton Text="Login" OnCommand="loginUser">
    <prop:Visible><%= $this->User->IsGuest %></prop:Visible>
  </com:TActiveLinkButton>
  <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>