Add "blocks on" and "blocks by" links to the user page when a logged
in user is looking at their own page.
This commit is contained in:
parent
a6952b38a0
commit
a549d33fdf
2 changed files with 6 additions and 0 deletions
|
@ -18,6 +18,10 @@
|
||||||
| <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name %>
|
| <%= link_to t('user.view.my edits'), :controller => 'changeset', :action => 'list', :display_name => @user.display_name %>
|
||||||
| <%= link_to t('user.view.my traces'), :controller => 'trace', :action=>'mine' %>
|
| <%= link_to t('user.view.my traces'), :controller => 'trace', :action=>'mine' %>
|
||||||
| <%= link_to t('user.view.my settings'), :controller => 'user', :action => 'account', :display_name => @user.display_name %>
|
| <%= link_to t('user.view.my settings'), :controller => 'user', :action => 'account', :display_name => @user.display_name %>
|
||||||
|
| <%= link_to t('user.view.blocks on me'), :controller => 'user_blocks', :action => 'blocks_on', :display_name => @user.display_name %>
|
||||||
|
<% if @user and @user.moderator? %>
|
||||||
|
| <%= link_to t('user.view.blocks by me'), :controller => 'user_blocks', :action => 'blocks_by', :display_name => @user.display_name %>
|
||||||
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<!-- Displaying another user's profile page -->
|
<!-- Displaying another user's profile page -->
|
||||||
<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => @this_user.display_name %>
|
<%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => @this_user.display_name %>
|
||||||
|
|
|
@ -922,6 +922,8 @@ en:
|
||||||
my edits: my edits
|
my edits: my edits
|
||||||
my traces: my traces
|
my traces: my traces
|
||||||
my settings: my settings
|
my settings: my settings
|
||||||
|
blocks on me: blocks on me
|
||||||
|
blocks by me: blocks by me
|
||||||
send message: send message
|
send message: send message
|
||||||
diary: diary
|
diary: diary
|
||||||
edits: edits
|
edits: edits
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue