[Git][noosfero/noosfero][master] 2 commits: Use profile homepage
Bráulio Bhavamitra
gitlab at gitlab.com
Wed Jun 17 20:15:36 BRT 2015
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
b1e59638 by Braulio Bhavamitra at 2015-06-17T13:15:33Z
Use profile homepage
- - - - -
b84467b5 by Bráulio Bhavamitra at 2015-06-17T23:15:27Z
Merge branch 'use-profile-homepage' into 'master'
Use profile homepage
The profile homepage is not used in some places
See merge request !555
- - - - -
1 changed file:
- app/helpers/application_helper.rb
Changes:
=====================================
app/helpers/application_helper.rb
=====================================
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -1185,7 +1185,7 @@ module ApplicationHelper
pending_tasks_count = link_to(count.to_s, user.tasks_url, :id => 'pending-tasks-count', :title => _("Manage your pending tasks"))
end
- (_("<span class='welcome'>Welcome,</span> %s") % link_to("<i style='background-image:url(#{user.profile_custom_icon(gravatar_default)})'></i><strong>#{user.identifier}</strong>", user.public_profile_url, :id => "homepage-link", :title => _('Go to your homepage'))) +
+ (_("<span class='welcome'>Welcome,</span> %s") % link_to("<i style='background-image:url(#{user.profile_custom_icon(gravatar_default)})'></i><strong>#{user.identifier}</strong>", user.url, :id => "homepage-link", :title => _('Go to your homepage'))) +
render_environment_features(:usermenu) +
admin_link +
manage_enterprises +
@@ -1233,7 +1233,7 @@ module ApplicationHelper
def task_information(task)
values = {}
- values.merge!({:requestor => link_to(task.requestor.name, task.requestor.public_profile_url)}) if task.requestor
+ values.merge!({:requestor => link_to(task.requestor.name, task.requestor.url)}) if task.requestor
values.merge!({:subject => content_tag('span', task.subject, :class=>'task_target')}) if task.subject
values.merge!({:linked_subject => link_to(content_tag('span', task.linked_subject[:text], :class => 'task_target'), task.linked_subject[:url])}) if task.linked_subject
values.merge!(task.information[:variables]) if task.information[:variables]
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/f45a557046c43dfe97616dd31e7577625bb23348...b84467b5aacdb6d87ae97f1044383b2e77d6d9d4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150617/5ff45202/attachment.html>
More information about the Noosfero-dev
mailing list