Commit 85a58d88e67dfc13b9808b6b7f1f21f1005f9ce8
1 parent
e2a364a8
Exists in
master
and in
13 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,6 +120,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( | ||
| 120 | 'django.core.context_processors.request', | 120 | 'django.core.context_processors.request', |
| 121 | 'django_browserid.context_processors.browserid', | 121 | 'django_browserid.context_processors.browserid', |
| 122 | 'django_mobile.context_processors.is_mobile', | 122 | 'django_mobile.context_processors.is_mobile', |
| 123 | + 'super_archives.context_processors.mailarchive', | ||
| 123 | ) | 124 | ) |
| 124 | 125 | ||
| 125 | MIDDLEWARE_CLASSES = ( | 126 | MIDDLEWARE_CLASSES = ( |
src/templates/base.html
| @@ -146,9 +146,10 @@ | @@ -146,9 +146,10 @@ | ||
| 146 | 146 | ||
| 147 | <div class="row"> </div> | 147 | <div class="row"> </div> |
| 148 | 148 | ||
| 149 | - <div class="row"> | ||
| 150 | - {% block footer %} | 149 | + {% block footer %} |
| 151 | <p class="col-lg-12 text-center"><a href="{% url 'opendata' %}"><img src="{{ STATIC_URL }}img/opendata3.png"/></a></p> | 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 | </div> | 153 | </div> |
| 153 | <div class="row"> | 154 | <div class="row"> |
| 154 | <p class="col-lg-12 text-center"> | 155 | <p class="col-lg-12 text-center"> |
| @@ -157,8 +158,8 @@ | @@ -157,8 +158,8 @@ | ||
| 157 | {% trans "Creative Commons - attribution, non-commercial" %} | 158 | {% trans "Creative Commons - attribution, non-commercial" %} |
| 158 | </a> | 159 | </a> |
| 159 | </p> | 160 | </p> |
| 160 | - {% endblock %} | ||
| 161 | </div> | 161 | </div> |
| 162 | + {% endblock %} | ||
| 162 | 163 | ||
| 163 | 164 | ||
| 164 | {% if not is_mobile %} | 165 | {% if not is_mobile %} |