index.html.j2 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html>
  2. <html lang="en"><!-- Mit Ansible erzeugt - änderungen werden überschrieben -->
  3. <head>
  4. <title>{{freifunk.name}} - Karten</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="ffms.css">
  9. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  10. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  11. </head>
  12. <body>
  13. <div class="container">
  14. <div class="page-header">
  15. <div class="row">
  16. <div class="col-md-2 col-sm-3">
  17. <img id="ffms-logo" src="logo.svg" class="img" alt="Logo Freifunk Münsterland">
  18. </div>
  19. <div class="col-md-10 col-sm-9">
  20. <h2>Karten - {{freifunk.name}}
  21. <br/><small>Karten der einzelnen Domänen und der Communities</small></h2>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="container">
  27. <div class="row">
  28. <!-- Suchfeld und Links -->
  29. <div class="col-md-4 col-sm-4">
  30. <form action="#" method="get">
  31. <div class="input-group">
  32. <!-- USE TWITTER TYPEAHEAD JSON WITH API TO SEARCH -->
  33. <input class="form-control" id="system-search" name="q" placeholder="Suche nach" required>
  34. <span class="input-group-btn">
  35. <button type="submit" class="btn btn-default"><i class="glyphicon glyphicon-search"></i></button>
  36. </span>
  37. </div>
  38. </form>
  39. <br/>
  40. <p><strong><a href="map/">Gesamtkarte des Freifunk Münsterlands</a></strong></p>
  41. <p><a href="https://freifunk-muensterland.de">Freifunk Münsterland</a></p>
  42. <p><a href="https://wiki.freifunk-muensterland.de/">Freifunk Münsterland Wiki</a></p>
  43. <p><a href="https://forum.freifunk-muensterland.de/">Freifunk Münsterland Forum</a></p>
  44. </div>
  45. <!-- Spalte mit Domänen -->
  46. <div class="col-md-4 col-sm-4">
  47. <div class="ffms-align-center">
  48. <table class="table table-list-search table-hover">
  49. <thead>
  50. <tr>
  51. <th>
  52. <div style=text-align:center><h4>Domänen</h4></div>
  53. </th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <!-- Alle Domänen einfügen
  58. <tr>
  59. <td><a href="mapXX/"> XX - name</a></td>
  60. </tr> -->
  61. {% for domaene in domaenen|dictsort %}
  62. <tr>
  63. <td><a href="map{{domaene[0]}}/">{{domaene[0]}} - {{domaene[1].name}}</a> </td>
  64. </tr>
  65. {% endfor %}
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. <!-- Spalte mit Gruppen -->
  71. {% set communities = domaenen | list | map('extract', domaenen, 'community') | list | unique | sort %}
  72. <div class="col-md-4 col-sm-4">
  73. <div class="ffms-align-center">
  74. <table class="table table-list-search table-hover">
  75. <thead>
  76. <tr>
  77. <th><div style=text-align:center><h4>Gruppen</h4></div></th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. <!-- Alle Communities einfügen
  82. <tr>
  83. <td><a href=""> </a></td>
  84. </tr>
  85. -->
  86. {% for community in communities %}
  87. {% if community != "None" %}
  88. <tr>
  89. <td><a Community href="map_{{community}}/">Community {{community}}</a> <br/> Domänen:
  90. {% for domaene in domaenen|dictsort %}
  91. {% if community == domaene[1].community %}
  92. <a href="map{{domaene[0]}}/">{{domaene[0]}}</a>
  93. {% endif %}
  94. {% endfor %}
  95. </td>
  96. </tr>
  97. {% endif %}
  98. {% endfor %}
  99. </tbody>
  100. </table>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <!-- Bootstrap core JavaScript
  106. ================================================== -->
  107. <!-- Placed at the end of the document so the pages load faster -->
  108. <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script>
  109. <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
  110. <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
  111. <script src="search.js"></script>
  112. </body>