Browse Source

Moves code to controller.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3865 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.1.0
Jean-Philippe Lang 14 years ago
parent
commit
a9a4e0d6b8
2 changed files with 5 additions and 5 deletions
  1. 3
    0
      app/controllers/versions_controller.rb
  2. 2
    5
      app/views/versions/show.rhtml

+ 3
- 0
app/controllers/versions_controller.rb View File

@@ -27,6 +27,9 @@ class VersionsController < ApplicationController
helper :projects
def show
@issues = @version.fixed_issues.find(:all,
:include => [:status, :tracker, :priority],
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id")
end
def new

+ 2
- 5
app/views/versions/show.rhtml View File

@@ -32,13 +32,10 @@
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>

<% issues = @version.fixed_issues.find(:all,
:include => [:status, :tracker, :priority],
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
<% if issues.size > 0 %>
<% if @issues.present? %>
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
<ul>
<% issues.each do |issue| -%>
<% @issues.each do |issue| -%>
<li><%= link_to_issue(issue) %></li>
<% end -%>
</ul>

Loading…
Cancel
Save