@@ -687,6 +687,12 module ApplicationHelper | |||||
687 | content_tag('p', legend, :class => 'pourcent') |
|
687 | content_tag('p', legend, :class => 'pourcent') | |
688 | end |
|
688 | end | |
689 |
|
689 | |||
|
690 | def checked_image(checked=true) | |||
|
691 | if checked | |||
|
692 | image_tag 'toggle_check.png' | |||
|
693 | end | |||
|
694 | end | |||
|
695 | ||||
690 | def context_menu(url) |
|
696 | def context_menu(url) | |
691 | unless @context_menu_included |
|
697 | unless @context_menu_included | |
692 | content_for :header_tags do |
|
698 | content_for :header_tags do |
@@ -29,7 +29,7 | |||||
29 | <tr class="<%= cycle("odd", "even") %> <%= css_project_classes(project) %>"> |
|
29 | <tr class="<%= cycle("odd", "even") %> <%= css_project_classes(project) %>"> | |
30 | <td class="name" style="padding-left: <%= level %>em;"><%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %></td> |
|
30 | <td class="name" style="padding-left: <%= level %>em;"><%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %></td> | |
31 | <td><%= textilizable project.short_description, :project => project %></td> |
|
31 | <td><%= textilizable project.short_description, :project => project %></td> | |
32 |
<td align="center"><%= image |
|
32 | <td align="center"><%= checked_image project.is_public? %></td> | |
33 | <td align="center"><%= format_date(project.created_on) %></td> |
|
33 | <td align="center"><%= format_date(project.created_on) %></td> | |
34 | <td class="buttons"> |
|
34 | <td class="buttons"> | |
35 | <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> |
|
35 | <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %> |
@@ -15,9 +15,9 | |||||
15 | <tr class="<%= cycle("odd", "even") %>"> |
|
15 | <tr class="<%= cycle("odd", "even") %>"> | |
16 | <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td> |
|
16 | <td><%= link_to custom_field.name, :action => 'edit', :id => custom_field %></td> | |
17 | <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td> |
|
17 | <td align="center"><%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %></td> | |
18 |
<td align="center"><%= image |
|
18 | <td align="center"><%= checked_image custom_field.is_required? %></td> | |
19 | <% if tab[:name] == 'IssueCustomField' %> |
|
19 | <% if tab[:name] == 'IssueCustomField' %> | |
20 |
<td align="center"><%= image |
|
20 | <td align="center"><%= checked_image custom_field.is_for_all? %></td> | |
21 | <td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td> |
|
21 | <td align="center"><%= l(:label_x_projects, :count => custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %></td> | |
22 | <% end %> |
|
22 | <% end %> | |
23 | <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td> |
|
23 | <td align="center" style="width:15%;"><%= reorder_links('custom_field', {:action => 'edit', :id => custom_field}) %></td> |
@@ -16,8 +16,8 | |||||
16 | <% enumerations.each do |enumeration| %> |
|
16 | <% enumerations.each do |enumeration| %> | |
17 | <tr class="<%= cycle('odd', 'even') %>"> |
|
17 | <tr class="<%= cycle('odd', 'even') %>"> | |
18 | <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> |
|
18 | <td><%= link_to h(enumeration), :action => 'edit', :id => enumeration %></td> | |
19 |
<td class="center" style="width:15%;"><%= image |
|
19 | <td class="center" style="width:15%;"><%= checked_image enumeration.is_default? %></td> | |
20 |
<td class="center" style="width:15%;"><%= image |
|
20 | <td class="center" style="width:15%;"><%= checked_image enumeration.active? %></td> | |
21 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td> |
|
21 | <td style="width:15%;"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %></td> | |
22 | <td class="buttons"> |
|
22 | <td class="buttons"> | |
23 | <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, |
|
23 | <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, |
@@ -23,8 +23,8 | |||||
23 | <% if Issue.use_status_for_done_ratio? %> |
|
23 | <% if Issue.use_status_for_done_ratio? %> | |
24 | <td align="center"><%= h status.default_done_ratio %></td> |
|
24 | <td align="center"><%= h status.default_done_ratio %></td> | |
25 | <% end %> |
|
25 | <% end %> | |
26 |
<td align="center"><%= image |
|
26 | <td align="center"><%= checked_image status.is_default? %></td> | |
27 |
<td align="center"><%= image |
|
27 | <td align="center"><%= checked_image status.is_closed? %></td> | |
28 | <td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}) %></td> |
|
28 | <td align="center" style="width:15%;"><%= reorder_links('issue_status', {:action => 'update', :id => status}) %></td> | |
29 | <td class="buttons"> |
|
29 | <td class="buttons"> | |
30 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => status }, |
|
30 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => status }, |
@@ -17,7 +17,7 | |||||
17 | <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> |
|
17 | <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %> | |
18 | <%= h(enumeration) %> |
|
18 | <%= h(enumeration) %> | |
19 | </td> |
|
19 | </td> | |
20 |
<td align="center" style="width:15%;"><%= |
|
20 | <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td> | |
21 | <% enumeration.custom_field_values.each do |value| %> |
|
21 | <% enumeration.custom_field_values.each do |value| %> | |
22 | <td align="center"> |
|
22 | <td align="center"> | |
23 | <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> |
|
23 | <%= custom_field_tag "enumerations[#{enumeration.id}]", value %> |
@@ -34,7 +34,7 | |||||
34 | <td class="firstname"><%= h(user.firstname) %></td> |
|
34 | <td class="firstname"><%= h(user.firstname) %></td> | |
35 | <td class="lastname"><%= h(user.lastname) %></td> |
|
35 | <td class="lastname"><%= h(user.lastname) %></td> | |
36 | <td class="email"><%= mail_to(h(user.mail)) %></td> |
|
36 | <td class="email"><%= mail_to(h(user.mail)) %></td> | |
37 |
<td align="center"><%= image |
|
37 | <td align="center"><%= checked_image user.admin? %></td> | |
38 | <td class="created_on" align="center"><%= format_time(user.created_on) %></td> |
|
38 | <td class="created_on" align="center"><%= format_time(user.created_on) %></td> | |
39 | <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td> |
|
39 | <td class="last_login_on" align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td> | |
40 | <td><small><%= change_status_link(user) %></small></td> |
|
40 | <td><small><%= change_status_link(user) %></small></td> |
General Comments 0
You need to be logged in to leave comments.
Login now