[Git][noosfero/noosfero][master] set profile in url
Leandro Nunes
gitlab at mg.gitlab.com
Mon May 22 09:19:46 BRT 2017
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
286b9849 by Leandro Nunes dos Santos at 2017-05-22T09:19:20-03:00
set profile in url
- - - - -
1 changed file:
- app/views/blocks/menu.html.erb
Changes:
=====================================
app/views/blocks/menu.html.erb
=====================================
--- a/app/views/blocks/menu.html.erb
+++ b/app/views/blocks/menu.html.erb
@@ -3,7 +3,7 @@
<ul>
<% block.enabled_links_for(user).each do |link| %>
<% if link[:controller] %>
- <li class="<%= current_page?(:controller => link[:controller], :action => link[:action]) ? 'active' : '' %>">
+ <li class="<%= current_page?(:controller => link[:controller], :action => link[:action], :profile => block.owner.identifier) ? 'active' : '' %>">
<%= link_to link[:title], {:controller => link[:controller], :action => link[:action], :profile => block.owner.identifier} %>
</li>
<% end %>
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/286b9849218980be0ea9399ad09aa07a0d83322c
---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/286b9849218980be0ea9399ad09aa07a0d83322c
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/20170522/b57c066a/attachment.html>
More information about the Noosfero-dev
mailing list