From 30122011609aa02c32cfef6a31d3f28c1d0207e4 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Jul 2020 19:09:46 +0200 Subject: [PATCH] Convert warnings to use bootstrap alerts The new note is guidance, rather than a warning, so it gets the info background --- app/views/browse/new_note.html.erb | 2 +- app/views/browse/note.html.erb | 7 +++---- app/views/site/export.html.erb | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/browse/new_note.html.erb b/app/views/browse/new_note.html.erb index 2929e610e..51633ffca 100644 --- a/app/views/browse/new_note.html.erb +++ b/app/views/browse/new_note.html.erb @@ -6,7 +6,7 @@
-

<%= t("javascripts.notes.new.intro") %>

+

<%= t("javascripts.notes.new.intro") %>

diff --git a/app/views/browse/note.html.erb b/app/views/browse/note.html.erb index 0b91ca126..74d1223c7 100644 --- a/app/views/browse/note.html.erb +++ b/app/views/browse/note.html.erb @@ -12,15 +12,14 @@
- <%= note_event("opened", @note.created_at, @note.author) %> +

<%= note_event("opened", @note.created_at, @note.author) %>

<% if @note.status == "closed" %> -
- <%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %> +

<%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %>

<% end %>
<% if @note_comments.find { |comment| comment.author.nil? } -%> -

<%= t "javascripts.notes.show.anonymous_warning" %>

+

<%= t "javascripts.notes.show.anonymous_warning" %>

<% end -%> <% if current_user && current_user != @note.author %> diff --git a/app/views/site/export.html.erb b/app/views/site/export.html.erb index f1eed33cf..2eb23f755 100644 --- a/app/views/site/export.html.erb +++ b/app/views/site/export.html.erb @@ -24,7 +24,7 @@

<%= t ".export_details_html" %>

-

+

<%= t ".too_large.body" %>

-- 2.39.5