From d48b1ccdf2bfe04c714377f32c6e6afed6560f79 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 27 Apr 2013 11:51:51 +0100 Subject: [PATCH] Replace the title in the note popup with a permalink --- app/assets/javascripts/templates/notes/show.jst.ejs | 2 +- app/assets/stylesheets/common.css.scss | 4 ++++ config/locales/en.yml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/templates/notes/show.jst.ejs b/app/assets/javascripts/templates/notes/show.jst.ejs index 04cb6dfc1..f72f003c6 100644 --- a/app/assets/javascripts/templates/notes/show.jst.ejs +++ b/app/assets/javascripts/templates/notes/show.jst.ejs @@ -1,5 +1,5 @@
-

<%- I18n.t('javascripts.notes.show.title', { id: note.id }) %>

+ <% if (note.comments.some(function (comment) { return !comment.user })) { %> <%- I18n.t('javascripts.notes.show.anonymous_warning') %> <% } %> diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 51991e591..9d6ec7d27 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1732,6 +1732,10 @@ a.button.submit { margin-top: 10px; } + .permalink { + margin: -10px 0 10px -12px; + } + .warning { display: block; background-color: #ff7070; diff --git a/config/locales/en.yml b/config/locales/en.yml index 6638589b0..0114751b6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 %{user} at %{time}" opened_by_anonymous: "created by anonymous at %{time}" -- 2.43.2