Zine

open source content publishing system


Changeset 1292:4440311a6b29


Ignore:
Timestamp:
01/11/10 15:21:46 (2 years ago)
Author:
mitsuhiko
Branch:
default
Message:

Some small cleanup in admin code, improved links in the admin interface.

Location:
zine
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zine/shared/admin/style.css

    r1217 r1292  
    336336} 
    337337 
     338div.contents div.per_page { 
     339    float: right; 
     340} 
     341 
    338342div.contents pre, 
    339343div.contents tt, 
  • zine/templates/admin/_comment.html

    r1062 r1292  
    3434       {% endif %} 
    3535     ] 
    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 %}{{ 
    3737       comment.post.title|e }}{%- else %}<em>#</em>{%- endif %}</a></p> 
    3838{%- endmacro %} 
  • zine/templates/admin/index.html

    r1286 r1292  
    5252          {{ comment.pub_date|datetimeformat('short') }} 
    5353          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>] 
    5455          <p class="actions"> 
    5556            <a href="{{ url_for('admin/edit_comment', comment_id=comment.id)|e 
     
    6869        <li><a href="{{ url_for('admin/edit_post', post_id=post.id) 
    6970          }}">{%- if post.title %}{{ post.title|e }}{%- else %}<em>#</em>{%- endif %}</a>, {{ post.pub_date|datetimeformat('short') }} 
     71          [<a href="{{ url_for(post) }}">{{ _('show') }}</a>] 
    7072      {%- endfor %} 
    7173      </ul> 
  • zine/templates/admin/manage_comments.html

    r1145 r1292  
    1818    {% if form.comments %} 
    1919    <div class="actions"> 
    20       <div id="per_page" style="float: right;"> 
     20      <div class="per_page"> 
    2121        {{ form.per_page.label() }} 
    2222        {{ 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') }}"> 
    2424      </div> 
    2525      {% if admin.active_pane == 'comments.unmoderated' %} 
     
    5757    <script type="text/javascript"> 
    5858      $(function() { 
     59        var ppuButton = $('input[name="per_page_update"]').hide(); 
    5960        $('<input type="button" value="{{ _('Toggle selection') }}">') 
    6061          .click(function() { 
     
    6566          .appendTo('div.actions'); 
    6667        $('#f_per_page').bind('change', function() { 
    67           $('#per_page_update').click(); 
     68          ppuButton.click(); 
    6869        }); 
    69         $('#per_page_update').hide(); 
    7070      }); 
    7171    </script> 
Note: See TracChangeset for help on using the changeset viewer.