Project

General

Profile

Feature #17431 » 11314-Version-date-info-in-issuesv3.patch

Olivier Houdas, 2014-07-10 17:03

View differences:

app/helpers/application_helper.rb Tue Jul 08 16:28:18 2014 +0200 → app/helpers/application_helper.rb Thu Jul 10 16:59:25 2014 +0200
when 'Project'
html ? link_to_project(object) : object.to_s
when 'Version'
html ? link_to(object.name, version_path(object)) : object.to_s
html ? link_to_version(object, :title => format_date(object.effective_date)) : object.to_s
when 'TrueClass'
l(:general_text_Yes)
when 'FalseClass'
app/views/issues/show.html.erb Tue Jul 08 16:28:18 2014 +0200 → app/views/issues/show.html.erb Thu Jul 10 16:59:25 2014 +0200
rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
end
unless @issue.disabled_core_fields.include?('fixed_version_id')
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version,:title => format_date(@issue.fixed_version.effective_date)).html_safe : "-"), :class => 'fixed-version'
end
unless @issue.disabled_core_fields.include?('start_date')
app/views/versions/index.html.erb Tue Jul 08 16:28:18 2014 +0200 → app/views/versions/index.html.erb Thu Jul 10 16:59:25 2014 +0200
<% else %>
<div id="roadmap">
<% @versions.each do |version| %>
<h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
<h3 class="version"><%= link_to_version version, :name => version_anchor(version), :title => format_date(version.effective_date) %></h3>
<%= render :partial => 'versions/overview', :locals => {:version => version} %>
<%= render(:partial => "wiki/content",
:locals => {:content => version.wiki_page.content}) if version.wiki_page %>
lib/redmine/helpers/gantt.rb Tue Jul 08 16:28:18 2014 +0200 → lib/redmine/helpers/gantt.rb Thu Jul 10 16:59:25 2014 +0200
html_class << ' behind-start-date' if progress_date < self.date_from
html_class << ' over-end-date' if progress_date > self.date_to
end
s = view.link_to_version(version).html_safe
s = view.link_to_version(version, :title => format_date(version.effective_date)).html_safe
subject = view.content_tag(:span, s,
:class => html_class).html_safe
html_subject(options, subject, :css => "version-name",
(4-4/4)