From 96cb5139d22e26b28b2f845625c833ef0d53574b Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Fri, 13 May 2016 21:13:00 -0300 Subject: [PATCH] display view all link only to profiles --- plugins/recent_content/views/blocks/recent_content.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/recent_content/views/blocks/recent_content.html.erb b/plugins/recent_content/views/blocks/recent_content.html.erb index 33cf954..c5f5780 100644 --- a/plugins/recent_content/views/blocks/recent_content.html.erb +++ b/plugins/recent_content/views/blocks/recent_content.html.erb @@ -36,7 +36,9 @@ <% end %> <% end %> - <%= link_to _('View All'), :profile => profile.identifier, :controller => 'content_viewer', :action => 'view_page', :page => block.root.path %> + <% if profile %> + <%= link_to _('View All'), :profile => profile.identifier, :controller => 'content_viewer', :action => 'view_page', :page => block.root.path %> + <% end %> <% else %> -- libgit2 0.21.2