@@ -1,57 +1,58 | |||||
1 | <h2><%= l(:label_bulk_edit_selected_issues) %></h2> |
|
1 | <h2><%= l(:label_bulk_edit_selected_issues) %></h2> | |
2 |
|
2 | |||
3 | <ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul> |
|
3 | <ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul> | |
4 |
|
4 | |||
5 | <% form_tag() do %> |
|
5 | <% form_tag() do %> | |
6 | <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> |
|
6 | <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> | |
7 | <div class="box"> |
|
7 | <div class="box"> | |
8 | <fieldset> |
|
8 | <fieldset> | |
9 | <legend><%= l(:label_change_properties) %></legend> |
|
9 | <legend><%= l(:label_change_properties) %></legend> | |
10 | <p> |
|
10 | <p> | |
11 | <% if @available_statuses.any? %> |
|
11 | <% if @available_statuses.any? %> | |
12 | <label><%= l(:field_status) %>: |
|
12 | <label><%= l(:field_status) %>: | |
13 | <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label> |
|
13 | <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label> | |
14 | <% end %> |
|
14 | <% end %> | |
15 | <label><%= l(:field_priority) %>: |
|
15 | <label><%= l(:field_priority) %>: | |
16 | <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label> |
|
16 | <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label> | |
17 | <label><%= l(:field_category) %>: |
|
17 | <label><%= l(:field_category) %>: | |
18 | <%= select_tag('category_id', content_tag('option', l(:label_no_change_option), :value => '') + |
|
18 | <%= select_tag('category_id', content_tag('option', l(:label_no_change_option), :value => '') + | |
19 | content_tag('option', l(:label_none), :value => 'none') + |
|
19 | content_tag('option', l(:label_none), :value => 'none') + | |
20 | options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label> |
|
20 | options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label> | |
21 | </p> |
|
21 | </p> | |
22 | <p> |
|
22 | <p> | |
23 | <label><%= l(:field_assigned_to) %>: |
|
23 | <label><%= l(:field_assigned_to) %>: | |
24 | <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + |
|
24 | <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + | |
25 | content_tag('option', l(:label_nobody), :value => 'none') + |
|
25 | content_tag('option', l(:label_nobody), :value => 'none') + | |
26 | options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label> |
|
26 | options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label> | |
27 | <label><%= l(:field_fixed_version) %>: |
|
27 | <label><%= l(:field_fixed_version) %>: | |
28 | <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') + |
|
28 | <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') + | |
29 | content_tag('option', l(:label_none), :value => 'none') + |
|
29 | content_tag('option', l(:label_none), :value => 'none') + | |
30 | options_from_collection_for_select(@project.versions.sort, :id, :name)) %></label> |
|
30 | options_from_collection_for_select(@project.versions.sort, :id, :name)) %></label> | |
31 | </p> |
|
31 | </p> | |
32 |
|
32 | |||
33 | <p> |
|
33 | <p> | |
34 | <label><%= l(:field_start_date) %>: |
|
34 | <label><%= l(:field_start_date) %>: | |
35 | <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label> |
|
35 | <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label> | |
36 | <label><%= l(:field_due_date) %>: |
|
36 | <label><%= l(:field_due_date) %>: | |
37 | <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label> |
|
37 | <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label> | |
38 | <label><%= l(:field_done_ratio) %>: |
|
38 | <label><%= l(:field_done_ratio) %>: | |
39 | <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label> |
|
39 | <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label> | |
40 | </p> |
|
40 | </p> | |
41 |
|
41 | |||
42 | <% @custom_fields.each do |custom_field| %> |
|
42 | <% @custom_fields.each do |custom_field| %> | |
43 | <p><label><%= h(custom_field.name) %></label> |
|
43 | <p><label><%= h(custom_field.name) %></label> | |
44 | <%= select_tag "custom_field_values[#{custom_field.id}]", options_for_select([[l(:label_no_change_option), '']] + custom_field.possible_values) %></label> |
|
44 | <%= select_tag "custom_field_values[#{custom_field.id}]", options_for_select([[l(:label_no_change_option), '']] + custom_field.possible_values) %></label> | |
45 | </p> |
|
45 | </p> | |
46 | <% end %> |
|
46 | <% end %> | |
47 |
|
47 | |||
48 | <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> |
|
48 | <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> | |
49 | </fieldset> |
|
49 | </fieldset> | |
50 |
|
50 | |||
51 | <fieldset><legend><%= l(:field_notes) %></legend> |
|
51 | <fieldset><legend><%= l(:field_notes) %></legend> | |
52 | <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> |
|
52 | <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> | |
53 | <%= wikitoolbar_for 'notes' %> |
|
53 | <%= wikitoolbar_for 'notes' %> | |
|
54 | </fieldset> | |||
54 | </div> |
|
55 | </div> | |
55 |
|
56 | |||
56 | <p><%= submit_tag l(:button_submit) %> |
|
57 | <p><%= submit_tag l(:button_submit) %> | |
57 | <% end %> |
|
58 | <% end %> |
@@ -1,52 +1,52 | |||||
1 | <h3><%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)</h3> |
|
1 | <h3><%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)</h3> | |
2 | <% |
|
2 | <% | |
3 | entries = TimeEntry.find(:all, |
|
3 | entries = TimeEntry.find(:all, | |
4 | :conditions => ["#{TimeEntry.table_name}.user_id = ? AND #{TimeEntry.table_name}.spent_on BETWEEN ? AND ?", @user.id, Date.today - 6, Date.today], |
|
4 | :conditions => ["#{TimeEntry.table_name}.user_id = ? AND #{TimeEntry.table_name}.spent_on BETWEEN ? AND ?", @user.id, Date.today - 6, Date.today], | |
5 | :include => [:activity, :project, {:issue => [:tracker, :status]}], |
|
5 | :include => [:activity, :project, {:issue => [:tracker, :status]}], | |
6 | :order => "#{TimeEntry.table_name}.spent_on DESC, #{Project.table_name}.name ASC, #{Tracker.table_name}.position ASC, #{Issue.table_name}.id ASC") |
|
6 | :order => "#{TimeEntry.table_name}.spent_on DESC, #{Project.table_name}.name ASC, #{Tracker.table_name}.position ASC, #{Issue.table_name}.id ASC") | |
7 | entries_by_day = entries.group_by(&:spent_on) |
|
7 | entries_by_day = entries.group_by(&:spent_on) | |
8 | %> |
|
8 | %> | |
9 |
|
9 | |||
10 | <div class="total-hours"> |
|
10 | <div class="total-hours"> | |
11 | <p><%= l(:label_total) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p> |
|
11 | <p><%= l(:label_total) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p> | |
12 | </div> |
|
12 | </div> | |
13 |
|
13 | |||
14 | <% if entries.any? %> |
|
14 | <% if entries.any? %> | |
15 | <table class="list time-entries"> |
|
15 | <table class="list time-entries"> | |
16 | <thead> |
|
16 | <thead> | |
17 | <th><%= l(:label_activity) %></th> |
|
17 | <th><%= l(:label_activity) %></th> | |
18 | <th><%= l(:label_project) %></th> |
|
18 | <th><%= l(:label_project) %></th> | |
19 | <th><%= l(:field_comments) %></th> |
|
19 | <th><%= l(:field_comments) %></th> | |
20 | <th><%= l(:field_hours) %></th> |
|
20 | <th><%= l(:field_hours) %></th> | |
21 | <th></th> |
|
21 | <th></th> | |
22 | </thead> |
|
22 | </thead> | |
23 | <tbody> |
|
23 | <tbody> | |
24 | <% entries_by_day.keys.sort.reverse.each do |day| %> |
|
24 | <% entries_by_day.keys.sort.reverse.each do |day| %> | |
25 | <tr class="odd"> |
|
25 | <tr class="odd"> | |
26 | <td><strong><%= day == Date.today ? l(:label_today).titleize : format_date(day) %></strong></td> |
|
26 | <td><strong><%= day == Date.today ? l(:label_today).titleize : format_date(day) %></strong></td> | |
27 | <td colspan="2"></td> |
|
27 | <td colspan="2"></td> | |
28 | <td class="hours"><em><%= html_hours("%.2f" % entries_by_day[day].sum(&:hours).to_f) %></em></td> |
|
28 | <td class="hours"><em><%= html_hours("%.2f" % entries_by_day[day].sum(&:hours).to_f) %></em></td> | |
29 | <td></td> |
|
29 | <td></td> | |
30 | </tr> |
|
30 | </tr> | |
31 | <% entries_by_day[day].each do |entry| -%> |
|
31 | <% entries_by_day[day].each do |entry| -%> | |
32 | <tr class="time-entry" style="border-bottom: 1px solid #f5f5f5;"> |
|
32 | <tr class="time-entry" style="border-bottom: 1px solid #f5f5f5;"> | |
33 | <td class="activity"><%=h entry.activity %></td> |
|
33 | <td class="activity"><%=h entry.activity %></td> | |
34 | <td class="subject"><%=h entry.project %> <%= ' - ' + link_to_issue(entry.issue, :title => h("#{entry.issue.subject} (#{entry.issue.status})")) if entry.issue %></td> |
|
34 | <td class="subject"><%=h entry.project %> <%= ' - ' + link_to_issue(entry.issue, :title => h("#{entry.issue.subject} (#{entry.issue.status})")) if entry.issue %></td> | |
35 | <td class="comments"><%=h entry.comments %></td> |
|
35 | <td class="comments"><%=h entry.comments %></td> | |
36 | <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> |
|
36 | <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td> | |
37 | <td align="center"> |
|
37 | <td align="center"> | |
38 | <% if entry.editable_by?(@user) -%> |
|
38 | <% if entry.editable_by?(@user) -%> | |
39 | <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry}, |
|
39 | <%= link_to image_tag('edit.png'), {:controller => 'timelog', :action => 'edit', :id => entry}, | |
40 | :title => l(:button_edit) %> |
|
40 | :title => l(:button_edit) %> | |
41 | <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry}, |
|
41 | <%= link_to image_tag('delete.png'), {:controller => 'timelog', :action => 'destroy', :id => entry}, | |
42 | :confirm => l(:text_are_you_sure), |
|
42 | :confirm => l(:text_are_you_sure), | |
43 | :method => :post, |
|
43 | :method => :post, | |
44 | :title => l(:button_delete) %> |
|
44 | :title => l(:button_delete) %> | |
45 | <% end -%> |
|
45 | <% end -%> | |
46 | </td> |
|
46 | </td> | |
47 | </tr> |
|
47 | </tr> | |
48 | <% end -%> |
|
48 | <% end -%> | |
49 | <% end -%> |
|
49 | <% end -%> | |
50 |
</tb |
|
50 | </tbody> | |
51 | </table> |
|
51 | </table> | |
52 | <% end %> |
|
52 | <% end %> |
@@ -1,29 +1,28 | |||||
1 | <% if @project.versions.any? %> |
|
1 | <% if @project.versions.any? %> | |
2 | <table class="list"> |
|
2 | <table class="list"> | |
3 | <thead> |
|
3 | <thead> | |
4 | <th><%= l(:label_version) %></th> |
|
4 | <th><%= l(:label_version) %></th> | |
5 | <th><%= l(:field_effective_date) %></th> |
|
5 | <th><%= l(:field_effective_date) %></th> | |
6 | <th><%= l(:field_description) %></th> |
|
6 | <th><%= l(:field_description) %></th> | |
7 | <th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th> |
|
7 | <th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th> | |
8 | <th style="width:15%"></th> |
|
8 | <th style="width:15%"></th> | |
9 | <th style="width:15%"></th> |
|
9 | <th style="width:15%"></th> | |
10 | </thead> |
|
10 | </thead> | |
11 | <tbody> |
|
11 | <tbody> | |
12 | <% for version in @project.versions.sort %> |
|
12 | <% for version in @project.versions.sort %> | |
13 | <tr class="<%= cycle 'odd', 'even' %>"> |
|
13 | <tr class="<%= cycle 'odd', 'even' %>"> | |
14 | <td><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></td> |
|
14 | <td><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></td> | |
15 | <td align="center"><%= format_date(version.effective_date) %></td> |
|
15 | <td align="center"><%= format_date(version.effective_date) %></td> | |
16 | <td><%=h version.description %></td> |
|
16 | <td><%=h version.description %></td> | |
17 | <td><%= link_to(version.wiki_page_title, :controller => 'wiki', :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || @project.wiki.nil? %></td> |
|
17 | <td><%= link_to(version.wiki_page_title, :controller => 'wiki', :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || @project.wiki.nil? %></td> | |
18 | <td align="center"><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></td> |
|
18 | <td align="center"><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></td> | |
19 | <td align="center"><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></td> |
|
19 | <td align="center"><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></td> | |
20 | </td> |
|
|||
21 | </tr> |
|
20 | </tr> | |
22 | <% end; reset_cycle %> |
|
21 | <% end; reset_cycle %> | |
23 | </tbody> |
|
22 | </tbody> | |
24 | </table> |
|
23 | </table> | |
25 | <% else %> |
|
24 | <% else %> | |
26 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
25 | <p class="nodata"><%= l(:label_no_data) %></p> | |
27 | <% end %> |
|
26 | <% end %> | |
28 |
|
27 | |||
29 | <p><%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %></p> |
|
28 | <p><%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %></p> |
@@ -1,18 +1,18 | |||||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
3 | <head> |
|
3 | <head> | |
4 | <title><%=h @page.pretty_title %></title> |
|
4 | <title><%=h @page.pretty_title %></title> | |
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
6 | <style> |
|
6 | <style> | |
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } |
|
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } | |
8 | h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } |
|
8 | h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } | |
9 | ul.toc { padding: 4px; margin-left: 0; } |
|
9 | ul.toc { padding: 4px; margin-left: 0; } | |
10 | ul.toc li { list-style-type:none; } |
|
10 | ul.toc li { list-style-type:none; } | |
11 | ul.toc li.heading2 { margin-left: 1em; } |
|
11 | ul.toc li.heading2 { margin-left: 1em; } | |
12 | ul.toc li.heading3 { margin-left: 2em; } |
|
12 | ul.toc li.heading3 { margin-left: 2em; } | |
13 | </style> |
|
13 | </style> | |
14 | </head> |
|
14 | </head> | |
15 | <body> |
|
15 | <body> | |
16 | <%= textilizable @content, :text, :wiki_links => :local %> |
|
16 | <%= textilizable @content, :text, :wiki_links => :local %> | |
17 | </body> |
|
17 | </body> | |
18 | </html> |
|
18 | </html> |
@@ -1,27 +1,27 | |||||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
3 | <head> |
|
3 | <head> | |
4 | <title><%=h @wiki.project.name %></title> |
|
4 | <title><%=h @wiki.project.name %></title> | |
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
|
5 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
6 | <style> |
|
6 | <style> | |
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } |
|
7 | body { font:80% Verdana,Tahoma,Arial,sans-serif; } | |
8 | h1, h2, h3, h4 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; } |
|
8 | h1, h2, h3, h4 { font-family: "Trebuchet MS",Georgia,"Times New Roman",serif; } | |
9 | </style> |
|
9 | </style> | |
10 | </head> |
|
10 | </head> | |
11 | <body> |
|
11 | <body> | |
12 |
|
12 | |||
13 | <strong><%= l(:label_index_by_title) %></strong> |
|
13 | <strong><%= l(:label_index_by_title) %></strong> | |
14 | <ul> |
|
14 | <ul> | |
15 | <% @pages.each do |page| %> |
|
15 | <% @pages.each do |page| %> | |
16 | <li><a href="#<%= page.title %>"><%= page.pretty_title %></a></li> |
|
16 | <li><a href="#<%= page.title %>"><%= page.pretty_title %></a></li> | |
17 | <% end %> |
|
17 | <% end %> | |
18 | </ul> |
|
18 | </ul> | |
19 |
|
19 | |||
20 | <% @pages.each do |page| %> |
|
20 | <% @pages.each do |page| %> | |
21 | <hr /> |
|
21 | <hr /> | |
22 | <a name="<%= page.title %>" /> |
|
22 | <a name="<%= page.title %>" /> | |
23 | <%= textilizable page.content ,:text, :wiki_links => :anchor %> |
|
23 | <%= textilizable page.content ,:text, :wiki_links => :anchor %> | |
24 | <% end %> |
|
24 | <% end %> | |
25 |
|
25 | |||
26 | </body> |
|
26 | </body> | |
27 | </html> |
|
27 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now