index.html.j2 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 col-xs-12">
  30. <div class="input-group">
  31. <!-- USE TWITTER TYPEAHEAD JSON WITH API TO SEARCH -->
  32. <input class="form-control" id="system-search"
  33. name="q" placeholder="Suche nach" autofocus>
  34. <span class="input-group-btn">
  35. <button type="button" class="btn btn-ffms"><i class="glyphicon glyphicon-search"></i></button>
  36. </span>
  37. </div>
  38. <br/>
  39. <h4><strong><a href="map/">Gesamtkarte des Freifunk Münsterlands</a></strong></h4>
  40. <p><a href="https://freifunk-muensterland.de">{{freifunk.name}}</a></p>
  41. <p><a href="https://wiki.freifunk-muensterland.de/">{{freifunk.name}} Wiki</a></p>
  42. <p><a href="https://forum.freifunk-muensterland.de/">{{freifunk.name}} Forum</a></p>
  43. </div>
  44. <!-- Spalte mit Domänen -->
  45. <div class="col-md-4 col-sm-4 col-xs-6">
  46. <div class="ffms-align-center">
  47. <table class="table table-list-search table-hover">
  48. <thead>
  49. <tr>
  50. <th>
  51. <div style=text-align:center><h4>Domänen</h4></div>
  52. </th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. <!-- Alle Domänen einfügen
  57. <tr>
  58. <td><a href="mapXX/"> XX - name</a></td>
  59. </tr> -->
  60. {% for domaene in domaenen|dictsort %}
  61. <tr>
  62. <td><a href="map{{domaene[0]}}/">{{domaene[0]}} - {{domaene[1].name}}</a> </td>
  63. </tr>
  64. {% endfor %}
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. <!-- Spalte mit Gruppen -->
  70. {% set communities = domaenen | list | map('extract', domaenen, 'community') | list | unique | sort %}
  71. <div class="col-md-4 col-sm-4 col-xs-6">
  72. <div class="ffms-align-center">
  73. <table class="table table-list-search table-hover">
  74. <thead>
  75. <tr>
  76. <th><div style=text-align:center><h4>Gruppen</h4></div></th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <!-- Alle Communities einfügen
  81. <tr>
  82. <td><a href=""> </a></td>
  83. </tr>
  84. -->
  85. {% for community in communities %}
  86. {% if community != "None" %}
  87. <tr>
  88. <td><a Community href="map_{{community}}/">Community {{community}}</a><br/> <span class="text-muted">Domänen:</span>
  89. {% for domaene in domaenen|dictsort %}
  90. {% if community == domaene[1].community %}
  91. <a class="text-muted" href="map{{domaene[0]}}/">{{domaene[0]}}</a>
  92. {% endif %}
  93. {% endfor %}
  94. </td>
  95. </tr>
  96. {% endif %}
  97. {% endfor %}
  98. </tbody>
  99. </table>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <!-- Bootstrap core JavaScript
  105. ================================================== -->
  106. <!-- Placed at the end of the document so the pages load faster -->
  107. <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>
  108. <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
  109. <script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
  110. <script src="search.js"></script>
  111. </body>