Mercurial > piecrust2
view piecrust/admin/templates/list_source.html @ 853:f070a4fc033c
core: Continue PieCrust3 refactor, simplify pages.
The asset pipeline is still the only function pipeline at this point.
* No more `QualifiedPage`, and several other pieces of code deleted.
* Data providers are simpler and more focused. For instance, the page iterator
doesn't try to support other types of items.
* Route parameters are proper known source metadata to remove the confusion
between the two.
* Make the baker and pipeline more correctly manage records and record
histories.
* Add support for record collapsing and deleting stale outputs in the asset
pipeline.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 21 May 2017 00:06:59 -0700 |
parents | 5e91bc0e3b4d |
children | dcdec4b951a1 |
line wrap: on
line source
{% extends 'layouts/default.html' %} {% block content %} <table class="table"> <thead> <tr> <th>When</th> <th>Title</th> <th>Who</th> <th>Category</th> <th>Tags</th> </tr> </thead> <tbody> {% for p in pages %} <tr> <td><time class="timeago" datetime="{{p.timestamp|iso8601}}">{{p.timestamp|datetime}}</time></td> <td><a href="{{p.url}}">{{p.title}}</a></td> <td>{{p.author}}</td> <td>{{p.category}}</td> <td>{{p.tags|join(', ')}}</td> </tr> {% endfor %} </tbody> </table> <div class="row"> {% if pagination.prev_page or pagination.next_page %} <div class="col-sm-6 col-sm-offset-3"> <div class="ft-pagination"> {% if pagination.prev_page %} <a href="{{pagination.prev_page}}"><span class="icon ion-chevron-left"></span> prev</a> {% else %} <span class="icon ion-chevron-left"></span> prev {% endif %} {% for p in pagination.nums %} {% if p.url %}<a href="{{p.url}}" class="ft-pagination-a">{{p.num}}</a>{% else %}<span class="ft-pagination-a">{{p.num}}</span>{% endif %} {% endfor %} {% if pagination.next_page %} <a href="{{pagination.next_page}}">next <span class="icon ion-chevron-right"></span></a> {% else %} next <span class="icon ion-chevron-right"></span> {% endif %} </div> </div> {% endif %} </div> {% endblock %}