-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show tags on recently published content page
- Loading branch information
Graham Tackley
committed
Dec 19, 2011
1 parent
cc3f9a2
commit 85b060c
Showing
4 changed files
with
48 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,36 @@ | ||
@(content: List[controllers.PublishedContent]) | ||
<div class="well"> | ||
<!-- | ||
<div style="float:right"> | ||
<label style="padding: 0"> | ||
<input type="checkbox" name="tags-toggle" id="tags-toggle"> | ||
<span>show tags</span> | ||
</label> | ||
</div> | ||
--> | ||
<div>@content.size items</div> | ||
</div> | ||
|
||
<table> | ||
@for(c <- content) { | ||
<tr> | ||
<td>@c.publicationDate.toString("d MMM HH:mm:ss")</td> | ||
<td><span class="label percent-cps @c.cssClass">@c.hitsPerSec</span> | ||
@Html(c.section) <a href="@c.url">@Html(c.title)</a></td> | ||
<td> | ||
<span class="label percent-cps @c.cssClass">@c.hitsPerSec</span> | ||
@Html(c.section) <a href="@c.url">@Html(c.title)</a> | ||
<ol class="tag-list"> | ||
@for(t <- c.tags) { | ||
<li><a href="@t.webUrl">@t.webTitle</a></li> | ||
} | ||
</ol> | ||
</td> | ||
</tr> | ||
} | ||
</table> | ||
</table> | ||
|
||
|
||
<script type="text/javascript"> | ||
$("#tags-toggle").change(function() { | ||
console.log("change clicked!") | ||
}) | ||
</script> |