Jelajahi Sumber

jinja2 implementation

Tobias Südkamp 7 tahun lalu
induk
melakukan
26f80c4b4e
2 mengubah file dengan 409 tambahan dan 2 penghapusan
  1. 400 0
      debug.html
  2. 9 2
      index.html.j2

File diff ditekan karena terlalu besar
+ 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>