blob: a55b7857ef30183333f9a9dbc1262bb2304e72df (
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->IsAdmin)
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 -->
|