Sfoglia il codice sorgente

jinja2 implementation

Tobias Südkamp 7 anni fa
parent
commit
26f80c4b4e
2 ha cambiato i file con 409 aggiunte e 2 eliminazioni
  1. 400 0
      debug.html
  2. 9 2
      index.html.j2

File diff suppressed because it is too large
+ 400 - 0
debug.html


+ 9 - 2
index.html.j2

@@ -60,7 +60,7 @@
             </tr> -->
 {% for domaene in domaenen|dictsort %}
             <tr>
-              <td><a href="map{{domaene[0]}}/">Domäne {{domaene[0]}}</a> - {{domaene[1].name}} </td>
+              <td><a href="map{{domaene[0]}}/">{{domaene[0]}} - {{domaene[1].name}}</a> </td>
             </tr>
 {% endfor %}
           </tbody>
@@ -86,8 +86,15 @@
 {% for community in communities %}
 {% if community != "None" %}
             <tr>
-                <td>Community <a href="map_{{community}}/">{{community}}</a></td>
+                <td><a Community href="map_{{community}}/">Community {{community}}</a> <br/> Domänen: 
+                {% for domaene in domaenen|dictsort %}
+                    {% if community == domaene[1].community %}
+                    <a href="map{{domaene[0]}}/">{{domaene[0]}}</a>
+                    {% endif %}
+                {% endfor %}
+                </td>
             </tr>
+ 
 {% endif %}
 {% endfor %}
           </tbody>