Changeset 1864
- Timestamp:
- 11/05/08 14:42:04 (2 months ago)
- Location:
- siteapp/trunk/opengeo/almanac/templates
- Files:
-
- 2 modified
-
appindex.pt (modified) (2 diffs)
-
storyindex.pt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
siteapp/trunk/opengeo/almanac/templates/appindex.pt
r1843 r1864 97 97 </div><!-- /.crossbar --> 98 98 <div class="container"> 99 <div class="almanac-list span-15" >99 <div class="almanac-list span-15" tal:define="num_almanacs view/number_of_almanacs"> 100 100 <div class="box"> 101 <h3>Almanacs <span class="result-count">(showing <span tal:replace="view/number_of_almanacs" /> communities)</span></h3> 102 <div tal:condition="view/number_of_almanacs" id="spinner" class="spinner"></div> 101 <h3>Almanacs 102 <span class="result-count" tal:condition="python:num_almanacs > 1"> 103 (showing <span tal:replace="num_almanacs" /> communities) 104 </span> 105 </h3> 106 <div tal:condition="num_almanacs" id="spinner" class="spinner"></div> 103 107 <div id="app-almanacs-container"></div> 104 108 <div class="undisplayed"> … … 146 150 title item/dc:title; 147 151 alt item/dc:title" /> 148 <div class="summary" >152 <div class="summary" tal:define="num_comments python:len(item.keys())"> 149 153 <a tal:content="item/dc:title_or_name" tal:attributes="href item/@@absolute_url" /><br /> 150 <span tal:replace="item/__parent__/dc:title_or_name"></span> - <span tal:replace=" python:len(item.keys())" /> comments154 <span tal:replace="item/__parent__/dc:title_or_name"></span> - <span tal:replace="num_comments" /> comment<tal:omit condition="python:num_comments!=1">s</tal:omit> 151 155 </div> 152 156 </li> -
siteapp/trunk/opengeo/almanac/templates/storyindex.pt
r1845 r1864 111 111 112 112 <!-- comments --> 113 <div class="story-comments" tal:define="comments view/sorted_comments ">113 <div class="story-comments" tal:define="comments view/sorted_comments; num_comments python:len(comments)"> 114 114 115 <div id="comment-list-header" class="selfclear" tal:condition="python: len(comments)> 0">116 <h3><tal:count replace=" python:len(comments)"/> Comment(s)</h3>115 <div id="comment-list-header" class="selfclear" tal:condition="python:num_comments > 0"> 116 <h3><tal:count replace="num_comments"/> Comment<tal:omit condition="python:num_comments>1">s</tal:omit></h3> 117 117 <a class="add-comment" tal:attributes="href string:${view/url}#commentform">Leave a Comment <span>⊕</span></a> 118 118 </div><!-- end .comment-list-header --> 119 119 120 <div class="story-comment " tal:repeat="comment comments">120 <div class="story-comment selfclear" tal:repeat="comment comments"> 121 121 <div class="comment-meta"> 122 122 <a class="comment-author" tal:condition="comment/website | nothing" tal:attributes="href comment/website"
