diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-02 18:52:37 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-10-02 18:52:37 +0200 |
commit | cc24a2bbd3aa86dd9c91564c5ce071e095fde61b (patch) | |
tree | 46ac57a4279925ea0919b8e6c1e62a7578b5f05a /sonar-server/src/main | |
parent | f9b3ab5232378f22a5cd37325c3c85c68984f630 (diff) | |
download | sonarqube-cc24a2bbd3aa86dd9c91564c5ce071e095fde61b.tar.gz sonarqube-cc24a2bbd3aa86dd9c91564c5ce071e095fde61b.zip |
Fix profile links
Diffstat (limited to 'sonar-server/src/main')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb index 2ea6c613a7c..1189d89009f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb @@ -62,7 +62,7 @@ <td align="right" width="10%" nowrap> <% if !profile.default_profile? && administrator? %> - <%= link_to_action message('set_as_default'), "profiles/set_as_default?id=#{profile.id}", + <%= link_to_action message('set_as_default'), "#{ApplicationController.root_context}/profiles/set_as_default?id=#{profile.id}", :id => "activate_#{profile.key.parameterize}", :class => 'link-action', :confirm_title => message('set_as_default'), @@ -79,22 +79,22 @@ <% if administrator? %> <td align="right"> - <form method="post" action="/dev/profiles/backup/<%= profile.id -%>" id="backup-<%= profile.key.parameterize -%>-form"> + <form method="post" action="<%= ApplicationController.root_context -%>/profiles/backup/<%= profile.id -%>" id="backup-<%= profile.key.parameterize -%>-form"> <a href="#" class="link-action" name="button_backup" id="backup_<%= u profile.key %>" onclick="$j('#backup-<%= profile.key.parameterize -%>-form').submit();return false;"><%= message('backup_verb') -%></a> </form> </td> <td align="right"> - <a id="rename-<%= profile.key.parameterize -%>" href="profiles/rename_form/<%= profile.id -%>" class="link-action open-modal"><%= message('rename') -%></a> + <a id="rename-<%= profile.key.parameterize -%>" href="<%= ApplicationController.root_context -%>/profiles/rename_form/<%= profile.id -%>" class="link-action open-modal"><%= message('rename') -%></a> </td> <td align="right"> - <a id="copy-<%= profile.key.parameterize -%>" href="profiles/copy_form/<%= profile.id -%>" class="link-action open-modal"><%= message('copy') -%></a> + <a id="copy-<%= profile.key.parameterize -%>" href="<%= ApplicationController.root_context -%>/profiles/copy_form/<%= profile.id -%>" class="link-action open-modal"><%= message('copy') -%></a> </td> <td> <% if profile.deletable? %> - <%= link_to_action message('delete'), "profiles/delete/#{profile.id}", + <%= link_to_action message('delete'), "#{ApplicationController.root_context}/profiles/delete/#{profile.id}", :class => 'link-action link-red', :id => "delete_#{profile.key.parameterize}", :confirm_button => message('delete'), |