]> git.openstreetmap.org Git - rails.git/commitdiff
Convert warnings to use bootstrap alerts
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Jul 2020 17:09:46 +0000 (19:09 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 15 Jul 2020 17:09:46 +0000 (19:09 +0200)
The new note is guidance, rather than a warning, so it gets the info
background

app/views/browse/new_note.html.erb
app/views/browse/note.html.erb
app/views/site/export.html.erb

index 2929e610ece6ebbf345b906509f7d7f769f2fc45..51633ffca5b6a24e183d6ea7b65fb83f1396d11a 100644 (file)
@@ -6,7 +6,7 @@
 </h2>
 
 <div class="note browse-section">
-  <p class="warning"><%= t("javascripts.notes.new.intro") %></p>
+  <p class="alert alert-info"><%= t("javascripts.notes.new.intro") %></p>
   <form action="#">
     <input type="hidden" name="lon">
     <input type="hidden" name="lat">
index 0b91ca1264b4cc4520c607758703b97a187d35dd..74d1223c79b6c760208511de59bc96b308642c9a 100644 (file)
   </div>
 
   <div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">
-    <%= note_event("opened", @note.created_at, @note.author) %>
+    <p><%= note_event("opened", @note.created_at, @note.author) %></p>
     <% if @note.status == "closed" %>
-      <br />
-      <%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %>
+      <p><%= note_event(@note.status, @note.closed_at, @note.all_comments.last.author) %></p>
     <% end %>
   </div>
 
   <% if @note_comments.find { |comment| comment.author.nil? } -%>
-    <p class='warning'><%= t "javascripts.notes.show.anonymous_warning" %></p>
+    <p class='alert alert-warning'><%= t "javascripts.notes.show.anonymous_warning" %></p>
   <% end -%>
 
   <% if current_user && current_user != @note.author %>
index f1eed33cf778bdc88e0d65653a2dd5e1fc4a8e59..2eb23f755102ed463c7517f2c4081841c8c37a64 100644 (file)
@@ -24,7 +24,7 @@
   <p><%= t ".export_details_html" %></p>
 
   <div id="export_osm_too_large">
-    <p class="warning">
+    <p class="alert alert-warning">
       <%= t ".too_large.body" %>
     </p>
   </div>