render :action => 'show', :layout => !request.xhr?
end
format.atom do
- @messages = @board.messages.
+ messages = @board.messages.
reorder(:id => :desc).
includes(:author, :board).
limit(Setting.feeds_limit.to_i).
to_a
- render_feed(@messages, :title => "#{@project}: #{@board}")
+ render_feed(messages, :title => "#{@project}: #{@board}")
end
end
end
end
end
format.atom do
- @issues = @query.issues(:limit => Setting.feeds_limit.to_i)
- render_feed(@issues,
+ issues = @query.issues(:limit => Setting.feeds_limit.to_i)
+ render_feed(issues,
:title => "#{@project || Setting.app_title}: #{l(:label_issue_plural)}")
end
format.csv do
- @issues = @query.issues(:limit => Setting.issues_export_limit.to_i)
- send_data(query_to_csv(@issues, @query, params[:csv]),
+ issues = @query.issues(:limit => Setting.issues_export_limit.to_i)
+ send_data(query_to_csv(issues, @query, params[:csv]),
:type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'issues')}.csv")
end
format.pdf do
end
format.csv do
# Export all entries
- @entries = scope.to_a
- send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => 'projects.csv')
+ entries = scope.to_a
+ send_data(query_to_csv(entries, @query, params), :type => 'text/csv; header=present', :filename => 'projects.csv')
end
end
end
end
format.csv do
# Export all entries
- @entries = scope.to_a
- send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'timelog')}.csv")
+ entries = scope.to_a
+ send_data(query_to_csv(entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'timelog')}.csv")
end
end
end
end
format.csv do
# Export all entries
- @entries = scope.to_a
- send_data(query_to_csv(@entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'users')}.csv")
+ entries = scope.to_a
+ send_data(query_to_csv(entries, @query, params), :type => 'text/csv; header=present', :filename => "#{filename_for_export(@query, 'users')}.csv")
end
format.api do
@offset, @limit = api_offset_and_limit