index.html.j2 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. </head>
  10. <body>
  11. <div class="container">
  12. <div class="page-header">
  13. <div class="row">
  14. <div class="col-md-2 col-sm-3">
  15. <img id="ffms-logo" src="logo.svg" class="img" alt="Logo Freifunk Münsterland">
  16. </div>
  17. <div class="col-md-10 col-sm-9">
  18. <h2>Karten - {{freifunk.name}}
  19. <br/><small>Karten der einzelnen Domänen und der Communities</small></h2>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="container">
  25. <div class="row">
  26. <!-- Suchfeld und Links -->
  27. <div class="col-md-4 col-sm-4 col-xs-12">
  28. <form type="text" action="javascript:myScroll()">
  29. <div class="input-group">
  30. <!-- USE TWITTER TYPEAHEAD JSON WITH API TO SEARCH -->
  31. <input class="form-control" id="system-search"
  32. name="q" placeholder="Suche nach" autofocus>
  33. <span class="input-group-btn">
  34. <button type="submit" id="searchbutton" class="btn btn-ffms">
  35. <i class="glyphicon glyphicon-search"></i>
  36. </button>
  37. </span>
  38. </input>
  39. </div>
  40. </form>
  41. <br/>
  42. <h4><strong><a href="map/">Gesamtkarte des Freifunk Münsterlands</a></strong></h4>
  43. <p><a href="https://freifunk-muensterland.de">{{freifunk.name}}</a></p>
  44. <p><a href="https://wiki.freifunk-muensterland.de/">{{freifunk.name}} Wiki</a></p>
  45. <p><a href="https://forum.freifunk-muensterland.de/">{{freifunk.name}} Forum</a></p>
  46. </div>
  47. <!-- Spalte mit Domänen -->
  48. <div class="col-md-4 col-sm-4 col-xs-6">
  49. <div class="ffms-align-center">
  50. <table class="table table-list-search table-hover">
  51. <thead>
  52. <tr>
  53. <th>
  54. <div style=text-align:center><h4>Domänen</h4></div>
  55. </th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. <!-- Alle Domänen einfügen
  60. <tr>
  61. <td><a href="mapXX/"> XX - name</a></td>
  62. </tr> -->
  63. {% for domaene in domaenen|dictsort %}
  64. <tr>
  65. <td><a href="map{{domaene[0]}}/">{{domaene[0]}} - {{domaene[1].name}}</a> </td>
  66. </tr>
  67. {% endfor %}
  68. </tbody>
  69. </table>
  70. </div>
  71. </div>
  72. <!-- Spalte mit Gruppen -->
  73. {% set communities = domaenen | list | map('extract', domaenen, 'community') | list | unique | sort %}
  74. <div class="col-md-4 col-sm-4 col-xs-6">
  75. <div class="ffms-align-center">
  76. <table class="table table-list-search table-hover">
  77. <thead>
  78. <tr>
  79. <th><div style=text-align:center><h4>Gruppen</h4></div></th>
  80. </tr>
  81. </thead>
  82. <tbody>
  83. <!-- Alle Communities einfügen
  84. <tr>
  85. <td><a href=""> </a></td>
  86. </tr>
  87. -->
  88. {% for community in communities %}
  89. {% if community != "None" %}
  90. <tr>
  91. <td><a Community href="map_{{community}}/">Community {{community}}</a><br/> <span class="text-muted">Domänen:</span>
  92. {% for domaene in domaenen|dictsort %}
  93. {% if community == domaene[1].community %}
  94. <a class="text-muted" href="map{{domaene[0]}}/">{{domaene[0]}}</a>
  95. {% endif %}
  96. {% endfor %}
  97. </td>
  98. </tr>
  99. {% endif %}
  100. {% endfor %}
  101. </tbody>
  102. </table>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  108. <script src="js/bootstrap.min.js"></script>
  109. <script src="js/search.js"></script>
  110. <script>
  111. function myScroll(my) {
  112. $('html, body').animate({
  113. scrollTop: $(".table").offset().top
  114. }, 200);
  115. }
  116. </script>
  117. </body>