]> git.openstreetmap.org Git - rails.git/commitdiff
Use flex grid for diary index headings
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Nov 2021 14:54:54 +0000 (14:54 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 10 Nov 2021 14:54:54 +0000 (14:54 +0000)
app/views/diary_entries/index.html.erb

index 6803c761eabeaf015a88c854124e400fc0ff6f86..0dfe95fa388ca3fa128b873eb70d061161167f9e 100644 (file)
@@ -1,26 +1,31 @@
 <% content_for :head, tag(:meta, :name => :robots, :content => :noindex) %>
 <% content_for :heading do %>
-  <div <% if @user %> id="userinformation"<% end %>>
+  <div <% if @user %> id="userinformation"<% end %> class="row">
     <% if @user %>
-      <%= user_image @user %>
+        <div class="col-auto">
+          <%= user_image @user, :class => "user_image_no_margins" %>
+        </div>
     <% end %>
-    <h1><%= @title %></h1>
-
-    <nav class="secondary-actions">
-      <ul class="clearfix">
-        <% unless params[:friends] or params[:nearby] -%>
-          <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
-          <% end -%>
-
-          <% if @user && @user == current_user || !@user && current_user %>
-            <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
-          <% end %>
-
-          <% if !@user && current_user %>
-            <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
-          <% end %>
-      </ul>
-    </nav>
+
+    <div class="col">
+      <h1><%= @title %></h1>
+
+      <nav class="secondary-actions">
+        <ul class="clearfix">
+          <% unless params[:friends] or params[:nearby] -%>
+            <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
+            <% end -%>
+
+            <% if @user && @user == current_user || !@user && current_user %>
+              <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
+            <% end %>
+
+            <% if !@user && current_user %>
+              <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
+            <% end %>
+        </ul>
+      </nav>
+    </div>
   </div>
 <% end %>