Display how long until a note will disappear
Modify the message displayed at the bottom of the notes sidepanel. For already resolved notes we don't want to say "please resolve it". Fixes https://github.com/openstreetmap/openstreetmap-website/issues/3663 Instead explain that it will disappear from the map (so reporting is probably not necessary) and display how long to go until that happens. Tackling https://github.com/openstreetmap/openstreetmap-website/issues/3071
This commit is contained in:
parent
bf11e06e63
commit
d8e51614cb
5 changed files with 46 additions and 2 deletions
|
@ -71,6 +71,21 @@
|
|||
<% end %>
|
||||
|
||||
<% if current_user && current_user != @note.author %>
|
||||
<p><small class="text-muted"><%= t "javascripts.notes.show.report_link_html", :link => report_link(t(".report"), @note) %></small></p>
|
||||
<p>
|
||||
<small class="text-muted">
|
||||
<%= t "javascripts.notes.show.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) %>
|
||||
<% elsif @note.status == "closed" %>
|
||||
<%= t "javascripts.notes.show.other_problems_resolved" %>
|
||||
<% end %>
|
||||
</small>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% if @note.freshly_closed? %>
|
||||
<small class="text-muted">
|
||||
<%= t "javascripts.notes.show.disappear_date_html", :disappear_in => disappear_in(@note) %>
|
||||
</small>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue