zacherates / aggregator-dev (http://aggregator.crimzon.ath.cx/rss)
No description has been added.
Clone this repository (size: 97.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/zacherates/aggregator-dev/
| commit 27: | 50ba3592da4f |
| parent 26: | 0103d308d5ab |
| branch: | default |
Added the machinery to display the revision number as part of the each page
's footer
Changed (Δ273 bytes):
raw changeset »
.hgignore (2 lines added, 0 lines removed)
context_processors.py (3 lines added, 0 lines removed)
hooks/update.sh (1 lines added, 0 lines removed)
rss/templates/list.html (1 lines added, 1 lines removed)
settings.py (2 lines added, 0 lines removed)
templates/base.html (4 lines added, 0 lines removed)
Up to file-list context_processors.py:
| … | … | @@ -5,3 +5,6 @@ def media_url(request): |
5 |
5 |
|
6 |
6 |
def site_root(request): |
7 |
7 |
return {'site_root': settings.SITE_ROOT} |
8 |
||
9 |
def revision(request): |
|
10 |
return {'revision': settings.REVISION} |
Up to file-list hooks/update.sh:
1 |
echo "REVISION = \"$HG_PARENT1\"" > revision.py |
Up to file-list rss/templates/list.html:
4 |
4 |
<a href="/new/">new</a> |
5 |
5 |
<ul> |
6 |
6 |
{% for feed in feeds %} |
7 |
<li><a href="{{ feed.get_absolute_url }}">{{ feed. |
|
7 |
<li><a href="{{ feed.get_absolute_url }}">{{ feed.rev.title }}</a> <a href="/edit/{{ feed.slug}}/">edit</a></li> |
|
8 |
8 |
{% endfor %} |
9 |
9 |
</ul> |
10 |
10 |
{% endblock %} |
| … | … | @@ -57,6 +57,7 @@ TEMPLATE_LOADERS = ( |
57 |
57 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
58 |
58 |
'context_processors.media_url', |
59 |
59 |
'context_processors.site_root', |
60 |
'context_processors.revision', |
|
60 |
61 |
'django.core.context_processors.auth', |
61 |
62 |
) |
62 |
63 |
|
| … | … | @@ -90,3 +91,4 @@ INSTALLED_APPS = ( |
90 |
91 |
|
91 |
92 |
HEARTBEAT_SYSTEM_JOB = "rss.jobs.system" |
92 |
93 |
HEARTBEAT_HANDLE_ERROR = "rss.jobs.log_error" |
94 |
REVISION = 'tip' |
