diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-25 17:17:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-25 17:17:49 +0000 |
commit | 5e57a1a9d9478162ac4f27ae96b2ccaf55a1aba7 (patch) | |
tree | 93e57765139714bd82dede475725516c448c0d55 /app/views/issues | |
parent | 34e20c4373b7f5a20ab3a132feae3f70f21ec477 (diff) | |
download | redmine-5e57a1a9d9478162ac4f27ae96b2ccaf55a1aba7.tar.gz redmine-5e57a1a9d9478162ac4f27ae96b2ccaf55a1aba7.zip |
Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/_action_menu.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/_attributes.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/_edit.html.erb | 4 | ||||
-rw-r--r-- | app/views/issues/_form.html.erb | 4 | ||||
-rw-r--r-- | app/views/issues/_list.html.erb | 6 | ||||
-rw-r--r-- | app/views/issues/_list_simple.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/bulk_edit.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/destroy.html.erb | 2 | ||||
-rw-r--r-- | app/views/issues/index.html.erb | 4 | ||||
-rw-r--r-- | app/views/issues/new.html.erb | 2 |
10 files changed, 15 insertions, 15 deletions
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb index c643934d1..4d0503117 100644 --- a/app/views/issues/_action_menu.html.erb +++ b/app/views/issues/_action_menu.html.erb @@ -1,6 +1,6 @@ <div class="contextual"> <%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> -<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue}, :class => 'icon icon-time-add' %> +<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue), :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %> <%= watcher_tag(@issue, User.current) %> <%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, :class => 'icon icon-copy' %> <%= link_to l(:button_delete), issue_path(@issue), :confirm => issues_destroy_confirmation_message(@issue), :method => :delete, :class => 'icon icon-del' if User.current.allowed_to?(:delete_issues, @project) %> diff --git a/app/views/issues/_attributes.html.erb b/app/views/issues/_attributes.html.erb index 7ac662e13..c65735ae4 100644 --- a/app/views/issues/_attributes.html.erb +++ b/app/views/issues/_attributes.html.erb @@ -1,4 +1,4 @@ -<% labelled_fields_for :issue, @issue do |f| %> +<%= labelled_fields_for :issue, @issue do |f| %> <div class="splitcontent"> <div class="splitcontentleft"> diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb index 690fa9386..b5ddfac38 100644 --- a/app/views/issues/_edit.html.erb +++ b/app/views/issues/_edit.html.erb @@ -1,4 +1,4 @@ -<% labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %> +<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue', 'time_entry' %> <%= render :partial => 'conflict' if @conflict %> <div class="box"> @@ -11,7 +11,7 @@ <% end %> <% if User.current.allowed_to?(:log_time, @project) %> <fieldset class="tabular"><legend><%= l(:button_log_time) %></legend> - <% labelled_fields_for :time_entry, @time_entry do |time_entry| %> + <%= labelled_fields_for :time_entry, @time_entry do |time_entry| %> <div class="splitcontentleft"> <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p> </div> diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index 6634723f7..9bc362377 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -1,4 +1,4 @@ -<% labelled_fields_for :issue, @issue do |f| %> +<%= labelled_fields_for :issue, @issue do |f| %> <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %> <% if @issue.safe_attribute? 'is_private' %> @@ -28,7 +28,7 @@ <label><%= l(:field_description) %></label> <%= link_to_function image_tag('edit.png'), 'Element.hide(this); Effect.toggle("issue_description_and_toolbar", "appear", {duration:0.3})' unless @issue.new_record? %> - <% content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %> + <%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %> <%= f.text_area :description, :cols => 60, :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index f5b5bc1bb..62cf4e443 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -1,4 +1,4 @@ -<% form_tag({}) do -%> +<%= form_tag({}) do -%> <%= hidden_field_tag 'back_url', url_for(params), :id => nil %> <div class="autoscroll"> <table class="list issues"> @@ -27,8 +27,8 @@ <% end %> <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td> - <td class="id"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td> - <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.css_classes %><% end %> + <td class="id"><%= link_to issue.id, issue_path(issue) %></td> + <%= raw query.columns.map {|column| "<td class=\"#{column.css_classes}\">#{column_content(column, issue)}</td>"}.join %> </tr> <% end -%> </tbody> diff --git a/app/views/issues/_list_simple.html.erb b/app/views/issues/_list_simple.html.erb index fcbd9d3fe..ae34000f1 100644 --- a/app/views/issues/_list_simple.html.erb +++ b/app/views/issues/_list_simple.html.erb @@ -1,5 +1,5 @@ <% if issues && issues.any? %> -<% form_tag({}) do %> +<%= form_tag({}) do %> <table class="list issues"> <thead><tr> <th>#</th> diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb index e81676ada..946b5255b 100644 --- a/app/views/issues/bulk_edit.html.erb +++ b/app/views/issues/bulk_edit.html.erb @@ -7,7 +7,7 @@ ) + h(": #{i.subject}")) }.join("\n").html_safe %></ul> -<% form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %> +<%= form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %> <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %> <div class="box tabular"> <fieldset class="attributes"> diff --git a/app/views/issues/destroy.html.erb b/app/views/issues/destroy.html.erb index 3491c78eb..a8ca78826 100644 --- a/app/views/issues/destroy.html.erb +++ b/app/views/issues/destroy.html.erb @@ -1,6 +1,6 @@ <h2><%= l(:label_confirmation) %></h2> -<% form_tag({}, :method => :delete) do %> +<%= form_tag({}, :method => :delete) do %> <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %> <div class="box"> <p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p> diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index e3e256dee..ac9da57dc 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -9,7 +9,7 @@ <h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2> <% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %> -<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, +<%= form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %> <%= hidden_field_tag 'set_filter', '1' %> <div id="query_form_content" class="hide-when-print"> @@ -68,7 +68,7 @@ <div id="csv-export-options" style="display:none;"> <h3 class="title"><%= l(:label_export_options, :export_format => 'CSV') %></h3> - <% form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %> + <%= form_tag(params.merge({:format => 'csv',:page=>nil}), :method => :get, :id => 'csv-export-form') do %> <p> <label><%= radio_button_tag 'columns', '', true %> <%= l(:description_selected_columns) %></label><br /> <label><%= radio_button_tag 'columns', 'all' %> <%= l(:description_all_columns) %></label> diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb index 400423317..4e8449570 100644 --- a/app/views/issues/new.html.erb +++ b/app/views/issues/new.html.erb @@ -2,7 +2,7 @@ <%= call_hook(:view_issues_new_top, {:issue => @issue}) %> -<% labelled_form_for @issue, :url => project_issues_path(@project), +<%= labelled_form_for @issue, :url => project_issues_path(@project), :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue' %> <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %> |