[Git][noosfero/noosfero][master] html safe fix of article publication in profile wall
Leandro Nunes
gitlab at mg.gitlab.com
Fri May 6 09:11:58 BRT 2016
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
e6612c79 by Leandro Nunes dos Santos at 2016-05-06T09:11:40-03:00
html safe fix of article publication in profile wall
- - - - -
1 changed file:
- app/views/profile/_create_article.html.erb
Changes:
=====================================
app/views/profile/_create_article.html.erb
=====================================
--- a/app/views/profile/_create_article.html.erb
+++ b/app/views/profile/_create_article.html.erb
@@ -4,7 +4,7 @@
<div class='profile-activity-description profile-activity-article-<%= activity.target.class.icon_name %>'>
<p class='profile-activity-text'>
<%= link_to activity.user.short_name(20), activity.user.url %>
- <%= _("has published on community %s") % link_to(activity.target.profile.short_name(20), activity.target.profile.url) if activity.target.profile.is_a?(Community) %>
+ <%= _("has published on community %s").html_safe % link_to(activity.target.profile.short_name(20), activity.target.profile.url) if activity.target.profile.is_a?(Community) %>
</p>
<div class='profile-activity-lead'>
<div class='article-name'><%= link_to(activity.params['name'], activity.params['url']) %></div>
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/e6612c79cde0b7f9c88d304ea82d78b4e1c41f3d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160506/be175eb4/attachment-0001.html>
More information about the Noosfero-dev
mailing list