Commit 85a58d88e67dfc13b9808b6b7f1f21f1005f9ce8
1 parent
e2a364a8
Exists in
master
and in
39 other branches
Adding last imported message time to footer
Showing
3 changed files
with
17 additions
and
3 deletions
Show diff stats
src/colab/custom_settings.py
| ... | ... | @@ -120,6 +120,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( |
| 120 | 120 | 'django.core.context_processors.request', |
| 121 | 121 | 'django_browserid.context_processors.browserid', |
| 122 | 122 | 'django_mobile.context_processors.is_mobile', |
| 123 | + 'super_archives.context_processors.mailarchive', | |
| 123 | 124 | ) |
| 124 | 125 | |
| 125 | 126 | MIDDLEWARE_CLASSES = ( | ... | ... |
src/templates/base.html
| ... | ... | @@ -146,9 +146,10 @@ |
| 146 | 146 | |
| 147 | 147 | <div class="row"> </div> |
| 148 | 148 | |
| 149 | - <div class="row"> | |
| 150 | - {% block footer %} | |
| 149 | + {% block footer %} | |
| 151 | 150 | <p class="col-lg-12 text-center"><a href="{% url 'opendata' %}"><img src="{{ STATIC_URL }}img/opendata3.png"/></a></p> |
| 151 | + <p class="col-lg-12 text-center">{% trans "Last email imported at" %} {{ last_imported_message.received_time|date:'DATETIME_FORMAT' }}</p> | |
| 152 | + <div class="row"> | |
| 152 | 153 | </div> |
| 153 | 154 | <div class="row"> |
| 154 | 155 | <p class="col-lg-12 text-center"> |
| ... | ... | @@ -157,8 +158,8 @@ |
| 157 | 158 | {% trans "Creative Commons - attribution, non-commercial" %} |
| 158 | 159 | </a> |
| 159 | 160 | </p> |
| 160 | - {% endblock %} | |
| 161 | 161 | </div> |
| 162 | + {% endblock %} | |
| 162 | 163 | |
| 163 | 164 | |
| 164 | 165 | {% if not is_mobile %} | ... | ... |