index.html.j2 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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="css/bootstrap.min.css">
  8. <link rel="stylesheet" href="css/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. {% for domaene in domaenen|dictsort %}
  61. <tr>
  62. <td><a href="map{{domaene[0]}}/">{{domaene[0]}} - {{domaene[1].name}}</a> </td>
  63. &ensp;&ndash;&ensp;
  64. <a class="ffms-muted" href="https://freifunk-muensterland.de/md-fw-dl/?region=domaene{{domaene[0]}}">Firmware </a>
  65. </tr>
  66. {% endfor %}
  67. </tbody>
  68. </table>
  69. </div>
  70. </div>
  71. <!-- Spalte mit Gruppen -->
  72. {% set communities = domaenen | list | map('extract', domaenen, 'community') | list | unique | sort %}
  73. <div class="col-md-4 col-sm-4 col-xs-6">
  74. <div class="ffms-align-center">
  75. <table class="table table-list-search table-hover">
  76. <thead>
  77. <tr>
  78. <th><div style=text-align:center><h4>Gruppen</h4></div></th>
  79. </tr>
  80. </thead>
  81. <tbody>
  82. <!-- Alle Communities einfügen -->
  83. {% for community in communities %}
  84. {% if community != "None" %}
  85. <tr>
  86. <td><a Community href="map_{{community}}/">Community {{community}}</a><br/> <span class="text-muted">Domänen:</span>
  87. {% for domaene in domaenen|dictsort %}
  88. {% if community == domaene[1].community %}
  89. <a class="text-muted" href="map{{domaene[0]}}/">{{domaene[0]}}</a>
  90. {% endif %}
  91. {% endfor %}
  92. </td>
  93. </tr>
  94. {% endif %}
  95. {% endfor %}
  96. </tbody>
  97. </table>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  103. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  104. <!-- Include all compiled plugins (below), or include individual files as needed -->
  105. <!-- optional via CDN: <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" </script> -->
  106. <script src="js/bootstrap.min.js"></script>
  107. <script src="js/search.js"></script>
  108. <script>
  109. function myScroll(my) {
  110. $('html, body').animate({
  111. scrollTop: $(".table").offset().top
  112. }, 200);
  113. }
  114. </script>
  115. </body>