Commit 96cb5139d22e26b28b2f845625c833ef0d53574b

Authored by Leandro Santos
1 parent 51676464

display view all link only to profiles

plugins/recent_content/views/blocks/recent_content.html.erb
... ... @@ -36,7 +36,9 @@
36 36 <% end %>
37 37 </div>
38 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 42 </div>
41 43 <% else %>
42 44 <span class="alert-block">
... ...