Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<com:TContent ID="Main">
2
 
3
<com:TPanel ID="CategoryPanel" Visible="false" CssClass="category">
4
 
5
<div class="category-name">
6
<%= $this->Category->Name %>
7
<com:THyperLink
8
	Text="[#]"
9
	Tooltip="Edit this category"
10
	Visible=<%= $this->User->IsAdmin %>
11
	NavigateUrl=<%= $this->Service->constructUrl('Posts.EditCategory',array('id'=>$this->Category->ID)) %>
12
	/>
13
<com:TLinkButton
14
	Text="[-]"
15
	Tooltip="Delete this category"
16
	Visible=<%= $this->User->IsAdmin %>
17
	Attributes.onclick="if(!confirm('Are you sure to delete this category? Posts in this category will NOT be removed.')) return false;"
18
	OnClick="deleteButtonClicked" />
19
</div>
20
<div class="category-description">
21
<%= $this->Category->Description %>
22
</div>
23
</com:TPanel>
24
 
25
<com:TRepeater ID="PostList" EnableViewState="false">
26
	<prop:ItemTemplate>
27
<div class="post">
28
<div class="post-title">
29
<%# htmlentities($this->DataItem->Title,ENT_QUOTES,'UTF-8') %>
30
</div>
31
<div class="post-time">
32
<%# date('l, F j, Y \a\t h:i:s a',$this->DataItem->CreateTime) %>
33
</div>
34
<div class="post-content">
35
<%# $this->DataItem->Content %>
36
</div>
37
<div class="post-footer">
38
posted by
39
<%# '<a href="' . $this->Service->constructUrl('Users.ViewUser',array('id'=>$this->DataItem->AuthorID)) . '">' . $this->DataItem->AuthorName . '</a>' %>
40
|
41
<%# '<a href="' . $this->Service->constructUrl('Posts.ViewPost',array('id'=>$this->DataItem->ID)) . '">PermaLink</a>' %>
42
|
43
<%# '<a href="' . $this->Service->constructUrl('Posts.ViewPost',array('id'=>$this->DataItem->ID)) . '#comments">Comments (' . $this->DataItem->CommentCount . ')</a>' %>
44
</div>
45
</div>
46
	</prop:ItemTemplate>
47
</com:TRepeater>
48
 
49
<div class="postlist-pager">
50
<com:THyperLink
51
	ID="PrevPage"
52
	Visible="false"
53
	Text="&lt; Previous Page"
54
	/>
55
<com:THyperLink
56
	ID="NextPage"
57
	Visible="false"
58
	Text="Next Page &gt;"
59
	/>
60
</div>
61
 
62
</com:TContent>