[Git][noosfero/noosfero][master] 2 commits: Fix article translations button

Tallys Martins gitlab at mg.gitlab.com
Mon Apr 3 12:11:30 BRT 2017


Tallys Martins pushed to branch master at Noosfero / noosfero


Commits:
5f9e235b by pedrodelyra at 2017-03-20T14:38:18-03:00
Fix article translations button

Signed-off-by: pedrodelyra <pedrodelyra at gmail.com>
Signed-off-by: Victor Navarro <victor.matias.navarro at gmail.com>

- - - - -
2e59bb59 by Tallys Martins at 2017-04-03T15:11:17+00:00
Merge branch 'fix-article-translation-btn' into 'master'

Fix article translations button

See merge request !1143
- - - - -


1 changed file:

- app/helpers/content_viewer_helper.rb


Changes:

=====================================
app/helpers/content_viewer_helper.rb
=====================================
--- a/app/helpers/content_viewer_helper.rb
+++ b/app/helpers/content_viewer_helper.rb
@@ -71,7 +71,7 @@ module ContentViewerHelper
         { article.environment.locales[translation.language] => { :href => url_for(translation.url) } }
       end
       content_tag(:div, link_to(_('Translations'), '#',
-                                :onmouseover => "toggleSubmenu(this, '#{_('Translations')}', #{CGI::escape_html(links.to_json)}); return false",
+                                :onmouseover => "toggleSubmenu(this, '#{_('Translations')}', #{links.to_json}); return false",
                                 :class => 'article-translations-menu simplemenu-trigger up'),
                   :class => 'article-translations')
     end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/8389449fafb93b0eb067277d811ff16f96df2bd1...2e59bb59faccb679b16fb9eeca934e7e20c099c1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170403/aace7e5a/attachment.html>


More information about the Noosfero-dev mailing list