-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday.vm
executable file
·65 lines (49 loc) · 1.86 KB
/
day.vm
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
49
50
51
52
53
54
55
56
57
58
59
#if(!$model.permalink)
<div class="daybox">
#end
#foreach( $entry in $entries )
<div class="entryBox">
<a name="$utils.encode($entry.anchor)" id="$utils.encode($entry.anchor)"></a>
#if($model.permalink)
<h2 class="entryTitle">$entry.title</h2>
#else
<h2 class="entryTitle"><a href="$entry.permalink">$entry.title</a></h2>
#end
<p class="lead">by <span style="text-transform: capitalize;">$entry.creator.screenName</span></p>
<hr>
<p><i class="icon-time"></i> Posted on $utils.formatDate($day, "EEEE MMM dd, yyyy") at $utils.formatDate($entry.pubTime, "hh:mma") in <span class="category">$entry.category.name</span> </p>
<hr>
<div class="entryContent">
#if($model.permalink)
<p>$entry.displayContent</p>
#else
<p>$entry.summary</p>
<a class="btn btn-primary" href="$url.entry($entry.anchor)">Read More <i class="icon-angle-right"></i></a>
#end
</div>
<p class="entryInfo" style="clear: right">
#set($commentCount = $entry.commentCount)
#if($entry.commentsStillAllowed || $commentCount > 0)
#set($link = "$url.comments($entry.anchor)" )
<a href="$link" class="commentslink">$text.get("macro.weblog.comments") [$commentCount]</a>
#end
#if ($utils.isUserAuthorizedToAuthor($entry.website))
|
<a href="$url.editEntry($entry.anchor)">
$text.get("macro.weblog.entrypermalink.edit")</a>
#end
</p>
#if ($entry.tags && $entry.tags.size() > 0)
<p class="entryInfo" style="clear: right">
Tags:
#foreach($tag in $entry.tags)
<a class="tagLink" href="$url.tag($tag.name)">$tag.name</a>
#end
</p>
#end
</div>
<hr>
#end
#if(!$model.permalink)
</div>
#end