index.html.j2 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png?v=2">
  8. <link rel="icon" type="image/png" href="/icons/favicon-32x32.png?v=2" sizes="32x32">
  9. <link rel="icon" type="image/png" href="/icons/favicon-16x16.png?v=2" sizes="16x16">
  10. <link rel="manifest" href="/icons/manifest.json?v=2">
  11. <link rel="mask-icon" href="/icons/safari-pinned-tab.svg?v=2" color="#ffb400">
  12. <link rel="shortcut icon" href="/icons/favicon.ico?v=2">
  13. <meta name="apple-mobile-web-app-title" content="Freifunk">
  14. <meta name="application-name" content="Freifunk">
  15. <meta name="msapplication-config" content="/icons/browserconfig.xml?v=2">
  16. <meta name="theme-color" content="#dc0067">
  17. <link rel="stylesheet" href="css/bootstrap.min.css">
  18. <link rel="stylesheet" href="css/ffms.css">
  19. </head>
  20. <body>
  21. <div class="container">
  22. <div class="page-header">
  23. <div class="row">
  24. <div class="col-md-2 col-sm-3">
  25. <img id="{{freifunk.kurzname}}-logo" src="logo.svg" class="img" alt="Logo {{freifunk.name}}">
  26. </div>
  27. <div class="col-md-10 col-sm-9">
  28. <h2>Karten - {{freifunk.name}}
  29. <br/><small>Karten der einzelnen Domänen und der Communities</small></h2>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="container">
  35. <div class="row">
  36. <!-- Suchfeld und Links -->
  37. <div class="col-md-4 col-sm-4 col-xs-12">
  38. <form type="text" action="javascript:myScroll()">
  39. <div class="input-group">
  40. <!-- USE TWITTER TYPEAHEAD JSON WITH API TO SEARCH -->
  41. <input class="form-control" id="system-search"
  42. name="q" placeholder="Suche nach" autofocus>
  43. <span class="input-group-btn">
  44. <button type="submit" id="searchbutton" class="btn btn-ffms">
  45. <i class="glyphicon glyphicon-search"></i>
  46. </button>
  47. </span>
  48. </input>
  49. </div>
  50. </form>
  51. <br/>
  52. <h4><strong><a href="map/">Gesamtkarte des {{freifunk.name}}</a></strong></h4>
  53. <p><a class="btn-ffms-collapse visible-xs" data-toggle="collapse" data-target="#narrow-results">&#187; Mehr Freifunk Links</a></p>
  54. <div id="narrow-results" class="narrow-results collapse">
  55. {% if indexconfig.links is defined %}
  56. {% for link in indexconfig.links %}
  57. <p><a href="{{link.link}}">{{link.name}}</a></p>
  58. {% endfor %}
  59. {% endif %}
  60. </div>
  61. </div>
  62. <!-- Spalte mit Domänen -->
  63. <div class="col-md-4 col-sm-4 col-xs-6">
  64. <div class="ffms-align-center">
  65. <table class="table table-list-search table-hover">
  66. <thead>
  67. <tr>
  68. <th>
  69. <div style=text-align:center><h4>Domänen</h4></div>
  70. </th>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <!-- Alle Domänen einfügen -->
  75. {% for domaene in domaenen|dictsort %}
  76. <tr>
  77. <td>
  78. <a href="map{{domaene[0]}}/">{{domaene[0]}} - {{domaene[1].name}}</a>
  79. &ensp;
  80. {% if indexconfig.linktofwdownloader is defined %}
  81. <span class="small">
  82. <a class="ffms-muted" href="{{indexconfig.linktofwdownloader}}{{domaene[0]}}">Firmware </a>
  83. </span>
  84. {% endif %}
  85. </td>
  86. </tr>
  87. {% endfor %}
  88. </tbody>
  89. </table>
  90. </div>
  91. </div>
  92. <!-- Spalte mit Gruppen -->
  93. {% set communities = domaenen | list | map('extract', domaenen, 'community') | list | unique | sort %}
  94. <div class="col-md-4 col-sm-4 col-xs-6">
  95. <div class="ffms-align-center">
  96. <table class="table table-list-search table-hover">
  97. <thead>
  98. <tr>
  99. <th><div style=text-align:center><h4>Gruppen</h4></div></th>
  100. </tr>
  101. </thead>
  102. <tbody>
  103. <!-- Alle Communities einfügen -->
  104. {% for community in communities %}
  105. {% if community != "None" %}
  106. <tr>
  107. <td><a Community href="map_{{community}}/">Community {{community}}</a><br/> <span class="ffms-muted">Domänen:</span>
  108. {% for domaene in domaenen|dictsort %}
  109. {% if community == domaene[1].community %}
  110. <a href="map{{domaene[0]}}/">{{domaene[0]}}</a>
  111. {% endif %}
  112. {% endfor %}
  113. </td>
  114. </tr>
  115. {% endif %}
  116. {% endfor %}
  117. </tbody>
  118. </table>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  124. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  125. <!-- Include all compiled plugins (below), or include individual files as needed -->
  126. <!-- optional via CDN: <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" </script> -->
  127. <script src="js/bootstrap.min.js"></script>
  128. <script src="js/search.js"></script>
  129. <script>
  130. function myScroll(my) {
  131. $('html, body').animate({
  132. scrollTop: $(".table").offset().top
  133. }, 200);
  134. }
  135. </script>
  136. </body>