[Git][noosfero/noosfero][master] 2 commits: Open piwki in new tab

Rodrigo Souto gitlab at mg.gitlab.com
Tue May 15 13:37:16 BRT 2018


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
6c366d37 by mendesiasmin at 2018-05-11T18:03:36Z
Open piwki in new tab

- - - - -
f4755772 by Rodrigo Souto at 2018-05-15T16:37:09Z
Merge branch 'piwik-tab' into 'master'

Open piwki in new tab

See merge request noosfero/noosfero!1485
- - - - -


1 changed file:

- plugins/piwik/lib/piwik_plugin.rb


Changes:

=====================================
plugins/piwik/lib/piwik_plugin.rb
=====================================
--- a/plugins/piwik/lib/piwik_plugin.rb
+++ b/plugins/piwik/lib/piwik_plugin.rb
@@ -35,7 +35,8 @@ class PiwikPlugin < Noosfero::Plugin
       proc do
         protocol = request.ssl? ? 'https' : 'http'
         link = "#{protocol}://#{domain}/#{path}?idSite=#{id_site}"
-        {:title => _('Piwik'), :icon => 'line-chart', :url => link}
+        {:title => _('Piwik'), :icon => 'line-chart', :url => link,
+         :html_options => {:target => '_blank'}}
       end
     end
   end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/d006b1b08e71a18e15c4b424de98f264a2e12b72...f4755772b75d8420be94bf9b11443ec28c409ed2

-- 
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/d006b1b08e71a18e15c4b424de98f264a2e12b72...f4755772b75d8420be94bf9b11443ec28c409ed2
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180515/df2a527f/attachment-0001.html>


More information about the Noosfero-dev mailing list