<li class="nav-item">
<%= link_to t(".block", :id => @user_block.id),
user_block_path(@user_block),
- :class => ["nav-link", { :active => action_name == "show" }] %>
+ :class => "nav-link active" %>
</li>
<% end %>
</ul>
<% @title = t ".title", :name => @user_block.user.display_name %>
+
+<% content_for :heading_class, "pb-0" %>
<% content_for :heading do %>
<h1><%= t(".heading_html", :name => link_to(@user_block.user.display_name, @user_block.user)) %></h1>
- <nav class='secondary-actions'>
- <ul class='clearfix'>
- <li><%= link_to t(".show"), @user_block %></li>
- <li><%= link_to t(".back"), user_blocks_path %></li>
- </ul>
- </nav>
+ <%= render :partial => "navigation" %>
<% end %>
<%= bootstrap_form_for(@user_block) do |f| %>
title: "Editing block on %{name}"
heading_html: "Editing block on %{name}"
period: "How long, starting now, the user will be blocked from the API for."
- show: "View this block"
- back: "View all blocks"
filter:
block_period: "The blocking period must be one of the values selectable in the drop-down list."
create: