[cmsiki-svn] SF.net SVN: cmsiki: [8] trunk/cmsiki
Status: Pre-Alpha
Brought to you by:
cnu
From: <cn...@us...> - 2007-03-24 16:10:31
|
Revision: 8 http://cmsiki.svn.sourceforge.net/cmsiki/?rev=8&view=rev Author: cnu Date: 2007-03-24 09:10:26 -0700 (Sat, 24 Mar 2007) Log Message: ----------- Category link to each post Modified Paths: -------------- trunk/cmsiki/static/css/style.css trunk/cmsiki/templates/base.html trunk/cmsiki/templates/story/story_archive.html trunk/cmsiki/templates/story/story_archive_day.html trunk/cmsiki/templates/story/story_archive_month.html trunk/cmsiki/templates/story/story_detail.html Modified: trunk/cmsiki/static/css/style.css =================================================================== --- trunk/cmsiki/static/css/style.css 2007-03-24 16:08:37 UTC (rev 7) +++ trunk/cmsiki/static/css/style.css 2007-03-24 16:10:26 UTC (rev 8) @@ -363,6 +363,10 @@ background: url(../images/bg_arrow_right_2.gif) no-repeat 0px 8px; } +.paginatelinks { + text-align:center; + padding-bottom:10px; + } /* COMMENTS TEMPLATE */ .post h3#comments, .post h3#respond{ Modified: trunk/cmsiki/templates/base.html =================================================================== --- trunk/cmsiki/templates/base.html 2007-03-24 16:08:37 UTC (rev 7) +++ trunk/cmsiki/templates/base.html 2007-03-24 16:10:26 UTC (rev 8) @@ -16,7 +16,7 @@ href="http://localhost/wordpress/?feed=atom" /> --> </head> <body> - <div id="container" > + <div id="container"> <div id="header"> <div id="menu"> <ul> @@ -140,16 +140,7 @@ <p class="postinfo"> Filed - under: <a href="http://localhost/wordpress/?cat=1" - title="View all posts in Uncategorized" - rel="category - tag">Uncategorized</a>, - <a href="http://localhost/wordpress/?cat=2" - title="View all posts in cmsiki" - rel="category tag">cmsiki</a>, - <a href="http://localhost/wordpress/?cat=3" - title="View all posts in themes" rel="category - tag">themes</a> | + under: {% block postcategory %}{% endblock %}| <a href="http://localhost/wordpress/?p=4#respond" title="Comment on New Digg theme">No Comments Modified: trunk/cmsiki/templates/story/story_archive.html =================================================================== --- trunk/cmsiki/templates/story/story_archive.html 2007-03-24 16:08:37 UTC (rev 7) +++ trunk/cmsiki/templates/story/story_archive.html 2007-03-24 16:10:26 UTC (rev 8) @@ -8,7 +8,7 @@ <div class="postinfo">Posted on <span class="postdate">{{ story.pub_date|date:"F j, Y" }}</span> by <strong>{{ story.author }}</strong></div> {{ story.body }} - + <div class="postinfo">Posted under category <a href="/category/{{ story.category }}">{{ story.category }}</a>.</div> </div> {% endfor %} </div> Modified: trunk/cmsiki/templates/story/story_archive_day.html =================================================================== --- trunk/cmsiki/templates/story/story_archive_day.html 2007-03-24 16:08:37 UTC (rev 7) +++ trunk/cmsiki/templates/story/story_archive_day.html 2007-03-24 16:10:26 UTC (rev 8) @@ -8,6 +8,7 @@ <div class="postinfo">Posted on <span class="postdate">{{ story.pub_date|date:"F j, Y" }}</span> by <strong>{{ story.author }}</strong></div> {{ story.body }} + <div class="postinfo">Posted under category <a href="/category/{{ story.category }}">{{ story.category }}</a>.</div> </div> {% endfor %} Modified: trunk/cmsiki/templates/story/story_archive_month.html =================================================================== --- trunk/cmsiki/templates/story/story_archive_month.html 2007-03-24 16:08:37 UTC (rev 7) +++ trunk/cmsiki/templates/story/story_archive_month.html 2007-03-24 16:10:26 UTC (rev 8) @@ -9,8 +9,13 @@ <div class="postinfo">Posted on <span class="postdate">{{ story.pub_date|date:"F j, Y" }}</span> by <strong>{{ story.author }}</strong></div> {{ story.body }} - + <div class="postinfo">Posted under category <a href="/category/{{ story.category }}">{{ story.category }}</a>.</div> </div> {% endfor %} + <div class="paginatelinks"> + <a href="/{{ previous_month|date:"Y/m" }}">{{ previous_month|date:"F" }}</a> + | + <a href="/{{ next_month|date:"Y/m" }}">{{ next_month|date:"F" }}</a> + </div> </div> {% endblock %} Modified: trunk/cmsiki/templates/story/story_detail.html =================================================================== --- trunk/cmsiki/templates/story/story_detail.html 2007-03-24 16:08:37 UTC (rev 7) +++ trunk/cmsiki/templates/story/story_detail.html 2007-03-24 16:10:26 UTC (rev 8) @@ -1,6 +1,16 @@ {% extends "base.html" %} {% block title %}{{ object.title }}{% endblock %} +{% block categories %} +<ul> + {% for category in categories %} + <li><a href="/category/{{ category }}" + title="View all posts filed under {{ category }}">{{ category }}</a> + </li> + {% endfor %} +</ul> +{% endblock %} + {% block post %} <div class="post"> <h2><a href="{{ object.get_absolute_url }}">{{ object.title }}</a></h2> @@ -13,5 +23,7 @@ {{ object.body }} </div> + <div class="postinfo">Posted under category <a href="/category/{{ object.category }}">{{ object.category }}</a>.</div> +{{ category }} </div> {% endblock %} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |