| commit 66: | 60ca54b27342 |
| parent 65: | 784cab145272 |
| branch: | default |
Handle media expiration, the right way
19 months ago
Changed (Δ128 bytes):
raw changeset »
biologeek/context_processors.py (6 lines added, 3 lines removed)
biologeek/templates/layout/base.html (3 lines added, 3 lines removed)
Up to file-list biologeek/context_processors.py:
| … | … | @@ -6,7 +6,10 @@ def search(request): |
6 |
6 |
"""Returns the search form.""" |
7 |
7 |
return {'searchform': SearchForm()} |
8 |
8 |
|
9 |
def stats_url(request): |
|
10 |
"""Returns the stats URL.""" |
|
11 |
return {'STATS_URL': settings.STATS_URL} |
|
9 |
def useful_urls(request): |
|
10 |
"""Returns the stats url and media timestamp.""" |
|
11 |
return { |
|
12 |
'STATS_URL': settings.STATS_URL, |
|
13 |
'MEDIA_TIMESTAMP': settings.MEDIA_TIMESTAMP |
|
14 |
} |
|
12 |
15 |
Up to file-list biologeek/templates/layout/base.html:
17 |
17 |
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> |
18 |
18 |
<meta name="MSSmartTagsPreventParsing" content="true" /> |
19 |
19 |
<title>{% block title %}{% endblock %} sur BioloGeek, l'avis d'un freelance passionné par le web et son évolution.</title> |
20 |
<link rel="stylesheet" href="{{ MEDIA_URL }}css/screen.20081118.css" type="text/css" media="screen, projection" /> |
|
21 |
<link rel="stylesheet" href="{{ MEDIA_URL }}css/print.20081011.css" type="text/css" media="print" /> |
|
22 |
< |
|
20 |
<link rel="stylesheet" href="{{ MEDIA_URL }}css/screen.css?{{ MEDIA_TIMESTAMP }}" type="text/css" media="screen, projection" /> |
|
21 |
<link rel="stylesheet" href="{{ MEDIA_URL }}css/print.css?{{ MEDIA_TIMESTAMP }}" type="text/css" media="print" /> |
|
22 |
<!--[if IE]><link rel="stylesheet" href="{{ MEDIA_URL }}css/ie.css?{{ MEDIA_TIMESTAMP }}" type="text/css" media="screen, projection"><![endif]--> |
|
23 |
23 |
<link rel="icon" href="{{ MEDIA_URL }}css/images/logo.png" type="image/x-icon" /> |
24 |
24 |
<link rel="apple-touch-icon" href="{{ MEDIA_URL }}css/images/logo.png" /> |
25 |
25 |
<link rel="alternate" type="application/xml" title="Atom Général" href="/data/atom/" /> |
