26 lines
418 B
Ruby
26 lines
418 B
Ruby
|
class UserIssuesController < ApplicationController
|
||
|
before_filter :authenticate_user!
|
||
|
|
||
|
layout "user"
|
||
|
|
||
|
respond_to :js, :html
|
||
|
|
||
|
def index
|
||
|
@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
|
||
|
|
||
|
def search
|
||
|
|
||
|
end
|
||
|
|
||
|
end
|