Replace the title in the note popup with a permalink
This commit is contained in:
parent
4a69512ce4
commit
d48b1ccdf2
3 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<div class="note">
|
||||
<h2><a href="/?note=<%- note.id %>"><%- I18n.t('javascripts.notes.show.title', { id: note.id }) %></a></h2>
|
||||
<p class="permalink"><a href="/?note=<%- note.id %>"><%- I18n.t('javascripts.notes.show.permalink', { id: note.id }) %></a></p>
|
||||
<% if (note.comments.some(function (comment) { return !comment.user })) { %>
|
||||
<small class="warning"><%- I18n.t('javascripts.notes.show.anonymous_warning') %></small>
|
||||
<% } %>
|
||||
|
|
|
@ -1732,6 +1732,10 @@ a.button.submit {
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.permalink {
|
||||
margin: -10px 0 10px -12px;
|
||||
}
|
||||
|
||||
.warning {
|
||||
display: block;
|
||||
background-color: #ff7070;
|
||||
|
|
|
@ -2038,7 +2038,7 @@ en:
|
|||
intro: "In order to improve the map the information you enter is shown to other mappers, so please be as descriptive and precise as possible when moving the marker to the correct position and entering your note below."
|
||||
add: Add Note
|
||||
show:
|
||||
title: Note %{id}
|
||||
permalink: Permalink
|
||||
anonymous_warning: This note includes comments from anonymous users which should be independently verified.
|
||||
opened_by: "created by <a href='%{user_url}'>%{user}</a> at %{time}"
|
||||
opened_by_anonymous: "created by anonymous at %{time}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue