Use flex grid for diary index headings
This commit is contained in:
parent
afce5886f4
commit
2c9d2486ec
1 changed files with 21 additions and 16 deletions
|
@ -1,26 +1,31 @@
|
||||||
<% 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 %>
|
||||||
<h1><%= @title %></h1>
|
|
||||||
|
|
||||||
<nav class="secondary-actions">
|
<div class="col">
|
||||||
<ul class="clearfix">
|
<h1><%= @title %></h1>
|
||||||
<% 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 %>
|
<nav class="secondary-actions">
|
||||||
<li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
|
<ul class="clearfix">
|
||||||
<% end %>
|
<% unless params[:friends] or params[:nearby] -%>
|
||||||
|
<li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
<% if !@user && current_user %>
|
<% if @user && @user == current_user || !@user && current_user %>
|
||||||
<li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
|
<li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
|
||||||
</nav>
|
<% 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>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue