[Git][noosfero/noosfero][master] display view all link only to profiles

Leandro Nunes gitlab at mg.gitlab.com
Fri May 13 21:13:22 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
96cb5139 by Leandro Nunes dos Santos at 2016-05-13T21:13:00-03:00
display view all link only to profiles

- - - - -


1 changed file:

- plugins/recent_content/views/blocks/recent_content.html.erb


Changes:

=====================================
plugins/recent_content/views/blocks/recent_content.html.erb
=====================================
--- 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 %>
       </div>
     <% 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 %>
   </div>
 <% else %>
   <span class="alert-block">



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/96cb5139d22e26b28b2f845625c833ef0d53574b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160514/c56c56ef/attachment.html>


More information about the Noosfero-dev mailing list