summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-24 16:01:08 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-24 16:01:08 +0100
commit8f218517522dc5fb4e00760fff43041808061ea2 (patch)
tree4a4ef2fc76b13d3ba6b3e2115eeccbb749300961
parent1ac9350e74bce36eb8f64d8564a3c44e6072600e (diff)
downloadChimère-8f218517522dc5fb4e00760fff43041808061ea2.tar.bz2
Chimère-8f218517522dc5fb4e00760fff43041808061ea2.zip
Add simple map link on main template
-rw-r--r--chimere/static/chimere/css/styles.css7
-rw-r--r--chimere/templates/chimere/main_map.html1
-rw-r--r--chimere/urls.py2
3 files changed, 4 insertions, 6 deletions
diff --git a/chimere/static/chimere/css/styles.css b/chimere/static/chimere/css/styles.css
index b0a0455..3b835af 100644
--- a/chimere/static/chimere/css/styles.css
+++ b/chimere/static/chimere/css/styles.css
@@ -557,11 +557,13 @@ p.warning{
#welcome_button,
+#simple_button,
#permalink{
display: block;
text-align:center;
margin:0.3em;
padding:0.2em;
+ width:100%;
}
a#welcome_button,
@@ -571,11 +573,6 @@ a#welcome_button,
text-decoration:none;
}
-#welcome_button,
-#permalink{
- width:100%;
-}
-
/* forms */
table.inline-table{
diff --git a/chimere/templates/chimere/main_map.html b/chimere/templates/chimere/main_map.html
index b3e187e..76f796d 100644
--- a/chimere/templates/chimere/main_map.html
+++ b/chimere/templates/chimere/main_map.html
@@ -24,6 +24,7 @@
{% endif %}
{% display_news news_visible %}
<div id='permalink' class='ui-widget ui-button ui-state-default ui-corner-all'></div>
+ <a id='simple_button' class='ui-widget ui-button ui-state-default ui-corner-all' href='{% url chimere:simple_index area_name_slash %}'>{% trans "Simple map" %}</a>
</div>
<div id='detail' class='ui-widget ui-corner-all'></div>
<div id='category_detail'></div>
diff --git a/chimere/urls.py b/chimere/urls.py
index a232382..9d4018a 100644
--- a/chimere/urls.py
+++ b/chimere/urls.py
@@ -31,7 +31,7 @@ def i18n_javascript(request):
urlpatterns = patterns('chimere.views',
- url(r'^simple(/?P<area_name>[a-zA-Z0-9_-]+)?$', 'index', {'simple':True},
+ url(r'^(?P<area_name>[a-zA-Z0-9_-]+/)?simple$', 'index', {'simple':True},
name="simple_index")
)