Added context_processor to handle contexts for every template; refer to favion2; some visual polish

svn: r13559
This commit is contained in:
Doug Blank
2009-11-11 16:18:01 +00:00
parent d1340f66fe
commit c142ea4b29
5 changed files with 59 additions and 30 deletions

View File

@@ -11,11 +11,11 @@
<meta name="generator" content="GRAMPS 3.2.0-0.SVN12859M http://gramps-project.org/" />
<meta name="author" content="" />
{% endblock %}
<link href="/images/favicon.ico" type="image/x-icon" rel="shortcut icon" />
<link href="/images/favicon2.ico" type="image/x-icon" rel="shortcut icon" />
{% block css %}
<link media="screen" href="/styles/behaviour.css" type="text/css" rel="stylesheet" />
<link media="screen" href="/styles/Web_Alphabet-Horizontal.css" type="text/css" rel="stylesheet" />
<link media="screen" href="/styles/Web_Mainz.css" type="text/css" rel="stylesheet" />
<link media="screen" href="/styles/{{css_theme}}" type="text/css" rel="stylesheet" />
<link media="print" href="/styles/Web_Print-Default.css" type="text/css" rel="stylesheet" />
{% endblock %}
</head>

View File

@@ -16,13 +16,19 @@
</p>
<p id="description">
Database information:
<ul>
Database information:</p>
<table class="infolist">
<tr>
<th>Item</th>
<th>Count</th>
</tr>
{% for view in views %}
<li><a href="/{{view.1}}">{{view.0}}</a> ({{view.2}} records)</li>
<tr><td align="left"><a href="/{{view.1}}">{{view.0}}</a></td>
<td align="right"><a href="/{{view.1}}">{{view.2.objects.count}}</td>
</tr>
{% endfor %}
</ul>
</p>
</table>
{% endblock %}