Project

General

Profile

Issue view in Roadmap/Versions

Added by Matt Daemow over 10 years ago

Hi,
My first post, blah, blah :)

I'm trying to show in Roadmap and Versions indented Issues(bugs).
In issues view it is done in index view by line
<%= render :partial => 'issues/list', :locals => {:issues => @issues, :query => @query} %>

As You see if I want to show this in other view we need to have there @issues and @query.
In Versions View (show.html.erb) there is only @issues variable,

<% if @issues.present? %>
<tbody>
<% issue_list(@issues) do |issue, level| -%>

how i can get the same working @query from issues actions. I've try to steal it with adding retrieve_query to version_controller which I think is responsible for @query in issues_controller.

That's what I try to do. Maybe there is other way to indent issues (parent / child) in Roadmap and Versions.
It's quite hardo to me, I've just started my rails way.

Thx for reply and God bless You for solving :)

//EDIT

OK ITS DONE. PEACE!