##// END OF EJS Templates
Removed unneeded #h calls in views....
Jean-Philippe Lang -
r13661:b778c51e9049
parent child
Show More
@@ -9,7 +9,7
9 <dt class="<%= e.event_type %> <%= "grouped" if in_group %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
9 <dt class="<%= e.event_type %> <%= "grouped" if in_group %> <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
10 <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
10 <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
11 <span class="time"><%= format_time(e.event_datetime, false) %></span>
11 <span class="time"><%= format_time(e.event_datetime, false) %></span>
12 <%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %>
12 <%= content_tag('span', e.project, :class => 'project') if @project.nil? || @project != e.project %>
13 <%= link_to format_activity_title(e.event_title), e.event_url %>
13 <%= link_to format_activity_title(e.event_title), e.event_url %>
14 </dt>
14 </dt>
15 <dd class="<%= "grouped" if in_group %>"><span class="description"><%= format_activity_description(e.event_description) %></span>
15 <dd class="<%= "grouped" if in_group %>"><span class="description"><%= format_activity_description(e.event_description) %></span>
@@ -4,11 +4,11
4 <table class="list plugins">
4 <table class="list plugins">
5 <% @plugins.each do |plugin| %>
5 <% @plugins.each do |plugin| %>
6 <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>">
6 <tr id="plugin-<%= plugin.id %>" class="<%= cycle('odd', 'even') %>">
7 <td class="name"><span class="name"><%=h plugin.name %></span>
7 <td class="name"><span class="name"><%= plugin.name %></span>
8 <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %>
8 <%= content_tag('span', plugin.description, :class => 'description') unless plugin.description.blank? %>
9 <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %>
9 <%= content_tag('span', link_to(plugin.url, plugin.url), :class => 'url') unless plugin.url.blank? %>
10 </td>
10 </td>
11 <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td>
11 <td class="author"><%= plugin.author_url.blank? ? plugin.author : link_to(plugin.author, plugin.author_url) %></td>
12 <td class="version"><span class="icon"><%= plugin.version %></span></td>
12 <td class="version"><span class="icon"><%= plugin.version %></span></td>
13 <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td>
13 <td class="configure"><%= link_to(l(:button_configure), plugin_settings_path(plugin)) if plugin.configurable? %></td>
14 </tr>
14 </tr>
@@ -11,7 +11,7
11 :controller => 'attachments', :action => 'show',
11 :controller => 'attachments', :action => 'show',
12 :id => attachment, :filename => attachment.filename %>
12 :id => attachment, :filename => attachment.filename %>
13 <% end %>
13 <% end %>
14 <%= h(" - #{attachment.description}") unless attachment.description.blank? %>
14 <%= " - #{attachment.description}" unless attachment.description.blank? %>
15 <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
15 <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
16 <% if options[:deletable] %>
16 <% if options[:deletable] %>
17 <%= link_to image_tag('delete.png'), attachment_path(attachment),
17 <%= link_to image_tag('delete.png'), attachment_path(attachment),
@@ -21,7 +21,7
21 :title => l(:button_delete) %>
21 :title => l(:button_delete) %>
22 <% end %>
22 <% end %>
23 <% if options[:author] %>
23 <% if options[:author] %>
24 <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
24 <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
25 <% end %>
25 <% end %>
26 </p>
26 </p>
27 <% end %>
27 <% end %>
@@ -1,7 +1,7
1 <h2><%=h @attachment.filename %></h2>
1 <h2><%=h @attachment.filename %></h2>
2
2
3 <div class="attachments">
3 <div class="attachments">
4 <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
4 <p><%= "#{@attachment.description} - " unless @attachment.description.blank? %>
5 <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
5 <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
@@ -11,7 +11,7
11 <td colspan="2">
11 <td colspan="2">
12 <span class="icon icon-attachment"><%= attachment.filename_was %></span>
12 <span class="icon icon-attachment"><%= attachment.filename_was %></span>
13 <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
13 <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
14 <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
14 <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
15 </td>
15 </td>
16 </tr>
16 </tr>
17 <tr id="attachment-<%= attachment.id %>">
17 <tr id="attachment-<%= attachment.id %>">
@@ -1,7 +1,7
1 <h2><%=h @attachment.filename %></h2>
1 <h2><%=h @attachment.filename %></h2>
2
2
3 <div class="attachments">
3 <div class="attachments">
4 <p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
4 <p><%= "#{@attachment.description} - " unless @attachment.description.blank? %>
5 <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
5 <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
6 <p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
7 <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
@@ -15,10 +15,10
15 <tbody>
15 <tbody>
16 <% for source in @auth_sources %>
16 <% for source in @auth_sources %>
17 <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
17 <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
18 <td class="name"><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
18 <td class="name"><%= link_to(source.name, :action => 'edit', :id => source)%></td>
19 <td><%= h source.auth_method_name %></td>
19 <td><%= source.auth_method_name %></td>
20 <td><%= h source.host %></td>
20 <td><%= source.host %></td>
21 <td><%= h source.users.count %></td>
21 <td><%= source.users.count %></td>
22 <td class="buttons">
22 <td class="buttons">
23 <%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %>
23 <%= link_to l(:button_test), try_connection_auth_source_path(source), :class => 'icon icon-test' %>
24 <%= delete_link auth_source_path(source) %>
24 <%= delete_link auth_source_path(source) %>
@@ -11,7 +11,7
11 <% Board.board_tree(@boards) do |board, level| %>
11 <% Board.board_tree(@boards) do |board, level| %>
12 <tr class="<%= cycle 'odd', 'even' %>">
12 <tr class="<%= cycle 'odd', 'even' %>">
13 <td class="name" style="padding-left: <%= level * 18 %>px;">
13 <td class="name" style="padding-left: <%= level * 18 %>px;">
14 <%= link_to h(board.name), project_board_path(board.project, board), :class => "board" %><br />
14 <%= link_to board.name, project_board_path(board.project, board), :class => "board" %><br />
15 <%=h board.description %>
15 <%=h board.description %>
16 </td>
16 </td>
17 <td class="topic-count"><%= board.topics_count %></td>
17 <td class="topic-count"><%= board.topics_count %></td>
@@ -10,7 +10,7
10
10
11 <div id="add-message" style="display:none;">
11 <div id="add-message" style="display:none;">
12 <% if User.current.allowed_to?(:add_messages, @board.project) %>
12 <% if User.current.allowed_to?(:add_messages, @board.project) %>
13 <h2><%= link_to h(@board.name), project_board_path(@project, @board) %> &#187; <%= l(:label_message_new) %></h2>
13 <h2><%= link_to @board.name, project_board_path(@project, @board) %> &#187; <%= l(:label_message_new) %></h2>
14 <%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
14 <%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
15 <%= render :partial => 'messages/form', :locals => {:f => f} %>
15 <%= render :partial => 'messages/form', :locals => {:f => f} %>
16 <p><%= submit_tag l(:button_create) %>
16 <p><%= submit_tag l(:button_create) %>
@@ -21,8 +21,8
21 <% end %>
21 <% end %>
22 </div>
22 </div>
23
23
24 <h2><%=h @board.name %></h2>
24 <h2><%= @board.name %></h2>
25 <p class="subtitle"><%=h @board.description %></p>
25 <p class="subtitle"><%= @board.description %></p>
26
26
27 <% if @topics.any? %>
27 <% if @topics.any? %>
28 <table class="list messages">
28 <table class="list messages">
@@ -36,7 +36,7
36 <tbody>
36 <tbody>
37 <% @topics.each do |topic| %>
37 <% @topics.each do |topic| %>
38 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
38 <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
39 <td class="subject"><%= link_to h(topic.subject), board_message_path(@board, topic) %></td>
39 <td class="subject"><%= link_to topic.subject, board_message_path(@board, topic) %></td>
40 <td class="author"><%= link_to_user(topic.author) %></td>
40 <td class="author"><%= link_to_user(topic.author) %></td>
41 <td class="created_on"><%= format_time(topic.created_on) %></td>
41 <td class="created_on"><%= format_time(topic.created_on) %></td>
42 <td class="reply-count"><%= topic.replies_count %></td>
42 <td class="reply-count"><%= topic.replies_count %></td>
@@ -1,4 +1,4
1 <h2><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2>
1 <h2><%= @query.new_record? ? l(:label_calendar) : @query.name %></h2>
2
2
3 <%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project},
3 <%= form_tag({:controller => 'calendars', :action => 'show', :project_id => @project},
4 :method => :get, :id => 'query_form') do %>
4 :method => :get, :id => 'query_form') do %>
@@ -12,13 +12,13 while day <= calendar.enddt %>
12 <% calendar.events_on(day).each do |i| %>
12 <% calendar.events_on(day).each do |i| %>
13 <% if i.is_a? Issue %>
13 <% if i.is_a? Issue %>
14 <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
14 <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
15 <%= h("#{i.project} -") unless @project && @project == i.project %>
15 <%= "#{i.project} -" unless @project && @project == i.project %>
16 <%= link_to_issue i, :truncate => 30 %>
16 <%= link_to_issue i, :truncate => 30 %>
17 <span class="tip"><%= render_issue_tooltip i %></span>
17 <span class="tip"><%= render_issue_tooltip i %></span>
18 </div>
18 </div>
19 <% else %>
19 <% else %>
20 <span class="icon icon-package">
20 <span class="icon icon-package">
21 <%= h("#{i.project} -") unless @project && @project == i.project %>
21 <%= "#{i.project} -" unless @project && @project == i.project %>
22 <%= link_to_version i%>
22 <%= link_to_version i%>
23 </span>
23 </span>
24 <% end %>
24 <% end %>
@@ -1,7 +1,7
1 <h2><%=h @status %></h2>
1 <h2><%= @status %></h2>
2
2
3 <% if @message.present? %>
3 <% if @message.present? %>
4 <p id="errorExplanation"><%=h @message %></p>
4 <p id="errorExplanation"><%= @message %></p>
5 <% end %>
5 <% end %>
6 <p><a href="javascript:history.back()"><%= l(:button_back) %></a></p>
6 <p><a href="javascript:history.back()"><%= l(:button_back) %></a></p>
7
7
@@ -14,7 +14,7
14 <a href="#" class="submenu"><%= l(:field_status) %></a>
14 <a href="#" class="submenu"><%= l(:field_status) %></a>
15 <ul>
15 <ul>
16 <% @allowed_statuses.each do |s| -%>
16 <% @allowed_statuses.each do |s| -%>
17 <li><%= context_menu_link h(s.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {:status_id => s}, :back_url => @back), :method => :post,
17 <li><%= context_menu_link s.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {:status_id => s}, :back_url => @back), :method => :post,
18 :selected => (@issue && s == @issue.status), :disabled => !@can[:edit] %></li>
18 :selected => (@issue && s == @issue.status), :disabled => !@can[:edit] %></li>
19 <% end -%>
19 <% end -%>
20 </ul>
20 </ul>
@@ -26,7 +26,7
26 <a href="#" class="submenu"><%= l(:field_tracker) %></a>
26 <a href="#" class="submenu"><%= l(:field_tracker) %></a>
27 <ul>
27 <ul>
28 <% @trackers.each do |t| -%>
28 <% @trackers.each do |t| -%>
29 <li><%= context_menu_link h(t.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'tracker_id' => t}, :back_url => @back), :method => :post,
29 <li><%= context_menu_link t.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'tracker_id' => t}, :back_url => @back), :method => :post,
30 :selected => (@issue && t == @issue.tracker), :disabled => !@can[:edit] %></li>
30 :selected => (@issue && t == @issue.tracker), :disabled => !@can[:edit] %></li>
31 <% end -%>
31 <% end -%>
32 </ul>
32 </ul>
@@ -38,7 +38,7
38 <a href="#" class="submenu"><%= l(:field_priority) %></a>
38 <a href="#" class="submenu"><%= l(:field_priority) %></a>
39 <ul>
39 <ul>
40 <% @priorities.each do |p| -%>
40 <% @priorities.each do |p| -%>
41 <li><%= context_menu_link h(p.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back), :method => :post,
41 <li><%= context_menu_link p.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'priority_id' => p}, :back_url => @back), :method => :post,
42 :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
42 :selected => (@issue && p == @issue.priority), :disabled => (!@can[:edit] || @issues.detect {|i| !i.leaf?}) %></li>
43 <% end -%>
43 <% end -%>
44 </ul>
44 </ul>
@@ -68,7 +68,7
68 :disabled => !@can[:edit] %></li>
68 :disabled => !@can[:edit] %></li>
69 <% end %>
69 <% end %>
70 <% @assignables.each do |u| -%>
70 <% @assignables.each do |u| -%>
71 <li><%= context_menu_link h(u.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => u}, :back_url => @back), :method => :post,
71 <li><%= context_menu_link u.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => u}, :back_url => @back), :method => :post,
72 :selected => (@issue && u == @issue.assigned_to), :disabled => !@can[:edit] %></li>
72 :selected => (@issue && u == @issue.assigned_to), :disabled => !@can[:edit] %></li>
73 <% end -%>
73 <% end -%>
74 <li><%= context_menu_link l(:label_nobody), bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => 'none'}, :back_url => @back), :method => :post,
74 <li><%= context_menu_link l(:label_nobody), bulk_update_issues_path(:ids => @issue_ids, :issue => {'assigned_to_id' => 'none'}, :back_url => @back), :method => :post,
@@ -82,7 +82,7
82 <a href="#" class="submenu"><%= l(:field_category) %></a>
82 <a href="#" class="submenu"><%= l(:field_category) %></a>
83 <ul>
83 <ul>
84 <% @project.issue_categories.each do |u| -%>
84 <% @project.issue_categories.each do |u| -%>
85 <li><%= context_menu_link h(u.name), bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => u}, :back_url => @back), :method => :post,
85 <li><%= context_menu_link u.name, bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => u}, :back_url => @back), :method => :post,
86 :selected => (@issue && u == @issue.category), :disabled => !@can[:edit] %></li>
86 :selected => (@issue && u == @issue.category), :disabled => !@can[:edit] %></li>
87 <% end -%>
87 <% end -%>
88 <li><%= context_menu_link l(:label_none), bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => 'none'}, :back_url => @back), :method => :post,
88 <li><%= context_menu_link l(:label_none), bulk_update_issues_path(:ids => @issue_ids, :issue => {'category_id' => 'none'}, :back_url => @back), :method => :post,
@@ -105,7 +105,7
105
105
106 <% @options_by_custom_field.each do |field, options| %>
106 <% @options_by_custom_field.each do |field, options| %>
107 <li class="folder cf_<%= field.id %>">
107 <li class="folder cf_<%= field.id %>">
108 <a href="#" class="submenu"><%= h(field.name) %></a>
108 <a href="#" class="submenu"><%= field.name %></a>
109 <ul>
109 <ul>
110 <% options.each do |text, value| %>
110 <% options.each do |text, value| %>
111 <li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
111 <li><%= bulk_update_custom_field_context_menu_link(field, text, value || text) %></li>
@@ -14,7 +14,7
14 <a href="#" class="submenu"><%= l(:field_activity) %></a>
14 <a href="#" class="submenu"><%= l(:field_activity) %></a>
15 <ul>
15 <ul>
16 <% @activities.each do |u| -%>
16 <% @activities.each do |u| -%>
17 <li><%= context_menu_link h(u.name), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => u}, :back_url => @back}, :method => :post,
17 <li><%= context_menu_link u.name, {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => u}, :back_url => @back}, :method => :post,
18 :selected => (@time_entry && u == @time_entry.activity), :disabled => !@can[:edit] %></li>
18 :selected => (@time_entry && u == @time_entry.activity), :disabled => !@can[:edit] %></li>
19 <% end -%>
19 <% end -%>
20 <li><%= context_menu_link l(:label_none), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => 'none'}, :back_url => @back}, :method => :post,
20 <li><%= context_menu_link l(:label_none), {:controller => 'timelog', :action => 'bulk_update', :ids => @time_entries.collect(&:id), :time_entry => {'activity_id' => 'none'}, :back_url => @back}, :method => :post,
@@ -25,7 +25,7
25
25
26 <% @options_by_custom_field.each do |field, options| %>
26 <% @options_by_custom_field.each do |field, options| %>
27 <li class="folder cf_<%= field.id %>">
27 <li class="folder cf_<%= field.id %>">
28 <a href="#" class="submenu"><%= h(field.name) %></a>
28 <a href="#" class="submenu"><%= field.name %></a>
29 <ul>
29 <ul>
30 <% options.each do |text, value| %>
30 <% options.each do |text, value| %>
31 <li><%= bulk_update_time_entry_custom_field_context_menu_link(field, text, value || text) %></li>
31 <li><%= bulk_update_time_entry_custom_field_context_menu_link(field, text, value || text) %></li>
@@ -94,7 +94,7 when "IssueCustomField" %>
94 (@custom_field.trackers.include? tracker),
94 (@custom_field.trackers.include? tracker),
95 :id => "custom_field_tracker_ids_#{tracker.id}" %>
95 :id => "custom_field_tracker_ids_#{tracker.id}" %>
96 <label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>">
96 <label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>">
97 <%= h(tracker.name) %>
97 <%= tracker.name %>
98 </label>
98 </label>
99 <% end %>
99 <% end %>
100 <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
100 <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
@@ -103,7 +103,7 when "IssueCustomField" %>
103
103
104 <fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend>
104 <fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend>
105 <%= render_project_nested_lists(Project.all) do |p|
105 <%= render_project_nested_lists(Project.all) do |p|
106 content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + h(p))
106 content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + p)
107 end %>
107 end %>
108 <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
108 <%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
109 <p><%= check_all_links 'custom_field_project_ids' %></p>
109 <p><%= check_all_links 'custom_field_project_ids' %></p>
@@ -13,7 +13,7
13 <tbody>
13 <tbody>
14 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
14 <% (@custom_fields_by_type[tab[:name]] || []).sort.each do |custom_field| -%>
15 <tr class="<%= cycle("odd", "even") %>">
15 <tr class="<%= cycle("odd", "even") %>">
16 <td class="name"><%= link_to h(custom_field.name), edit_custom_field_path(custom_field) %></td>
16 <td class="name"><%= link_to custom_field.name, edit_custom_field_path(custom_field) %></td>
17 <td><%= l(custom_field.format.label) %></td>
17 <td><%= l(custom_field.format.label) %></td>
18 <td><%= checked_image custom_field.is_required? %></td>
18 <td><%= checked_image custom_field.is_required? %></td>
19 <% if tab[:name] == 'IssueCustomField' %>
19 <% if tab[:name] == 'IssueCustomField' %>
@@ -1,4 +1,4
1 <h4><%= link_to h(document.title), document_path(document) %></h4>
1 <h4><%= link_to document.title, document_path(document) %></h4>
2 <p><em><%= format_time(document.updated_on) %></em></p>
2 <p><em><%= format_time(document.updated_on) %></em></p>
3
3
4 <div class="wiki">
4 <div class="wiki">
@@ -7,9 +7,9
7 <% end %>
7 <% end %>
8 </div>
8 </div>
9
9
10 <h2><%=h @document.title %></h2>
10 <h2><%= @document.title %></h2>
11
11
12 <p><em><%=h @document.category.name %><br />
12 <p><em><%= @document.category.name %><br />
13 <%= format_date @document.created_on %></em></p>
13 <%= format_date @document.created_on %></em></p>
14
14
15 <% if @document.custom_field_values.any? %>
15 <% if @document.custom_field_values.any? %>
@@ -15,7 +15,7
15 </tr></thead>
15 </tr></thead>
16 <% enumerations.each do |enumeration| %>
16 <% enumerations.each do |enumeration| %>
17 <tr class="<%= cycle('odd', 'even') %>">
17 <tr class="<%= cycle('odd', 'even') %>">
18 <td class="name"><%= link_to h(enumeration), edit_enumeration_path(enumeration) %></td>
18 <td class="name"><%= link_to enumeration, edit_enumeration_path(enumeration) %></td>
19 <td class="tick"><%= checked_image enumeration.is_default? %></td>
19 <td class="tick"><%= checked_image enumeration.is_default? %></td>
20 <td class="tick"><%= checked_image enumeration.active? %></td>
20 <td class="tick"><%= checked_image enumeration.active? %></td>
21 <td class="reorder"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td>
21 <td class="reorder"><%= reorder_links('enumeration', {:action => 'update', :id => enumeration}, :put) %></td>
@@ -21,7 +21,7
21 <% if container.is_a?(Version) -%>
21 <% if container.is_a?(Version) -%>
22 <tr>
22 <tr>
23 <th colspan="6">
23 <th colspan="6">
24 <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
24 <%= link_to(container, {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
25 </th>
25 </th>
26 </tr>
26 </tr>
27 <% end -%>
27 <% end -%>
@@ -6,7 +6,7
6 <% end %>
6 <% end %>
7 </div>
7 </div>
8
8
9 <h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2>
9 <h2><%= @query.new_record? ? l(:label_gantt) : @query.name %></h2>
10
10
11 <%= form_tag({:controller => 'gantts', :action => 'show',
11 <%= form_tag({:controller => 'gantts', :action => 'show',
12 :project_id => @project, :month => params[:month],
12 :project_id => @project, :month => params[:month],
@@ -172,7 +172,7
172 style += "height: #{height}px;"
172 style += "height: #{height}px;"
173 %>
173 %>
174 <%= content_tag(:div, :style => style, :class => "gantt_hdr") do %>
174 <%= content_tag(:div, :style => style, :class => "gantt_hdr") do %>
175 <%= link_to h("#{month_f.year}-#{month_f.month}"),
175 <%= link_to "#{month_f.year}-#{month_f.month}",
176 @gantt.params.merge(:year => month_f.year, :month => month_f.month),
176 @gantt.params.merge(:year => month_f.year, :month => month_f.month),
177 :title => "#{month_name(month_f.month)} #{month_f.year}" %>
177 :title => "#{month_name(month_f.month)} #{month_f.year}" %>
178 <% end %>
178 <% end %>
@@ -13,7 +13,7
13 <tbody>
13 <tbody>
14 <% @groups.each do |group| %>
14 <% @groups.each do |group| %>
15 <tr id="group-<%= group.id %>" class="<%= cycle 'odd', 'even' %> <%= "builtin" if group.builtin? %>">
15 <tr id="group-<%= group.id %>" class="<%= cycle 'odd', 'even' %> <%= "builtin" if group.builtin? %>">
16 <td class="name"><%= link_to h(group), edit_group_path(group) %></td>
16 <td class="name"><%= link_to group, edit_group_path(group) %></td>
17 <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td>
17 <td class="user_count"><%= (@user_count_by_group_id[group.id] || 0) unless group.builtin? %></td>
18 <td class="buttons"><%= delete_link group unless group.builtin? %></td>
18 <td class="buttons"><%= delete_link group unless group.builtin? %></td>
19 </tr>
19 </tr>
@@ -2,6 +2,6
2
2
3 <ul>
3 <ul>
4 <% @group.users.each do |user| %>
4 <% @group.users.each do |user| %>
5 <li><%=h user %></li>
5 <li><%= user %></li>
6 <% end %>
6 <% end %>
7 </ul>
7 </ul>
@@ -18,9 +18,9
18 <tbody>
18 <tbody>
19 <% for status in @issue_statuses %>
19 <% for status in @issue_statuses %>
20 <tr class="<%= cycle("odd", "even") %>">
20 <tr class="<%= cycle("odd", "even") %>">
21 <td class="name"><%= link_to h(status.name), edit_issue_status_path(status) %></td>
21 <td class="name"><%= link_to status.name, edit_issue_status_path(status) %></td>
22 <% if Issue.use_status_for_done_ratio? %>
22 <% if Issue.use_status_for_done_ratio? %>
23 <td><%= h status.default_done_ratio %></td>
23 <td><%= status.default_done_ratio %></td>
24 <% end %>
24 <% end %>
25 <td><%= checked_image status.is_closed? %></td>
25 <td><%= checked_image status.is_closed? %></td>
26 <td class="reorder"><%= reorder_links('issue_status', {:action => 'update', :id => status, :page => params[:page]}, :put) %></td>
26 <td class="reorder"><%= reorder_links('issue_status', {:action => 'update', :id => status, :page => params[:page]}, :put) %></td>
@@ -16,7 +16,7
16 <td class="subject" style="width: 50%">
16 <td class="subject" style="width: 50%">
17 <%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>
17 <%= relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe %>
18 </td>
18 </td>
19 <td class="status"><%=h other_issue.status.name %></td>
19 <td class="status"><%= other_issue.status.name %></td>
20 <td class="start_date"><%= format_date(other_issue.start_date) %></td>
20 <td class="start_date"><%= format_date(other_issue.start_date) %></td>
21 <td class="due_date"><%= format_date(other_issue.due_date) %></td>
21 <td class="due_date"><%= format_date(other_issue.due_date) %></td>
22 <td class="buttons"><%= link_to image_tag('link_break.png'),
22 <td class="buttons"><%= link_to image_tag('link_break.png'),
@@ -93,7 +93,7
93
93
94 <% @custom_fields.each do |custom_field| %>
94 <% @custom_fields.each do |custom_field| %>
95 <p>
95 <p>
96 <label><%= h(custom_field.name) %></label>
96 <label><%= custom_field.name %></label>
97 <%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
97 <%= custom_field_tag_for_bulk_edit('issue', custom_field, @issues, @issue_params[:custom_field_values][custom_field.id.to_s]) %>
98 </p>
98 </p>
99 <% end %>
99 <% end %>
@@ -1,4 +1,4
1 <h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
1 <h2><%= "#{@issue.tracker.name} ##{@issue.id}" %></h2>
2
2
3 <%= render :partial => 'edit' %>
3 <%= render :partial => 'edit' %>
4 <% content_for :header_tags do %>
4 <% content_for :header_tags do %>
@@ -5,7 +5,7
5 <% end %>
5 <% end %>
6 </div>
6 </div>
7
7
8 <h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2>
8 <h2><%= @query.new_record? ? l(:label_issue_plural) : @query.name %></h2>
9 <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
9 <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
10
10
11 <%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
11 <%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project },
@@ -35,14 +35,14
35
35
36 <table class="attributes">
36 <table class="attributes">
37 <%= issue_fields_rows do |rows|
37 <%= issue_fields_rows do |rows|
38 rows.left l(:field_status), h(@issue.status.name), :class => 'status'
38 rows.left l(:field_status), @issue.status.name, :class => 'status'
39 rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
39 rows.left l(:field_priority), @issue.priority.name, :class => 'priority'
40
40
41 unless @issue.disabled_core_fields.include?('assigned_to_id')
41 unless @issue.disabled_core_fields.include?('assigned_to_id')
42 rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
42 rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
43 end
43 end
44 unless @issue.disabled_core_fields.include?('category_id')
44 unless @issue.disabled_core_fields.include?('category_id')
45 rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
45 rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category'
46 end
46 end
47 unless @issue.disabled_core_fields.include?('fixed_version_id')
47 unless @issue.disabled_core_fields.include?('fixed_version_id')
48 rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
48 rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
@@ -2,7 +2,7
2 <html lang="<%= current_language %>">
2 <html lang="<%= current_language %>">
3 <head>
3 <head>
4 <meta charset="utf-8" />
4 <meta charset="utf-8" />
5 <title><%=h html_title %></title>
5 <title><%= html_title %></title>
6 <meta name="description" content="<%= Redmine::Info.app_name %>" />
6 <meta name="description" content="<%= Redmine::Info.app_name %>" />
7 <meta name="keywords" content="issue,bug,tracker" />
7 <meta name="keywords" content="issue,bug,tracker" />
8 <%= csrf_meta_tag %>
8 <%= csrf_meta_tag %>
@@ -15,7 +15,7
15 <!-- page specific tags -->
15 <!-- page specific tags -->
16 <%= yield :header_tags -%>
16 <%= yield :header_tags -%>
17 </head>
17 </head>
18 <body class="<%=h body_css_classes %>">
18 <body class="<%= body_css_classes %>">
19 <div id="wrapper">
19 <div id="wrapper">
20 <div id="wrapper2">
20 <div id="wrapper2">
21 <div id="wrapper3">
21 <div id="wrapper3">
@@ -1,4 +1,4
1 <h1><%= link_to(h("#{issue.tracker.name} ##{issue.id}: #{issue.subject}"), issue_url) %></h1>
1 <h1><%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url) %></h1>
2
2
3 <%= render_email_issue_attributes(issue, users.first, true) %>
3 <%= render_email_issue_attributes(issue, users.first, true) %>
4
4
@@ -1,2 +1,2
1 <p><%= l(:notice_account_activated) %></p>
1 <p><%= l(:notice_account_activated) %></p>
2 <p><%= l(:label_login) %>: <%= link_to h(@login_url), @login_url %></p>
2 <p><%= l(:label_login) %>: <%= link_to @login_url, @login_url %></p>
@@ -1,2 +1,2
1 <p><%= l(:mail_body_account_activation_request, h(@user.login)) %></p>
1 <p><%= l(:mail_body_account_activation_request, h(@user.login)) %></p>
2 <p><%= link_to h(@url), @url %></p>
2 <p><%= link_to @url, @url %></p>
@@ -3,9 +3,9
3 <% else %>
3 <% else %>
4 <p><%= l(:mail_body_account_information) %>:</p>
4 <p><%= l(:mail_body_account_information) %>:</p>
5 <ul>
5 <ul>
6 <li><%= l(:field_login) %>: <%=h @user.login %></li>
6 <li><%= l(:field_login) %>: <%= @user.login %></li>
7 <li><%= l(:field_password) %>: <%=h @password %></li>
7 <li><%= l(:field_password) %>: <%= @password %></li>
8 </ul>
8 </ul>
9 <% end %>
9 <% end %>
10
10
11 <p><%= l(:label_login) %>: <%= link_to h(@login_url), @login_url %></p>
11 <p><%= l(:label_login) %>: <%= link_to @login_url, @login_url %></p>
@@ -1,5 +1,5
1 <%= link_to h(@added_to), @added_to_url %><br />
1 <%= link_to @added_to, @added_to_url %><br />
2
2
3 <ul><% @attachments.each do |attachment | %>
3 <ul><% @attachments.each do |attachment | %>
4 <li><%=h attachment.filename %></li>
4 <li><%= attachment.filename %></li>
5 <% end %></ul>
5 <% end %></ul>
@@ -1,3 +1,3
1 <%= link_to(h(@document.title), @document_url) %> (<%=h @document.category.name %>)<br />
1 <%= link_to(@document.title, @document_url) %> (<%= @document.category.name %>)<br />
2 <br />
2 <br />
3 <%= textilizable(@document, :description, :only_path => false) %>
3 <%= textilizable(@document, :description, :only_path => false) %>
@@ -1,4 +1,4
1 <p><%= l(:mail_body_lost_password) %><br />
1 <p><%= l(:mail_body_lost_password) %><br />
2 <%= link_to h(@url), @url %></p>
2 <%= link_to @url, @url %></p>
3
3
4 <p><%= l(:field_login) %>: <b><%=h @token.user.login %></b></p>
4 <p><%= l(:field_login) %>: <b><%= @token.user.login %></b></p>
@@ -1,4 +1,4
1 <h1><%=h @message.board.project.name %> - <%=h @message.board.name %>: <%= link_to(h(@message.subject), @message_url) %></h1>
1 <h1><%= @message.board.project.name %> - <%= @message.board.name %>: <%= link_to(@message.subject, @message_url) %></h1>
2 <em><%=h @message.author %></em>
2 <em><%= @message.author %></em>
3
3
4 <%= textilizable(@message, :content, :only_path => false) %>
4 <%= textilizable(@message, :content, :only_path => false) %>
@@ -1,4 +1,4
1 <h1><%= link_to(h(@news.title), @news_url) %></h1>
1 <h1><%= link_to(@news.title, @news_url) %></h1>
2 <em><%=h @news.author.name %></em>
2 <em><%= @news.author.name %></em>
3
3
4 <%= textilizable(@news, :description, :only_path => false) %>
4 <%= textilizable(@news, :description, :only_path => false) %>
@@ -1,4 +1,4
1 <h1><%= link_to(h(@news.title), @news_url) %></h1>
1 <h1><%= link_to(@news.title, @news_url) %></h1>
2
2
3 <p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
3 <p><%= l(:text_user_wrote, :value => h(@comment.author)) %></p>
4
4
@@ -1,2 +1,2
1 <p><%= l(:mail_body_register) %><br />
1 <p><%= l(:mail_body_register) %><br />
2 <%= link_to h(@url), @url %></p>
2 <%= link_to @url, @url %></p>
@@ -1,2 +1,2
1 <p>This is a test email sent by Redmine.<br />
1 <p>This is a test email sent by Redmine.<br />
2 Redmine URL: <%= link_to h(@url), @url %></p>
2 Redmine URL: <%= link_to @url, @url %></p>
@@ -1,3 +1,3
1 <p><%= l(:mail_body_wiki_content_added, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
1 <p><%= l(:mail_body_wiki_content_added, :id => link_to(@wiki_content.page.pretty_title, @wiki_content_url),
2 :author => h(@wiki_content.author)).html_safe %><br />
2 :author => h(@wiki_content.author)).html_safe %><br />
3 <em><%=h @wiki_content.comments %></em></p>
3 <em><%= @wiki_content.comments %></em></p>
@@ -1,6 +1,6
1 <p><%= l(:mail_body_wiki_content_updated, :id => link_to(h(@wiki_content.page.pretty_title), @wiki_content_url),
1 <p><%= l(:mail_body_wiki_content_updated, :id => link_to(@wiki_content.page.pretty_title, @wiki_content_url),
2 :author => h(@wiki_content.author)).html_safe %><br />
2 :author => h(@wiki_content.author)).html_safe %><br />
3 <em><%=h @wiki_content.comments %></em></p>
3 <em><%= @wiki_content.comments %></em></p>
4
4
5 <p><%= l(:label_view_diff) %>:<br />
5 <p><%= l(:label_view_diff) %>:<br />
6 <%= link_to h(@wiki_diff_url), @wiki_diff_url %></p>
6 <%= link_to @wiki_diff_url, @wiki_diff_url %></p>
@@ -1,6 +1,6
1 <%= board_breadcrumb(@message) %>
1 <%= board_breadcrumb(@message) %>
2
2
3 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
3 <h2><%= avatar(@topic.author, :size => "24") %><%= @topic.subject %></h2>
4
4
5 <%= form_for @message, {
5 <%= form_for @message, {
6 :as => :message,
6 :as => :message,
@@ -1,4 +1,4
1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
1 <h2><%= link_to @board.name, :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
2
2
3 <%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
3 <%= form_for @message, :url => {:action => 'new'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
4 <%= render :partial => 'form', :locals => {:f => f} %>
4 <%= render :partial => 'form', :locals => {:f => f} %>
@@ -22,7 +22,7
22 ) if @message.destroyable_by?(User.current) %>
22 ) if @message.destroyable_by?(User.current) %>
23 </div>
23 </div>
24
24
25 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
25 <h2><%= avatar(@topic.author, :size => "24") %><%= @topic.subject %></h2>
26
26
27 <div class="message">
27 <div class="message">
28 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
28 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
@@ -59,7 +59,7
59 </div>
59 </div>
60 <h4>
60 <h4>
61 <%= avatar(message.author, :size => "24") %>
61 <%= avatar(message.author, :size => "24") %>
62 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
62 <%= link_to message.subject, { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
63 -
63 -
64 <%= authoring message.created_on, message.author %>
64 <%= authoring message.created_on, message.author %>
65 </h4>
65 </h4>
@@ -22,7 +22,7
22 <h4><%= l(:label_api_access_key) %></h4>
22 <h4><%= l(:label_api_access_key) %></h4>
23 <div>
23 <div>
24 <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
24 <%= link_to_function(l(:button_show), "$('#api-access-key').toggle();")%>
25 <pre id='api-access-key' class='autoscroll'><%= h(@user.api_key) %></pre>
25 <pre id='api-access-key' class='autoscroll'><%= @user.api_key %></pre>
26 </div>
26 </div>
27 <%= javascript_tag("$('#api-access-key').hide();") %>
27 <%= javascript_tag("$('#api-access-key').hide();") %>
28 <p>
28 <p>
@@ -36,9 +36,9 entries_by_day = entries.group_by(&:spent_on)
36 </tr>
36 </tr>
37 <% entries_by_day[day].each do |entry| -%>
37 <% entries_by_day[day].each do |entry| -%>
38 <tr class="time-entry" style="border-bottom: 1px solid #f5f5f5;">
38 <tr class="time-entry" style="border-bottom: 1px solid #f5f5f5;">
39 <td class="activity"><%=h entry.activity %></td>
39 <td class="activity"><%= entry.activity %></td>
40 <td class="subject"><%=h entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %></td>
40 <td class="subject"><%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %></td>
41 <td class="comments"><%=h entry.comments %></td>
41 <td class="comments"><%= entry.comments %></td>
42 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
42 <td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
43 <td class="buttons">
43 <td class="buttons">
44 <% if entry.editable_by?(@user) -%>
44 <% if entry.editable_by?(@user) -%>
@@ -1,6 +1,6
1 <p><%= link_to_project(news.project) + ': ' unless @project %>
1 <p><%= link_to_project(news.project) + ': ' unless @project %>
2 <%= link_to h(news.title), news_path(news) %>
2 <%= link_to news.title, news_path(news) %>
3 <% if news.comments_count > 0 %><span class="comments">(<%= l(:label_x_comments, :count => news.comments_count) %>)</span><% end %>
3 <% if news.comments_count > 0 %><span class="comments">(<%= l(:label_x_comments, :count => news.comments_count) %>)</span><% end %>
4 <br />
4 <br />
5 <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %>
5 <% unless news.summary.blank? %><span class="summary"><%= news.summary %></span><br /><% end %>
6 <span class="author"><%= authoring news.created_on, news.author %></span></p>
6 <span class="author"><%= authoring news.created_on, news.author %></span></p>
@@ -25,7 +25,7
25 <% else %>
25 <% else %>
26 <% @newss.each do |news| %>
26 <% @newss.each do |news| %>
27 <h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
27 <h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
28 <%= link_to h(news.title), news_path(news) %>
28 <%= link_to news.title, news_path(news) %>
29 <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
29 <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
30 <p class="author"><%= authoring news.created_on, news.author %></p>
30 <p class="author"><%= authoring news.created_on, news.author %></p>
31 <div class="wiki">
31 <div class="wiki">
@@ -23,7 +23,7
23 </div>
23 </div>
24 <% end %>
24 <% end %>
25
25
26 <p><% unless @news.summary.blank? %><em><%=h @news.summary %></em><br /><% end %>
26 <p><% unless @news.summary.blank? %><em><%= @news.summary %></em><br /><% end %>
27 <span class="author"><%= authoring @news.created_on, @news.author %></span></p>
27 <span class="author"><%= authoring @news.created_on, @news.author %></span></p>
28 <div class="wiki">
28 <div class="wiki">
29 <%= textilizable(@news, :description) %>
29 <%= textilizable(@news, :description) %>
@@ -46,7 +46,7
46 <% @trackers.each do |tracker| %>
46 <% @trackers.each do |tracker| %>
47 <label class="floating">
47 <label class="floating">
48 <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.to_a.include?(tracker), :id => nil %>
48 <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.to_a.include?(tracker), :id => nil %>
49 <%=h tracker %>
49 <%= tracker %>
50 </label>
50 </label>
51 <% end %>
51 <% end %>
52 <%= hidden_field_tag 'project[tracker_ids][]', '' %>
52 <%= hidden_field_tag 'project[tracker_ids][]', '' %>
@@ -60,7 +60,7
60 <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
60 <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
61 :disabled => (custom_field.is_for_all? ? "disabled" : nil),
61 :disabled => (custom_field.is_for_all? ? "disabled" : nil),
62 :id => nil %>
62 :id => nil %>
63 <%=h custom_field.name %>
63 <%= custom_field.name %>
64 </label>
64 </label>
65 <% end %>
65 <% end %>
66 <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
66 <%= hidden_field_tag 'project[issue_custom_field_ids][]', '' %>
@@ -2,7 +2,7
2 <div class="members box">
2 <div class="members box">
3 <h3><%=l(:label_member_plural)%></h3>
3 <h3><%=l(:label_member_plural)%></h3>
4 <% @users_by_role.keys.sort.each do |role| %>
4 <% @users_by_role.keys.sort.each do |role| %>
5 <p><span class="label"><%=h role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
5 <p><span class="label"><%= role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
6 <% end %>
6 <% end %>
7 </div>
7 </div>
8 <% end %>
8 <% end %>
@@ -6,7 +6,7
6
6
7 <% if @project_to_destroy.descendants.any? %>
7 <% if @project_to_destroy.descendants.any? %>
8 <br /><%= l(:text_subprojects_destroy_warning,
8 <br /><%= l(:text_subprojects_destroy_warning,
9 content_tag('strong', h(@project_to_destroy.descendants.collect{|p| p.to_s}.join(', ')))).html_safe %>
9 content_tag('strong', @project_to_destroy.descendants.collect{|p| p.to_s}.join(', '))).html_safe %>
10 <% end %>
10 <% end %>
11 </p>
11 </p>
12 <p>
12 <p>
@@ -4,7 +4,7
4
4
5 <% members = @members.group_by {|m| m.role } %>
5 <% members = @members.group_by {|m| m.role } %>
6 <% members.keys.sort{|x,y| x.position <=> y.position}.each do |role| %>
6 <% members.keys.sort{|x,y| x.position <=> y.position}.each do |role| %>
7 <h3><%= h(role.name) %></h3>
7 <h3><%= role.name %></h3>
8 <ul>
8 <ul>
9 <% members[role].each do |m| %>
9 <% members[role].each do |m| %>
10 <li><%= link_to_user m.user %> (<%= format_date m.created_on %>)</li>
10 <li><%= link_to_user m.user %> (<%= format_date m.created_on %>)</li>
@@ -5,7 +5,7
5 <th><%= l(:field_name) %></th>
5 <th><%= l(:field_name) %></th>
6 <th><%= l(:enumeration_system_activity) %></th>
6 <th><%= l(:enumeration_system_activity) %></th>
7 <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
7 <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8 <th><%= h value.name %></th>
8 <th><%= value.name %></th>
9 <% end %>
9 <% end %>
10 <th><%= l(:field_active) %></th>
10 <th><%= l(:field_active) %></th>
11 </tr></thead>
11 </tr></thead>
@@ -15,7 +15,7
15 <tr class="<%= cycle('odd', 'even') %>">
15 <tr class="<%= cycle('odd', 'even') %>">
16 <td class="name">
16 <td class="name">
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 <%= enumeration %>
19 </td>
19 </td>
20 <td class="tick"><%= checked_image !enumeration.project %></td>
20 <td class="tick"><%= checked_image !enumeration.project %></td>
21 <% enumeration.custom_field_values.each do |value| %>
21 <% enumeration.custom_field_values.each do |value| %>
@@ -11,7 +11,7
11 next if board.new_record? %>
11 next if board.new_record? %>
12 <tr class="<%= cycle 'odd', 'even' %>">
12 <tr class="<%= cycle 'odd', 'even' %>">
13 <td class="name" style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
13 <td class="name" style="padding-left: <%= level * 18 %>px;"><%= link_to board.name, project_board_path(@project, board) %></td>
14 <td class="description"><%=h board.description %></td>
14 <td class="description"><%= board.description %></td>
15 <td class="reorder">
15 <td class="reorder">
16 <% if authorize_for("boards", "edit") %>
16 <% if authorize_for("boards", "edit") %>
17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
17 <%= reorder_links('board', {:controller => 'boards', :action => 'update', :project_id => @project, :id => board}, :put) %>
@@ -9,8 +9,8
9 <% for category in @project.issue_categories %>
9 <% for category in @project.issue_categories %>
10 <% unless category.new_record? %>
10 <% unless category.new_record? %>
11 <tr class="<%= cycle 'odd', 'even' %>">
11 <tr class="<%= cycle 'odd', 'even' %>">
12 <td class="name"><%=h(category.name) %></td>
12 <td class="name"><%= category.name %></td>
13 <td><%=h(category.assigned_to.name) if category.assigned_to %></td>
13 <td><%= category.assigned_to.name if category.assigned_to %></td>
14 <td class="buttons">
14 <td class="buttons">
15 <% if User.current.allowed_to?(:manage_categories, @project) %>
15 <% if User.current.allowed_to?(:manage_categories, @project) %>
16 <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
16 <%= link_to l(:button_edit), edit_issue_category_path(category), :class => 'icon icon-edit' %>
@@ -17,8 +17,8
17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
17 {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
18 </td>
18 </td>
19 <td><%= checked_image repository.is_default? %></td>
19 <td><%= checked_image repository.is_default? %></td>
20 <td><%=h repository.scm_name %></td>
20 <td><%= repository.scm_name %></td>
21 <td><%=h repository.url %></td>
21 <td><%= repository.url %></td>
22 <td class="buttons">
22 <td class="buttons">
23 <% if User.current.allowed_to?(:manage_repository, @project) %>
23 <% if User.current.allowed_to?(:manage_repository, @project) %>
24 <%= link_to(l(:label_user_plural), committers_repository_path(repository),
24 <%= link_to(l(:label_user_plural), committers_repository_path(repository),
@@ -14,10 +14,10
14 <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
14 <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
15 <td class="name"><%= link_to_version version %></td>
15 <td class="name"><%= link_to_version version %></td>
16 <td class="date"><%= format_date(version.effective_date) %></td>
16 <td class="date"><%= format_date(version.effective_date) %></td>
17 <td class="description"><%=h version.description %></td>
17 <td class="description"><%= version.description %></td>
18 <td class="status"><%= l("version_status_#{version.status}") %></td>
18 <td class="status"><%= l("version_status_#{version.status}") %></td>
19 <td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
19 <td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
20 <td><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
20 <td><%= link_to_if_authorized(version.wiki_page_title, {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
21 <td class="buttons">
21 <td class="buttons">
22 <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
22 <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
23 <%= link_to l(:button_edit), edit_version_path(version), :class => 'icon icon-edit' %>
23 <%= link_to l(:button_edit), edit_version_path(version), :class => 'icon icon-edit' %>
@@ -25,7 +25,7
25 <% end %>
25 <% end %>
26 <ul>
26 <ul>
27 <% unless @project.homepage.blank? %>
27 <% unless @project.homepage.blank? %>
28 <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to h(@project.homepage), @project.homepage %></li>
28 <li><span class="label"><%=l(:field_homepage)%>:</span> <%= link_to @project.homepage, @project.homepage %></li>
29 <% end %>
29 <% end %>
30 <% if @subprojects.any? %>
30 <% if @subprojects.any? %>
31 <li><span class="label"><%=l(:label_subproject_plural)%>:</span>
31 <li><span class="label"><%=l(:label_subproject_plural)%>:</span>
@@ -41,7 +41,7
41 <h3><%=l(:label_issue_tracking)%></h3>
41 <h3><%=l(:label_issue_tracking)%></h3>
42 <ul>
42 <ul>
43 <% for tracker in @trackers %>
43 <% for tracker in @trackers %>
44 <li><%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
44 <li><%= link_to tracker.name, project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
45 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
45 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
46 :total => @total_issues_by_tracker[tracker].to_i) %>
46 :total => @total_issues_by_tracker[tracker].to_i) %>
47 </li>
47 </li>
@@ -11,7 +11,7
11 <% @queries.each do |query| %>
11 <% @queries.each do |query| %>
12 <tr class="<%= cycle('odd', 'even') %>">
12 <tr class="<%= cycle('odd', 'even') %>">
13 <td class="name">
13 <td class="name">
14 <%= link_to h(query.name), :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
14 <%= link_to query.name, :controller => 'issues', :action => 'index', :project_id => @project, :query_id => query %>
15 </td>
15 </td>
16 <td class="buttons">
16 <td class="buttons">
17 <% if query.editable_by?(User.current) %>
17 <% if query.editable_by?(User.current) %>
@@ -5,7 +5,7
5 <thead><tr>
5 <thead><tr>
6 <th></th>
6 <th></th>
7 <% for status in @statuses %>
7 <% for status in @statuses %>
8 <th><%=h status.name %></th>
8 <th><%= status.name %></th>
9 <% end %>
9 <% end %>
10 <th><strong><%=l(:label_open_issues_plural)%></strong></th>
10 <th><strong><%=l(:label_open_issues_plural)%></strong></th>
11 <th><strong><%=l(:label_closed_issues_plural)%></strong></th>
11 <th><strong><%=l(:label_closed_issues_plural)%></strong></th>
@@ -14,7 +14,7
14 <tbody>
14 <tbody>
15 <% for row in rows %>
15 <% for row in rows %>
16 <tr class="<%= cycle("odd", "even") %>">
16 <tr class="<%= cycle("odd", "even") %>">
17 <td class="name"><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
17 <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
18 <% for status in @statuses %>
18 <% for status in @statuses %>
19 <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
19 <td><%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, aggregate_path(@project, field_name, row, :status_id => status.id) %></td>
20 <% end %>
20 <% end %>
@@ -11,7 +11,7
11 <tbody>
11 <tbody>
12 <% for row in rows %>
12 <% for row in rows %>
13 <tr class="<%= cycle("odd", "even") %>">
13 <tr class="<%= cycle("odd", "even") %>">
14 <td class="name"><%= link_to h(row.name), aggregate_path(@project, field_name, row) %></td>
14 <td class="name"><%= link_to row.name, aggregate_path(@project, field_name, row) %></td>
15 <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
15 <td><%= aggregate_link data, { field_name => row.id, "closed" => 0 }, aggregate_path(@project, field_name, row, :status_id => "o") %></td>
16 <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
16 <td><%= aggregate_link data, { field_name => row.id, "closed" => 1 }, aggregate_path(@project, field_name, row, :status_id => "c") %></td>
17 <td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
17 <td><%= aggregate_link data, { field_name => row.id }, aggregate_path(@project, field_name, row, :status_id => "*") %></td>
@@ -1,4 +1,4
1 <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root',
1 <%= link_to(@repository.identifier.present? ? @repository.identifier : 'root',
2 :action => 'show', :id => @project,
2 :action => 'show', :id => @project,
3 :repository_id => @repository.identifier_param,
3 :repository_id => @repository.identifier_param,
4 :path => nil, :rev => @rev) %>
4 :path => nil, :rev => @rev) %>
@@ -13,11 +13,11 dirs.each do |dir|
13 link_path << '/' unless link_path.empty?
13 link_path << '/' unless link_path.empty?
14 link_path << "#{dir}"
14 link_path << "#{dir}"
15 %>
15 %>
16 / <%= link_to h(dir), :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
16 / <%= link_to dir, :action => 'show', :id => @project, :repository_id => @repository.identifier_param,
17 :path => to_path_param(link_path), :rev => @rev %>
17 :path => to_path_param(link_path), :rev => @rev %>
18 <% end %>
18 <% end %>
19 <% if filename %>
19 <% if filename %>
20 / <%= link_to h(filename),
20 / <%= link_to filename,
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
21 :action => 'changes', :id => @project, :repository_id => @repository.identifier_param,
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
22 :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %>
23 <% end %>
23 <% end %>
@@ -26,6 +26,6 dirs.each do |dir|
26 # For Mercurial *tip*, @rev and @changeset are nil.
26 # For Mercurial *tip*, @rev and @changeset are nil.
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
27 rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
28 %>
28 %>
29 <%= "@ #{h rev_text}" unless rev_text.blank? %>
29 <%= "@ #{rev_text}" unless rev_text.blank? %>
30
30
31 <% html_title(with_leading_slash(path)) -%>
31 <% html_title(with_leading_slash(path)) -%>
@@ -3,7 +3,7
3 depth = params[:depth].to_i %>
3 depth = params[:depth].to_i %>
4 <% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path) %>
4 <% ent_path = Redmine::CodesetUtil.replace_invalid_utf8(entry.path) %>
5 <% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %>
5 <% ent_name = Redmine::CodesetUtil.replace_invalid_utf8(entry.name) %>
6 <tr id="<%= tr_id %>" class="<%= h params[:parent_id] %> entry <%= entry.kind %>">
6 <tr id="<%= tr_id %>" class="<%= params[:parent_id] %> entry <%= entry.kind %>">
7 <td style="padding-left: <%=18 * depth%>px;" class="<%=
7 <td style="padding-left: <%=18 * depth%>px;" class="<%=
8 @repository.report_last_commit ? "filename" : "filename_no_report" %>">
8 @repository.report_last_commit ? "filename" : "filename_no_report" %>">
9 <% if entry.is_dir? %>
9 <% if entry.is_dir? %>
@@ -16,7 +16,7
16 :depth => (depth + 1),
16 :depth => (depth + 1),
17 :parent_id => tr_id)) %>');">&nbsp;</span>
17 :parent_id => tr_id)) %>');">&nbsp;</span>
18 <% end %>
18 <% end %>
19 <%= link_to h(ent_name),
19 <%= link_to ent_name,
20 {:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
20 {:action => (entry.is_dir? ? 'show' : 'changes'), :id => @project, :repository_id => @repository.identifier_param, :path => to_path_param(ent_path), :rev => @rev},
21 :class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
21 :class => (entry.is_dir? ? 'icon icon-folder' : "icon icon-file #{Redmine::MimeType.css_class_of(ent_name)}")%>
22 </td>
22 </td>
@@ -18,7 +18,7
18 <% i = 0 -%>
18 <% i = 0 -%>
19 <% @committers.each do |committer, user_id| -%>
19 <% @committers.each do |committer, user_id| -%>
20 <tr class="<%= cycle 'odd', 'even' %>">
20 <tr class="<%= cycle 'odd', 'even' %>">
21 <td><%=h committer %></td>
21 <td><%= committer %></td>
22 <td>
22 <td>
23 <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
23 <%= hidden_field_tag "committers[#{i}][]", committer, :id => nil %>
24 <%= select_tag "committers[#{i}][]",
24 <%= select_tag "committers[#{i}][]",
@@ -32,7 +32,7
32 <table class="revision-info">
32 <table class="revision-info">
33 <% if @changeset.scmid.present? %>
33 <% if @changeset.scmid.present? %>
34 <tr>
34 <tr>
35 <td>ID</td><td><%= h(@changeset.scmid) %></td>
35 <td>ID</td><td><%= @changeset.scmid %></td>
36 </tr>
36 </tr>
37 <% end %>
37 <% end %>
38 <% if @changeset.parents.present? %>
38 <% if @changeset.parents.present? %>
@@ -61,7 +61,7
61 <h3><%= l(:label_repository_plural) %></h3>
61 <h3><%= l(:label_repository_plural) %></h3>
62 <p>
62 <p>
63 <%= @repositories.sort.collect {|repo|
63 <%= @repositories.sort.collect {|repo|
64 link_to h(repo.name),
64 link_to repo.name,
65 {:controller => 'repositories', :action => 'show',
65 {:controller => 'repositories', :action => 'show',
66 :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
66 :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
67 :class => 'repository' + (repo == @repository ? ' selected' : '')
67 :class => 'repository' + (repo == @repository ? ' selected' : '')
@@ -14,7 +14,7
14 <tbody>
14 <tbody>
15 <% for role in @roles %>
15 <% for role in @roles %>
16 <tr class="<%= cycle("odd", "even") %>">
16 <tr class="<%= cycle("odd", "even") %>">
17 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
17 <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
18 <td class="reorder">
18 <td class="reorder">
19 <% unless role.builtin? %>
19 <% unless role.builtin? %>
20 <%= reorder_links('role', {:action => 'update', :id => role, :page => params[:page]}, :put) %>
20 <%= reorder_links('role', {:action => 'update', :id => role, :page => params[:page]}, :put) %>
@@ -9,7 +9,7
9 <th><%=l(:label_permissions)%></th>
9 <th><%=l(:label_permissions)%></th>
10 <% @roles.each do |role| %>
10 <% @roles.each do |role| %>
11 <th>
11 <th>
12 <%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %>
12 <%= content_tag(role.builtin? ? 'em' : 'span', role.name) %>
13 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')",
13 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.role-#{role.id}')",
14 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
14 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
15 </th>
15 </th>
@@ -26,7 +26,7
26 <%= l_or_humanize(mod, :prefix => 'project_module_') %>
26 <%= l_or_humanize(mod, :prefix => 'project_module_') %>
27 </td>
27 </td>
28 <% @roles.each do |role| %>
28 <% @roles.each do |role| %>
29 <td class="role"><%= h(role.name) %></td>
29 <td class="role"><%= role.name %></td>
30 <% end %>
30 <% end %>
31 </tr>
31 </tr>
32 <% end %>
32 <% end %>
@@ -42,7 +42,7
42 <dl id="search-results">
42 <dl id="search-results">
43 <% @results.each do |e| %>
43 <% @results.each do |e| %>
44 <dt class="<%= e.event_type %>">
44 <dt class="<%= e.event_type %>">
45 <%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %>
45 <%= content_tag('span', e.project, :class => 'project') unless @project == e.project %>
46 <%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %>
46 <%= link_to(highlight_tokens(e.event_title.truncate(255), @tokens), e.event_url) %>
47 </dt>
47 </dt>
48 <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
48 <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
@@ -13,7 +13,7
13 <% end %>
13 <% end %>
14 <p>
14 <p>
15 <%= f.text_field :issue_id, :size => 6 %>
15 <%= f.text_field :issue_id, :size => 6 %>
16 <span id="time_entry_issue"><%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %></span>
16 <span id="time_entry_issue"><%= "#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}" if @time_entry.issue %></span>
17 </p>
17 </p>
18 <p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
18 <p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
19 <p><%= f.text_field :hours, :size => 6, :required => true %></p>
19 <p><%= f.text_field :hours, :size => 6, :required => true %></p>
@@ -3,7 +3,7
3 <% next if hours_for_value.empty? -%>
3 <% next if hours_for_value.empty? -%>
4 <tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
4 <tr class="<%= cycle('odd', 'even') %> <%= criterias.length > level+1 ? 'subtotal' : 'last-level' %>">
5 <%= ("<td></td>" * level).html_safe %>
5 <%= ("<td></td>" * level).html_safe %>
6 <td class="name"><%= h(format_criteria_value(@report.available_criteria[criterias[level]], value)) %></td>
6 <td class="name"><%= format_criteria_value(@report.available_criteria[criterias[level]], value) %></td>
7 <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
7 <%= ("<td></td>" * (criterias.length - level - 1)).html_safe -%>
8 <% total = 0 -%>
8 <% total = 0 -%>
9 <% @report.periods.each do |period| -%>
9 <% @report.periods.each do |period| -%>
@@ -27,7 +27,7
27 <% IssueCustomField.all.each do |field| %>
27 <% IssueCustomField.all.each do |field| %>
28 <label class="block">
28 <label class="block">
29 <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.to_a.include?(field), :id => nil %>
29 <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.to_a.include?(field), :id => nil %>
30 <%=h field.name %>
30 <%= field.name %>
31 </label>
31 </label>
32 <% end %>
32 <% end %>
33 </p>
33 </p>
@@ -15,7 +15,7
15 <tbody>
15 <tbody>
16 <% for tracker in @trackers %>
16 <% for tracker in @trackers %>
17 <tr class="<%= cycle("odd", "even") %>">
17 <tr class="<%= cycle("odd", "even") %>">
18 <td class="name"><%= link_to h(tracker.name), edit_tracker_path(tracker) %></td>
18 <td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
19 <td>
19 <td>
20 <% unless tracker.workflow_rules.count > 0 %>
20 <% unless tracker.workflow_rules.count > 0 %>
21 <span class="icon icon-warning">
21 <span class="icon icon-warning">
@@ -1,7 +1,7
1 <%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
1 <%= form_for(:user, :url => { :action => 'update' }, :html => {:method => :put}) do %>
2 <div class="box">
2 <div class="box">
3 <% Group.givable.sort.each do |group| %>
3 <% Group.givable.sort.each do |group| %>
4 <label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.to_a.include?(group), :id => nil %> <%=h group %></label><br />
4 <label><%= check_box_tag 'user[group_ids][]', group.id, @user.groups.to_a.include?(group), :id => nil %> <%= group %></label><br />
5 <% end %>
5 <% end %>
6 <%= hidden_field_tag 'user[group_ids][]', '' %>
6 <%= hidden_field_tag 'user[group_ids][]', '' %>
7 </div>
7 </div>
@@ -37,10 +37,10
37 <tbody>
37 <tbody>
38 <% for user in @users -%>
38 <% for user in @users -%>
39 <tr class="<%= user.css_classes %> <%= cycle("odd", "even") %>">
39 <tr class="<%= user.css_classes %> <%= cycle("odd", "even") %>">
40 <td class="username"><%= avatar(user, :size => "14") %><%= link_to h(user.login), edit_user_path(user) %></td>
40 <td class="username"><%= avatar(user, :size => "14") %><%= link_to user.login, edit_user_path(user) %></td>
41 <td class="firstname"><%= h(user.firstname) %></td>
41 <td class="firstname"><%= user.firstname %></td>
42 <td class="lastname"><%= h(user.lastname) %></td>
42 <td class="lastname"><%= user.lastname %></td>
43 <td class="email"><%= mail_to(h(user.mail)) %></td>
43 <td class="email"><%= mail_to(user.mail) %></td>
44 <td class="tick"><%= checked_image user.admin? %></td>
44 <td class="tick"><%= checked_image user.admin? %></td>
45 <td class="created_on"><%= format_time(user.created_on) %></td>
45 <td class="created_on"><%= format_time(user.created_on) %></td>
46 <td class="last_login_on"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
46 <td class="last_login_on"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
@@ -2,7 +2,7
2 <%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
2 <%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
3 </div>
3 </div>
4
4
5 <h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
5 <h2><%= avatar @user, :size => "50" %> <%= @user.name %></h2>
6
6
7 <div class="splitcontentleft">
7 <div class="splitcontentleft">
8 <ul>
8 <ul>
@@ -10,11 +10,11
10 <li><%=l(:field_login)%>: <%= @user.login %></li>
10 <li><%=l(:field_login)%>: <%= @user.login %></li>
11 <% end %>
11 <% end %>
12 <% unless @user.pref.hide_mail %>
12 <% unless @user.pref.hide_mail %>
13 <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
13 <li><%=l(:field_mail)%>: <%= mail_to(@user.mail, nil, :encode => 'javascript') %></li>
14 <% end %>
14 <% end %>
15 <% @user.visible_custom_field_values.each do |custom_value| %>
15 <% @user.visible_custom_field_values.each do |custom_value| %>
16 <% if !custom_value.value.blank? %>
16 <% if !custom_value.value.blank? %>
17 <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
17 <li><%= custom_value.custom_field.name %>: <%= show_value(custom_value) %></li>
18 <% end %>
18 <% end %>
19 <% end %>
19 <% end %>
20 <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
20 <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
@@ -28,7 +28,7
28 <ul>
28 <ul>
29 <% for membership in @memberships %>
29 <% for membership in @memberships %>
30 <li><%= link_to_project(membership.project) %>
30 <li><%= link_to_project(membership.project) %>
31 (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
31 (<%= membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
32 <% end %>
32 <% end %>
33 </ul>
33 </ul>
34 <% end %>
34 <% end %>
@@ -53,7 +53,7
53 <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
53 <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
54 <dt class="<%= e.event_type %>">
54 <dt class="<%= e.event_type %>">
55 <span class="time"><%= format_time(e.event_datetime, false) %></span>
55 <span class="time"><%= format_time(e.event_datetime, false) %></span>
56 <%= content_tag('span', h(e.project), :class => 'project') %>
56 <%= content_tag('span', e.project, :class => 'project') %>
57 <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
57 <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
58 <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
58 <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
59 <% end -%>
59 <% end -%>
@@ -15,7 +15,7
15 <tr>
15 <tr>
16 <td style="width:130px; text-align:right;">
16 <td style="width:130px; text-align:right;">
17 <% if count[:group] -%>
17 <% if count[:group] -%>
18 <%= link_to(h(count[:group]), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %>
18 <%= link_to(count[:group], project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => count[:group])) %>
19 <% else -%>
19 <% else -%>
20 <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %>
20 <%= link_to(l(:label_none), project_issues_path(version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => version, "#{criteria}_id" => "!*")) %>
21 <% end %>
21 <% end %>
@@ -5,7 +5,7
5 <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
5 <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
6 </div>
6 </div>
7
7
8 <h2><%= h(@version.name) %></h2>
8 <h2><%= @version.name %></h2>
9
9
10 <div id="roadmap">
10 <div id="roadmap">
11 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
11 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
@@ -13,7 +13,7
13 <p>
13 <p>
14 <em><%= @annotate.content.author ? link_to_user(@annotate.content.author) : l(:label_user_anonymous)
14 <em><%= @annotate.content.author ? link_to_user(@annotate.content.author) : l(:label_user_anonymous)
15 %>, <%= format_time(@annotate.content.updated_on) %> </em><br />
15 %>, <%= format_time(@annotate.content.updated_on) %> </em><br />
16 <%=h @annotate.content.comments %>
16 <%= @annotate.content.comments %>
17 </p>
17 </p>
18
18
19 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
19 <% colors = Hash.new {|k,v| k[v] = (k.size % 12) } %>
@@ -27,8 +27,8
27 <td class="revision"><%= link_to line[0], :controller => 'wiki',
27 <td class="revision"><%= link_to line[0], :controller => 'wiki',
28 :action => 'show', :project_id => @project,
28 :action => 'show', :project_id => @project,
29 :id => @page.title, :version => line[0] %></td>
29 :id => @page.title, :version => line[0] %></td>
30 <td class="author"><%= h(line[1]) %></td>
30 <td class="author"><%= line[1] %></td>
31 <td class="line-code"><pre><%=h line[2] %></pre></td>
31 <td class="line-code"><pre><%= line[2] %></pre></td>
32 </tr>
32 </tr>
33 <% line_num += 1 %>
33 <% line_num += 1 %>
34 <% end -%>
34 <% end -%>
@@ -12,7 +12,7
12 <h3><%= format_date(date) %></h3>
12 <h3><%= format_date(date) %></h3>
13 <ul>
13 <ul>
14 <% @pages_by_date[date].each do |page| %>
14 <% @pages_by_date[date].each do |page| %>
15 <li><%= link_to h(page.pretty_title), :action => 'show', :id => page.title, :project_id => page.project %></li>
15 <li><%= link_to page.pretty_title, :action => 'show', :id => page.title, :project_id => page.project %></li>
16 <% end %>
16 <% end %>
17 </ul>
17 </ul>
18 <% end %>
18 <% end %>
@@ -1,6 +1,6
1 <%= wiki_page_breadcrumb(@page) %>
1 <%= wiki_page_breadcrumb(@page) %>
2
2
3 <h2><%=h @page.pretty_title %></h2>
3 <h2><%= @page.pretty_title %></h2>
4
4
5 <%= form_tag({}, :method => :delete) do %>
5 <%= form_tag({}, :method => :delete) do %>
6 <div class="box">
6 <div class="box">
@@ -1,6 +1,6
1 <%= wiki_page_breadcrumb(@page) %>
1 <%= wiki_page_breadcrumb(@page) %>
2
2
3 <h2><%= h @page.pretty_title %></h2>
3 <h2><%= @page.pretty_title %></h2>
4
4
5 <%= form_for @content, :as => :content,
5 <%= form_for @content, :as => :content,
6 :url => {:action => 'update', :id => @page.title},
6 :url => {:action => 'update', :id => @page.title},
@@ -1,7 +1,7
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><%= @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; }
@@ -1,7 +1,7
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><%= @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; }
@@ -20,13 +20,13 h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display
20 <strong><%= l(:label_index_by_title) %></strong>
20 <strong><%= l(:label_index_by_title) %></strong>
21 <ul>
21 <ul>
22 <% @pages.each do |page| %>
22 <% @pages.each do |page| %>
23 <li><a href="#<%= h(page.title) %>"><%= h(page.pretty_title) %></a></li>
23 <li><a href="#<%= page.title %>"><%= page.pretty_title %></a></li>
24 <% end %>
24 <% end %>
25 </ul>
25 </ul>
26
26
27 <% @pages.each do |page| %>
27 <% @pages.each do |page| %>
28 <hr />
28 <hr />
29 <a name="<%= h(page.title) %>" />
29 <a name="<%= page.title %>" />
30 <%= textilizable page.content ,:text, :wiki_links => :anchor %>
30 <%= textilizable page.content ,:text, :wiki_links => :anchor %>
31 <% end %>
31 <% end %>
32
32
@@ -20,12 +20,12
20 <% line_num = 1 %>
20 <% line_num = 1 %>
21 <% @versions.each do |ver| %>
21 <% @versions.each do |ver| %>
22 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
22 <tr class="wiki-page-version <%= cycle("odd", "even") %>">
23 <td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
23 <td class="id"><%= link_to ver.version, :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td>
24 <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked', true);") if show_diff && (line_num < @versions.size) %></td>
24 <td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').prop('checked', true);") if show_diff && (line_num < @versions.size) %></td>
25 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
25 <td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
26 <td class="updated_on"><%= format_time(ver.updated_on) %></td>
26 <td class="updated_on"><%= format_time(ver.updated_on) %></td>
27 <td class="author"><%= link_to_user ver.author %></td>
27 <td class="author"><%= link_to_user ver.author %></td>
28 <td class="comments"><%=h ver.comments %></td>
28 <td class="comments"><%= ver.comments %></td>
29 <td class="buttons">
29 <td class="buttons">
30 <%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
30 <%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %>
31 <%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %>
31 <%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %>
@@ -1,6 +1,6
1 <%= wiki_page_breadcrumb(@page) %>
1 <%= wiki_page_breadcrumb(@page) %>
2
2
3 <h2><%= h @original_title %></h2>
3 <h2><%= @original_title %></h2>
4
4
5 <%= error_messages_for 'page' %>
5 <%= error_messages_for 'page' %>
6
6
@@ -36,7 +36,7
36 <br />
36 <br />
37 <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
37 <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
38 %>, <%= format_time(@content.updated_on) %> </em><br />
38 %>, <%= format_time(@content.updated_on) %> </em><br />
39 <%=h @content.comments %>
39 <%= @content.comments %>
40 </p>
40 </p>
41 <hr />
41 <hr />
42 <% end %>
42 <% end %>
@@ -1,7 +1,7
1 <h2><%=l(:label_confirmation)%></h2>
1 <h2><%=l(:label_confirmation)%></h2>
2
2
3 <div class="box"><center>
3 <div class="box"><center>
4 <p><strong><%= h(@project.name) %></strong><br /><%=l(:text_wiki_destroy_confirmation)%></p>
4 <p><strong><%= @project.name %></strong><br /><%=l(:text_wiki_destroy_confirmation)%></p>
5
5
6 <%= form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %>
6 <%= form_tag({:controller => 'wikis', :action => 'destroy', :id => @project}) do %>
7 <%= hidden_field_tag "confirm", 1 %>
7 <%= hidden_field_tag "confirm", 1 %>
@@ -14,7 +14,7
14 <td style="width:<%= 75 / @statuses.size %>%;">
14 <td style="width:<%= 75 / @statuses.size %>%;">
15 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",
15 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",
16 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
16 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
17 <%=h new_status.name %>
17 <%= new_status.name %>
18 </td>
18 </td>
19 <% end %>
19 <% end %>
20 </tr>
20 </tr>
@@ -26,7 +26,7
26 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",
26 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",
27 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
27 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
28
28
29 <%=h old_status.name %>
29 <%= old_status.name %>
30 </td>
30 </td>
31 <% for new_status in @statuses -%>
31 <% for new_status in @statuses -%>
32 <% checked = workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id} %>
32 <% checked = workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id} %>
@@ -47,7 +47,7
47 <td></td>
47 <td></td>
48 <% for status in @statuses %>
48 <% for status in @statuses %>
49 <td style="width:<%= 75 / @statuses.size %>%;">
49 <td style="width:<%= 75 / @statuses.size %>%;">
50 <%=h status.name %>
50 <%= status.name %>
51 </td>
51 </td>
52 <% end %>
52 <% end %>
53 </tr>
53 </tr>
@@ -62,7 +62,7
62 <% @fields.each do |field, name| %>
62 <% @fields.each do |field, name| %>
63 <tr class="<%= cycle("odd", "even") %>">
63 <tr class="<%= cycle("odd", "even") %>">
64 <td class="name">
64 <td class="name">
65 <%=h name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
65 <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
66 </td>
66 </td>
67 <% for status in @statuses -%>
67 <% for status in @statuses -%>
68 <td class="<%= @permissions[status.id][field] %>">
68 <td class="<%= @permissions[status.id][field] %>">
@@ -82,7 +82,7
82 <% @custom_fields.each do |field| %>
82 <% @custom_fields.each do |field| %>
83 <tr class="<%= cycle("odd", "even") %>">
83 <tr class="<%= cycle("odd", "even") %>">
84 <td class="name">
84 <td class="name">
85 <%=h field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
85 <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %>
86 </td>
86 </td>
87 <% for status in @statuses -%>
87 <% for status in @statuses -%>
88 <td class="<%= @permissions[status.id][field.id.to_s] %>">
88 <td class="<%= @permissions[status.id][field.id.to_s] %>">
General Comments 0
You need to be logged in to leave comments. Login now