Commit 5eb77a86125855c2ec8f16f1964a4782d598d7f3

Authored by Daniela Feitosa
1 parent 8557d3d2

Fixing admin link

(ActionItem2016)
app/helpers/application_helper.rb
@@ -1121,7 +1121,7 @@ module ApplicationHelper @@ -1121,7 +1121,7 @@ module ApplicationHelper
1121 1121
1122 (_('Welcome, %s') % link_to('<i></i><strong>{login}</strong>', @environment.top_url + '/{login}', :id => "homepage-link", :title => _('Go to your homepage'))) + 1122 (_('Welcome, %s') % link_to('<i></i><strong>{login}</strong>', @environment.top_url + '/{login}', :id => "homepage-link", :title => _('Go to your homepage'))) +
1123 render_environment_features(:usermenu) + 1123 render_environment_features(:usermenu) +
1124 - link_to('<i class="icon-menu-admin"></i><strong>' + _('Administration') + '</strong>', { :host => @environment.default_hostname, :controller => 'admin_panel', :action => 'index' }, :id => "controlpanel", :title => _("Configure the environment"), :class => 'admin-link', :style => 'display: none') + 1124 + link_to('<i class="icon-menu-admin"></i><strong>' + _('Administration') + '</strong>', @environment.top_url + '/admin', :id => "controlpanel", :title => _("Configure the environment"), :class => 'admin-link', :style => 'display: none') +
1125 manage_enterprises.to_s + 1125 manage_enterprises.to_s +
1126 link_to('<i class="icon-menu-ctrl-panel"></i><strong>' + _('Control panel') + '</strong>', @environment.top_url + '/myprofile/{login}', :id => "controlpanel", :title => _("Configure your personal account and content")) + 1126 link_to('<i class="icon-menu-ctrl-panel"></i><strong>' + _('Control panel') + '</strong>', @environment.top_url + '/myprofile/{login}', :id => "controlpanel", :title => _("Configure your personal account and content")) +
1127 pending_tasks_count + 1127 pending_tasks_count +
features/profile_domain.feature
@@ -69,4 +69,4 @@ Feature: domain for profile @@ -69,4 +69,4 @@ Feature: domain for profile
69 Scenario: Compose link to administration with environment domain 69 Scenario: Compose link to administration with environment domain
70 Given I am logged in as "joaosilva" 70 Given I am logged in as "joaosilva"
71 When I visit "/" and wait 71 When I visit "/" and wait
72 - Then I should see "Administration" linking to "http://127.0.0.1:3001/admin" 72 + Then I should see "Administration" linking to "http://127.0.0.1/admin"