index.html.j2 4.8 KB

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