Patch #231 » projects_controller.diff
| projects_controller.rb (working copy) | ||
|---|---|---|
| 16 | 16 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 | 17 | |
| 18 | 18 |
require 'csv' |
| 19 |
require 'RSSParser' |
|
| 19 | 20 | |
| 20 | 21 |
class ProjectsController < ApplicationController |
| 21 | 22 |
layout 'base' |
| ... | ... | |
| 86 | 87 |
@total_issues_by_tracker = Issue.count(:group => :tracker, :conditions => ["project_id=?", @project.id]) |
| 87 | 88 |
@total_hours = @project.time_entries.sum(:hours) |
| 88 | 89 |
@key = User.current.rss_key |
| 90 |
if @project.ccfeed? |
|
| 91 |
@cc_feed = RSSParser.run(@project.ccfeed) |
|
| 92 |
end |
|
| 89 | 93 |
end |
| 90 | 94 | |
| 91 | 95 |
def settings |
| ... | ... | |
| 586 | 590 |
@key = User.current.rss_key |
| 587 | 591 |
end |
| 588 | 592 |
|
| 593 |
|
|
| 589 | 594 |
private |
| 590 | 595 |
# Find project of id params[:id] |
| 591 | 596 |
# if not found, redirect to project list |
| ... | ... | |
| 603 | 608 |
@selected_tracker_ids = selectable_trackers.collect {|t| t.id.to_s }
|
| 604 | 609 |
end |
| 605 | 610 |
end |
| 606 |
|
|
| 611 | ||
| 607 | 612 |
# Retrieve query from session or build a new query |
| 608 | 613 |
def retrieve_query |
| 609 | 614 |
if params[:query_id] |