+
+
<% if @note.status != "hidden" and current_user and current_user.moderator? -%>
- " class="btn btn-light" data-method="DELETE" data-url="<%= api_note_url(@note, "json") %>">
+ <%= button_tag t(".hide"), :name => "hide", :class => "btn btn-light",
+ :data => { :method => "DELETE",
+ :url => api_note_url(@note, "json") } %>
<% end -%>
<% if current_user -%>
- " class="btn btn-primary" data-method="POST" data-url="<%= reopen_api_note_url(@note, "json") %>">
+ <%= button_tag t(".reactivate"), :name => "reopen", :class => "btn btn-primary",
+ :data => { :method => "POST",
+ :url => reopen_api_note_url(@note, "json") } %>
<% end -%>
@@ -75,20 +94,20 @@
<% if current_user && current_user != @note.author %>
-
- <%= t "javascripts.notes.show.report_link_html", :link => report_link(t(".report"), @note) %>
+
+ <%= t ".report_link_html", :link => report_link(t(".report"), @note) %>
<% if @note.status == "open" %>
- <%= t "javascripts.notes.show.other_problems_resolve", :link => report_link(t(".report"), @note) %>
+ <%= t ".other_problems_resolve", :link => report_link(t(".report"), @note) %>
<% elsif @note.status == "closed" %>
- <%= t "javascripts.notes.show.other_problems_resolved" %>
+ <%= t ".other_problems_resolved" %>
<% end %>
<% end %>
<% if @note.freshly_closed? %>
-
- <%= t "javascripts.notes.show.disappear_date_html", :disappear_in => disappear_in(@note) %>
+
+ <%= t ".disappear_date_html", :disappear_in => friendly_date(@note.freshly_closed_until) %>
<% end %>