summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Portlets/AccountPortlet.tpl
blob: 2a401f417ac12a0b6171f3ef8b7bf12183b930b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<div class="portlet">

<h2 class="portlet-title">Account</h2>

<div class="portlet-content">
Welcome, <b><%= $this->User->Name %></b>!
<ul>
<li><a href="<%= $this->Service->constructUrl('Posts.NewPost') %>">New post</a></li>
<li><a href="<%= $this->Service->constructUrl('Posts.MyPost') %>">My post</a></li>
<li><a href="<%= $this->Service->constructUrl('Users.ViewUser',array('id'=>$this->User->ID)) %>">Profile</a></li>
<%%
if($this->User->isInRole('admin'))
    echo '<li><a href="'.$this->Service->constructUrl('Admin.PostMan').'">Admin</a></li>';
%>
<li><com:TLinkButton Text="Logout" OnClick="logout" /></li>
</ul>

</div><!-- end of portlet-content -->

</div><!-- end of portlet -->