diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 65b306024..6254c24b3 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -365,9 +365,9 @@ class ProjectsController < ApplicationController format.html { redirect_to admin_projects_path } format.api { render_api_ok } end - else - render :layout => "base" - end + else + render :layout => "base" + end # hide project in layout @project = nil diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb index 0cffa8f53..da7da6b80 100644 --- a/app/views/issues/_relations.html.erb +++ b/app/views/issues/_relations.html.erb @@ -7,12 +7,15 @@

<%=l(:label_related_issues)%>

<% if @relations.present? %> +
<% @relations.each do |relation| %> <% other_issue = relation.other_issue(@issue) -%> + + + + + +
<%= check_box_tag("ids[]", other_issue.id, false, :id => nil) %> <%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %> @@ -21,7 +24,11 @@ <%=h other_issue.status.name %> <%= format_date(other_issue.start_date) %><%= format_date(other_issue.due_date) %><%= link_to image_tag('link_break.png'), relation_path(relation), :remote => true, diff --git a/config/routes.rb b/config/routes.rb index 4ff256bad..717db4661 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -66,6 +66,7 @@ RedmineApp::Application.routes.draw do match '/journals/diff/:id', :to => 'journals#diff', :id => /\d+/, :via => :get match '/journals/edit/:id', :to => 'journals#edit', :id => /\d+/, :via => [:get, :post] + get '/projects/:project_id/issues/gantt', :to => 'gantts#show', :as => 'project_gantt' get '/issues/gantt', :to => 'gantts#show' diff --git a/public/images/praise_tread/praise_false.png b/public/images/praise_tread/praise_false.png index ed63e619d..b313b8417 100644 Binary files a/public/images/praise_tread/praise_false.png and b/public/images/praise_tread/praise_false.png differ diff --git a/public/images/praise_tread/tread_false.png b/public/images/praise_tread/tread_false.png index 26f146083..1b3e9af29 100644 Binary files a/public/images/praise_tread/tread_false.png and b/public/images/praise_tread/tread_false.png differ