]> git.openstreetmap.org Git - rails.git/commitdiff
Allow notes to be reopened from the web interface
authorTom Hughes <tom@compton.nu>
Mon, 10 Jun 2013 18:25:18 +0000 (19:25 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 10 Jun 2013 18:25:18 +0000 (19:25 +0100)
app/assets/javascripts/templates/notes/show.jst.ejs
config/locales/en.yml

index 1393e9c89478483085f08f528c6b2741636dd55d..25dc10735b9cd861fdc946a564d72a51a1761f7f 100644 (file)
       <input type="submit" name="comment" value="<%- I18n.t('javascripts.notes.show.comment') %>" data-method="POST" data-url="<%- note.comment_url %>" disabled="1">
     </div>
   </form>
+  <% } else { %>
+  <form action="#">
+    <input type="hidden" name="text" value="">
+    <div class="buttons">
+      <input type="submit" name="hide" value="<%- I18n.t('javascripts.notes.show.hide') %>" class="hide_unless_moderator" data-method="DELETE" data-url="<%- note.url %>">
+      <input type="submit" name="reopen" value="<%- I18n.t('javascripts.notes.show.reactivate') %>" class="hide_unless_logged_in" data-method="POST" data-url="<%- note.reopen_url %>">
+    </div>
+  </form>
   <% } %>
 </div>
index 507d226bbbee7957ceeb17edd44ba3b1140b685c..0b30e95a9bdf7e27440ee9d271111924938f069c 100644 (file)
@@ -2061,6 +2061,7 @@ en:
         reopened_by_anonymous: "reactivated by anonymous at %{time}"
         hide: Hide
         resolve: Resolve
+        reactivate: Reactivate
         comment_and_resolve: Comment & Resolve
         comment: Comment
   redaction: