Skip to content

Commit

Permalink
Rework templates
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Sep 11, 2013
1 parent 49af12d commit 0e9a4c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions example/livembtiles/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
<html>
<head>
{% block head %}
<link href="{% static "style.css" %}" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="http://makina-corpus.com/favicon.ico" />
{% endblock head %}
<link href="{% static "style.css" %}" rel="stylesheet" type="text/css" />
</head>
<body>
{% block body %}
{% endblock body %}
<p id="credits">Powered by <a href="https://github.com/makinacorpus/django-mbtiles">django-mbtiles</a> — It is Free Software, <a href="https://github.com/makinacorpus/livetitude">you can contribute on GitHub</a> ! — Developed by <a href="http://www.makina-corpus.com">Makina Corpus</a></p>
{% block footer %}
<p id="credits">Powered by <a href="https://github.com/makinacorpus/django-mbtiles">django-mbtiles</a> — It is Free Software, <a href="https://github.com/makinacorpus/livetitude">you can contribute on GitHub</a> ! — Developed by <a href="http://www.makina-corpus.com">Makina Corpus</a></p>
{% endblock footer %}
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends "base.html" %}
{% load i18n %}

{% block body %}
{% for map in maps %}
<div class="map-preview">
<a href="{% url "map" map.id %}">
<img src="{% url "mbtilesmap:preview" map.id %}"/>
<a href="{% url "preview" catalog map.id %}">
<img src="{% url "mbtilesmap:preview" catalog map.id %}"/>
<span class="map-title">{{ map.name }}</span>
</a>
</div>
{% empty %}
Folder has no MBTiles file :
<pre>MBTILES_APP_CONFIG["MBTILES_ROOT"]</pre>
{% trans "Catalog folder is empty." %}
{% endfor %}
{% endblock body %}

0 comments on commit 0e9a4c6

Please sign in to comment.