Rework trace index to use secondary-actions
The border between items is familiar UI, so we can keep it, but lets use the secondary-actions approach instead. This avoids using left-right specific border, margin and padding classes
This commit is contained in:
parent
698d7a0668
commit
4e06fe054a
1 changed files with 12 additions and 6 deletions
|
@ -1,12 +1,18 @@
|
|||
<% content_for :heading_class, "pb-0" %>
|
||||
<% content_for :heading do %>
|
||||
<h1><%= @title %></h1>
|
||||
<p>
|
||||
<nav class="secondary-actions mb-3">
|
||||
<ul>
|
||||
<li>
|
||||
<%= t(".description") %>
|
||||
</li>
|
||||
<% if params[:tag] %>
|
||||
<%= link_to t(".remove_tag_filter", :tag => params[:tag]), { :controller => "traces", :action => "index", :display_name => nil, :tag => nil, :page => nil }, { :class => "border-left ml-2 pl-2" } %>
|
||||
<li>
|
||||
<%= link_to t(".remove_tag_filter", :tag => params[:tag]), { :controller => "traces", :action => "index", :display_name => nil, :tag => nil, :page => nil } %>
|
||||
</li>
|
||||
<% end %>
|
||||
</p>
|
||||
</ul>
|
||||
</nav>
|
||||
<ul class="nav nav-tabs flex-column flex-sm-row">
|
||||
<% if @target_user.blank? %>
|
||||
<!-- public traces -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue