<input name="role" value="<%= @role -%>" type="hidden"/>
<fieldset>
<div class="modal-head">
- <h2><%= @project ? 'Edit permissions for: ' + h(@project.name) : "System #{role_name(@role)}" -%></h2>
+ <h2><%= @project ? 'Edit permissions for: ' + h(@project.name) : "System #{message("global_permissions.#{@role}")}" -%></h2>
</div>
<div class="modal-body">
<div id="permission-groups-error" class="permission-groups error" style="display:none;" />
<input name="role" value="<%= @role -%>" type="hidden" />
<fieldset>
<div class="modal-head">
- <h2><%= @project ? 'Edit permissions for: ' + h(@project.name) : "System #{role_name(@role)}" -%></h2>
+ <h2><%= @project ? 'Edit permissions for: ' + h(@project.name) : "System #{message("global_permissions.#{@role}")}" -%></h2>
</div>
<div class="modal-body">
<div id="permission-users-error" class="permission-users error" style="display:none;" />
<% Java::OrgSonarCorePermission::Permission::allGlobal.keySet.each do |global_permission_key| %>
<tr class="<%= cycle('even', 'odd', :name => 'global_permission') -%>" >
<td valign="top">
- <b><%= message('global_permissions.' + global_permission_key) -%></b><br/>
- <span class="small gray"><%= message('global_permissions.' + global_permission_key + '.desc') -%></span></td>
+ <b><%= message("global_permissions.#{global_permission_key}") -%></b><br/>
+ <span class="small gray"><%= message("global_permissions.#{global_permission_key}.desc") -%></span></td>
<td valign="top" style="word-break:break-all;width:30%;">
<span><%= users(global_permission_key).map(&:name).join(', ') -%></span>
(<%= link_to_edit_roles_permission_form(message('select'), global_permission_key, nil, "select-users-#{global_permission_key}") %>)<br/>