Commit 96cb5139d22e26b28b2f845625c833ef0d53574b
1 parent
51676464
Exists in
ratings_minor_fixes
and in
4 other branches
display view all link only to profiles
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
plugins/recent_content/views/blocks/recent_content.html.erb
@@ -36,7 +36,9 @@ | @@ -36,7 +36,9 @@ | ||
36 | <% end %> | 36 | <% end %> |
37 | </div> | 37 | </div> |
38 | <% end %> | 38 | <% end %> |
39 | - <%= link_to _('View All'), :profile => profile.identifier, :controller => 'content_viewer', :action => 'view_page', :page => block.root.path %> | 39 | + <% if profile %> |
40 | + <%= link_to _('View All'), :profile => profile.identifier, :controller => 'content_viewer', :action => 'view_page', :page => block.root.path %> | ||
41 | + <% end %> | ||
40 | </div> | 42 | </div> |
41 | <% else %> | 43 | <% else %> |
42 | <span class="alert-block"> | 44 | <span class="alert-block"> |