Use flex grid for diary index headings

This commit is contained in:
Andy Allan 2021-11-10 14:54:54 +00:00
parent afce5886f4
commit 2c9d2486ec

View file

@ -1,9 +1,13 @@
<% content_for :head, tag(:meta, :name => :robots, :content => :noindex) %> <% content_for :head, tag(:meta, :name => :robots, :content => :noindex) %>
<% content_for :heading do %> <% content_for :heading do %>
<div <% if @user %> id="userinformation"<% end %>> <div <% if @user %> id="userinformation"<% end %> class="row">
<% if @user %> <% if @user %>
<%= user_image @user %> <div class="col-auto">
<%= user_image @user, :class => "user_image_no_margins" %>
</div>
<% end %> <% end %>
<div class="col">
<h1><%= @title %></h1> <h1><%= @title %></h1>
<nav class="secondary-actions"> <nav class="secondary-actions">
@ -22,6 +26,7 @@
</ul> </ul>
</nav> </nav>
</div> </div>
</div>
<% end %> <% end %>
<% if @entries.empty? %> <% if @entries.empty? %>