Newer
Older
task-bldg / src / main / resources / templates / meshes.html
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{layout/layout}">
  5. <head>
  6. <meta charset="UTF-8" th:remove="tag">
  7. <script th:src="@{/custom/meshes.js}"></script>
  8. </head>
  9. <body onload='loadMap()'>
  10. <input type="hidden" id="city" th:value="${city}" />
  11.  
  12. <!-- サイドバーの表示 -->
  13. <div layout:fragment="sidebar" th:replace="~{fragments/sidebar :: sidebar}">
  14. </div>
  15.  
  16. <!-- コンテンツの表示 -->
  17. <div layout:fragment="content">
  18. <main class="offcanvas-outside bg-light">
  19. <div class="container-fluid">
  20. <!-- トグルボタン -->
  21. <div th:replace="~{fragments/sidebar :: toggler}">
  22. </div>
  23.  
  24. <div class="row">
  25. <div class="col">
  26.  
  27. <div class="card shadow">
  28. <div class="card-header">
  29. <h6 class="text-navy my-2" id='title'></h6>
  30. </div>
  31. <div class="card-body">
  32.  
  33. <!-- マップ -->
  34. <div id="wrap">
  35. <div class="header">
  36. <div id='map'></div>
  37. </div>
  38. <!-- ポップアップ -->
  39. <div id='popup' class='ol-popup'>
  40. <a href='#' id='popup-closer' class='ol-popup-closer'></a>
  41. <div id='popup-content'></div>
  42. </div>
  43. </div>
  44. <table class="table table-bordered">
  45. <thead>
  46. <tr>
  47. <th th:text="#{status}"></th>
  48. <th th:text="#{meshcode}"></th>
  49. <th>version</th>
  50. <th th:text="#{path}"></th>
  51. <th th:text="#{editor}"></th>
  52. <th th:text="#{validator}"></th>
  53. <th th:text="#{operation}"></th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. <tr th:each="mesh : ${meshes}" th:object="${mesh}">
  58. <td><img th:alt="*{status}" th:src="@{/img/{status}.png(status=*{status})}"></img></td>
  59. <td th:text="*{meshcode}"></td>
  60. <td th:text="*{version}"></td>
  61. <td th:text="*{path}"></td>
  62. <td><a th:text="*{username}" th:href="@{https://www.openstreetmap.org/user/{user}(user=*{username})}"></a></td>
  63. <td><a th:text="*{validator}" th:href="@{https://www.openstreetmap.org/user/{user}(user=*{validator})}"></a></td>
  64. <td>
  65. <a th:text="#{download}" th:href="@{{site}{folder}/bldg/{path}(site=*{city.site},folder=*{city.folder},path=*{path})}" class="btn btn-navy">
  66. </a>
  67.  
  68. <a th:href="@{/tasks?citycode={citycode}&meshcode={meshcode}(citycode=*{citycode},meshcode=*{meshcode})}" class="btn btn-navy">
  69. <i class="bi bi-pencil-square" th:text="#{operation}"></i>
  70. </a>
  71. </td>
  72. </tr>
  73. </tbody>
  74. </table>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </main>
  81. </div>
  82.  
  83. </body>
  84. </html>