11314-Version-date-info-in-issuesv3.patch

Olivier Houdas, 2014-07-10 17:03

Download (2.8 KB)

View differences:

app/helpers/application_helper.rb Thu Jul 10 16:59:25 2014 +0200
178 178
    when 'Project'
179 179
      html ? link_to_project(object) : object.to_s
180 180
    when 'Version'
181
      html ? link_to(object.name, version_path(object)) : object.to_s
181
      html ? link_to_version(object, :title => format_date(object.effective_date)) : object.to_s
182 182
    when 'TrueClass'
183 183
      l(:general_text_Yes)
184 184
    when 'FalseClass'
app/views/issues/show.html.erb Thu Jul 10 16:59:25 2014 +0200
43 43
    rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
44 44
  end
45 45
  unless @issue.disabled_core_fields.include?('fixed_version_id')
46
    rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
46
    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'
47 47
  end
48 48

  
49 49
  unless @issue.disabled_core_fields.include?('start_date')
app/views/versions/index.html.erb Thu Jul 10 16:59:25 2014 +0200
10 10
<% else %>
11 11
  <div id="roadmap">
12 12
  <% @versions.each do |version| %>
13
    <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
13
    <h3 class="version"><%= link_to_version version, :name => version_anchor(version), :title => format_date(version.effective_date) %></h3>
14 14
    <%= render :partial => 'versions/overview', :locals => {:version => version} %>
15 15
    <%= render(:partial => "wiki/content",
16 16
               :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
lib/redmine/helpers/gantt.rb Thu Jul 10 16:59:25 2014 +0200
317 317
            html_class << ' behind-start-date' if progress_date < self.date_from
318 318
            html_class << ' over-end-date' if progress_date > self.date_to
319 319
          end
320
          s = view.link_to_version(version).html_safe
320
          s = view.link_to_version(version, :title => format_date(version.effective_date)).html_safe
321 321
          subject = view.content_tag(:span, s,
322 322
                                     :class => html_class).html_safe
323 323
          html_subject(options, subject, :css => "version-name",