]> git.openstreetmap.org Git - rails.git/commitdiff
Replace the title in the note popup with a permalink
authorTom Hughes <tom@compton.nu>
Sat, 27 Apr 2013 10:51:51 +0000 (11:51 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 27 Apr 2013 10:51:51 +0000 (11:51 +0100)
app/assets/javascripts/templates/notes/show.jst.ejs
app/assets/stylesheets/common.css.scss
config/locales/en.yml

index 04cb6dfc13dcfb84683d8fa0239079921aed9247..f72f003c6bc8536fe432fb864cd99223242decbb 100644 (file)
@@ -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>
   <% } %>
index 51991e591018083b8da50d1b27901221c6294ac7..9d6ec7d274c101486c8c0aff0fd3432e27697f9a 100644 (file)
@@ -1732,6 +1732,10 @@ a.button.submit {
     margin-top: 10px;
   }
 
+  .permalink {
+    margin: -10px 0 10px -12px;
+  }
+
   .warning {
     display: block;
     background-color: #ff7070;
index 6638589b0f33f809a6739b6cb22082ff37a37cd9..0114751b69a82cdd8762c882535f44f3758396ad 100644 (file)
@@ -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}"