2011-12-07 18:31:06 -05:00
|
|
|
class UserIssuesController < ApplicationController
|
|
|
|
before_filter :authenticate_user!
|
|
|
|
|
|
|
|
respond_to :js, :html
|
|
|
|
|
|
|
|
def index
|
2011-12-08 14:17:53 -05:00
|
|
|
@projects = current_user.projects.all
|
2011-12-07 18:31:06 -05:00
|
|
|
@user = current_user
|
|
|
|
@issues = current_user.assigned_issues.opened
|
|
|
|
|
|
|
|
@issues = @issues.includes(:author, :project)
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.js
|
|
|
|
format.atom { render :layout => false }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|