Changeset 1292:4440311a6b29
- Timestamp:
- 01/11/10 15:21:46 (2 years ago)
- Branch:
- default
- Location:
- zine
- Files:
-
- 4 edited
-
shared/admin/style.css (modified) (1 diff)
-
templates/admin/_comment.html (modified) (1 diff)
-
templates/admin/index.html (modified) (2 diffs)
-
templates/admin/manage_comments.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zine/shared/admin/style.css
r1217 r1292 336 336 } 337 337 338 div.contents div.per_page { 339 float: right; 340 } 341 338 342 div.contents pre, 339 343 div.contents tt, -
zine/templates/admin/_comment.html
r1062 r1292 34 34 {% endif %} 35 35 ] 36 <a href="{{ url_for( comment.post)|e }}">{%- if comment.post.title %}{{36 <a href="{{ url_for('admin/edit_post', post_id=comment.post.id)|e }}">{%- if comment.post.title %}{{ 37 37 comment.post.title|e }}{%- else %}<em>#</em>{%- endif %}</a></p> 38 38 {%- endmacro %} -
zine/templates/admin/index.html
r1286 r1292 52 52 {{ comment.pub_date|datetimeformat('short') }} 53 53 on <a href="{{ url_for(comment.post) }}">{%- if comment.post.title %}{{ comment.post.title|e }}{%- else %}<em>#</em>{%- endif %}</a> 54 [<a href="{{ url_for('admin/edit_post', post_id=comment.post.id) }}">{{ _('edit') }}</a>] 54 55 <p class="actions"> 55 56 <a href="{{ url_for('admin/edit_comment', comment_id=comment.id)|e … … 68 69 <li><a href="{{ url_for('admin/edit_post', post_id=post.id) 69 70 }}">{%- if post.title %}{{ post.title|e }}{%- else %}<em>#</em>{%- endif %}</a>, {{ post.pub_date|datetimeformat('short') }} 71 [<a href="{{ url_for(post) }}">{{ _('show') }}</a>] 70 72 {%- endfor %} 71 73 </ul> -
zine/templates/admin/manage_comments.html
r1145 r1292 18 18 {% if form.comments %} 19 19 <div class="actions"> 20 <div id="per_page" style="float: right;">20 <div class="per_page"> 21 21 {{ form.per_page.label() }} 22 22 {{ form.per_page() }} 23 <input type="submit" name="per_page_update" id="per_page_update"value="{{ _('Update') }}">23 <input type="submit" name="per_page_update" value="{{ _('Update') }}"> 24 24 </div> 25 25 {% if admin.active_pane == 'comments.unmoderated' %} … … 57 57 <script type="text/javascript"> 58 58 $(function() { 59 var ppuButton = $('input[name="per_page_update"]').hide(); 59 60 $('<input type="button" value="{{ _('Toggle selection') }}">') 60 61 .click(function() { … … 65 66 .appendTo('div.actions'); 66 67 $('#f_per_page').bind('change', function() { 67 $('#per_page_update').click();68 ppuButton.click(); 68 69 }); 69 $('#per_page_update').hide();70 70 }); 71 71 </script>
Note: See TracChangeset
for help on using the changeset viewer.