| ## $model here is a PageModel |
| ## $entry here is a WeblogEntryWrapper |
| <!-- _day --> |
| <div class="dayBox"> |
| |
| <div class="dayTitle"> |
| $utils.formatDate($day, $text.get("macro.weblog.date.toStringFormat")) |
| </div> |
| |
| #foreach( $entry in $entries ) |
| <div class="entryBox"> |
| <a name="$utils.encode($entry.anchor)" id="$utils.encode($entry.anchor)"></a> |
| <p class="entryTitle">$entry.title</p> |
| <p class="entryContent"> |
| #if($model.permalink) |
| $entry.displayContent |
| #else |
| $entry.displayContent($url.entry($entry.anchor)) |
| #end |
| </p> |
| <p class="entryInfo"> |
| Posted at <a href="$url.entry($entry.anchor)">$utils.formatDate($entry.pubTime, $text.get("macro.weblog.datetime.toStringFormat"))</a> |
| by $entry.creator.screenName in <span class="category">$entry.category.name</span> | |
| #if ($utils.isUserAuthorizedToAuthor($entry.website)) |
| <a href="$url.editEntry($entry.anchor)">$text.get("generic.edit")</a> | |
| #end |
| #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 |
| </p> |
| #showTrackbackAutodiscovery($entry) |
| </div> |
| #end |
| |
| </div> |