]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/templates/browse/feature.jst.ejs
Use ejs templates in browse JS
[rails.git] / app / assets / javascripts / templates / browse / feature.jst.ejs
diff --git a/app/assets/javascripts/templates/browse/feature.jst.ejs b/app/assets/javascripts/templates/browse/feature.jst.ejs
new file mode 100644 (file)
index 0000000..5a3fe36
--- /dev/null
@@ -0,0 +1,19 @@
+<div style="text-align: center; margin-bottom: 20px;">
+  <a href="#" class="browse_show_list"><%- I18n.t('browse.start_rjs.object_list.back') %></a>
+</div>
+<table width="100%" class="browse_heading">
+  <tr>
+    <td><%- name %></td>
+    <td align="right">
+      <a href="<%- url %>"><%- I18n.t('browse.start_rjs.object_list.details') %></a>
+    </td>
+  </tr>
+</table>
+<div class="browse_details">
+  <ul>
+    <% for (var key in attributes) { %>
+      <li><b><%- key %></b>: <%- attributes[key] %></li>
+    <% } %>
+  </ul>
+  <a href="<%- url %>/history" class="browse_show_history"><%- I18n.t('browse.start_rjs.show_history') %></a>
+</div>