~ubuntu-branches/ubuntu/trusty/grantlee/trusty

« back to all changes in this revision

Viewing changes to examples/books/themes/simple2.html

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2010-06-11 23:41:45 UTC
  • Revision ID: james.westby@ubuntu.com-20100611234145-oas7rhdrbwy8j55c
Tags: upstream-0.1.1
ImportĀ upstreamĀ versionĀ 0.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
{% extends "base.html" %}
 
3
 
 
4
{% block document_title %}{{ block.super }} - Simple2 style{% endblock %}
 
5
{% block page_title %}{{ block.super }} - Simple2 style{% endblock %}
 
6
 
 
7
{% block title_row %}<tr><th>Title</th><th>Genre</th><th>Rating</th></tr>{% endblock %}
 
8
{% block book_rows %}
 
9
  {% for book in books %}
 
10
    {% ifchanged %}<tr><td colspan="3" align="center" style="background:yellow;" >{{ book.author }}</td></tr>{% endifchanged %}
 
11
    <tr><td>{{ book.title }}</td><td>{{ book.genre }}</td><td>{% range book.rating %}<img src="{% media_finder "star.png" %}" />{% endrange %}</td></tr>
 
12
  {% empty %}
 
13
    <tr><td><div>No Books here!</div></td></tr>
 
14
  {% endfor %}
 
15
{% endblock %}
 
 
b'\\ No newline at end of file'