]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/templates/browse/feature_history.jst.ejs
Use ejs templates in browse JS
[rails.git] / app / assets / javascripts / templates / browse / feature_history.jst.ejs
diff --git a/app/assets/javascripts/templates/browse/feature_history.jst.ejs b/app/assets/javascripts/templates/browse/feature_history.jst.ejs
new file mode 100644 (file)
index 0000000..6f870ac
--- /dev/null
@@ -0,0 +1,15 @@
+<table width="100%" class="browse_heading">
+  <tr>
+    <td><%- I18n.t("browse.start_rjs.history_for_feature", {feature: name}) %></td>
+    <td align="right">
+      <a href="<%- url %>/history"><%- I18n.t('browse.start_rjs.details') %></a>
+    </td>
+  </tr>
+</table>
+<div class="browse_details">
+  <ul>
+    <% for (var i = 0; i < history.length; i++) { %>
+      <li><%- I18n.t("browse.start_rjs.edited_by_user_at_timestamp", history[i]) %></li>
+    <% } %>
+  </ul>
+</div>