Add revoke all blocks page title
This commit is contained in:
parent
ba53dc7b04
commit
3443533ce3
4 changed files with 17 additions and 2 deletions
|
@ -8,7 +8,7 @@ class UserBlocksController < ApplicationController
|
|||
|
||||
authorize_resource
|
||||
|
||||
before_action :lookup_user, :only => [:new, :create, :blocks_on, :blocks_by]
|
||||
before_action :lookup_user, :only => [:new, :create, :revoke_all, :blocks_on, :blocks_by]
|
||||
before_action :lookup_user_block, :only => [:show, :edit, :update, :revoke]
|
||||
before_action :require_valid_params, :only => [:create, :update]
|
||||
before_action :check_database_readable
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<% @title = t ".title",
|
||||
:block_on => @user.display_name %>
|
||||
|
||||
<% content_for :heading do %>
|
||||
<h1><%= t ".heading_html",
|
||||
:block_on => link_to(@user.display_name,
|
||||
user_path(@user)) %></h1>
|
||||
<% end %>
|
Loading…
Add table
Add a link
Reference in a new issue