[Git][noosfero/noosfero][master] 2 commits: addthis: only show for public pages

Antonio Terceiro gitlab at gitlab.com
Tue Jul 28 13:30:50 BRT 2015


Antonio Terceiro pushed to branch master at Noosfero / noosfero


Commits:
ee2c8e33 by Braulio Bhavamitra at 2015-07-28T12:37:47Z
addthis: only show for public pages

- - - - -
c5a8c717 by Antonio Terceiro at 2015-07-28T16:30:23Z
Merge branch 'addthis-on-private-pages' into 'master'

addthis: only show for public pages

See merge request !638

- - - - -


1 changed file:

- app/views/content_viewer/view_page.html.erb


Changes:

=====================================
app/views/content_viewer/view_page.html.erb
=====================================
--- a/app/views/content_viewer/view_page.html.erb
+++ b/app/views/content_viewer/view_page.html.erb
@@ -24,7 +24,7 @@
   <%= render :partial => 'article_toolbar' %>
 </div>
 
-<% if NOOSFERO_CONF['addthis_enabled'] %>
+<% if NOOSFERO_CONF['addthis_enabled'] and @page.public? %>
   <%= render :partial => 'addthis' %>
 <% end %>
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/3d2238466423812a0e2050b29177f3d1f025f082...c5a8c717a0e9ebd33f6fd37458178a0cef553b45
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150728/5e32f63f/attachment.html>


More information about the Noosfero-dev mailing list