/
modTopStories.xsp
48 lines (45 loc) · 2 KB
/
modTopStories.xsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xe="http://www.ibm.com/xsp/coreex" xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom"
pageTitle="Moderated - Top Stories | Collaboration Today">
<xc:moderationLayout pageHeader="News Entries - Approved / Moderated - Top Stories">
<xp:this.facets>
<xc:moderationLeftColumn xp:key="leftColumn"/>
</xp:this.facets>
<xp:panel loaded="${javascript:configCache.isUserTopStoriesModerator(@UserName())}">
<br />
<xp:text tagName="h4" styleClass="" value="Top"/>
<br />
<xp:repeat id="repedatasdf2" var="entryMTT" rows="10" value="${newsCache.topTopStories}">
<xc:moderationNewsEntry id="ndifm"
link="#{entryMTT.link}"
nID="#{entryMTT.ID}"
personDisplayName="#{javascript:personsCache.getPerson(entryMTT.getPID()).getDisplayName()}"
publicationDate="#{entryMTT.prettyTime}"
title="#{entryMTT.title}"
state="#{entryMTT.state}"
clicksTotal="#{entryMTT.clicksTotal}"
clicksLastWeek="#{entryMTT.clicksLastWeek}"
showRemoveTopStoryButton="yes">
</xc:moderationNewsEntry>
</xp:repeat>
</xp:panel>
<xp:repeat id="lkjljsdf" rows="30" value="${configCache.categories}" indexVar="index2" var="category">
<br />
<xp:text tagName="h4" styleClass="" value="#{category.displayName}"/>
<br />
<xp:repeat id="r2epeadfat3" var="entryMTC" rows="10" value="#{javascript:newsCache.getTopStories(category.getID())}">
<xc:moderationNewsEntry id="ndiflkjm"
link="#{entryMTC.link}"
nID="#{entryMTC.ID}"
personDisplayName="#{javascript:personsCache.getPerson(entryMTC.getPID()).getDisplayName()}"
publicationDate="#{entryMTC.prettyTime}"
title="#{entryMTC.title}"
state="#{entryMTC.state}"
clicksTotal="#{entryMTC.clicksTotal}"
clicksLastWeek="#{entryMTC.clicksLastWeek}"
showRemoveTopStoryButton="yes">
</xc:moderationNewsEntry>
</xp:repeat>
</xp:repeat>
</xc:moderationLayout>
</xp:view>