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