| @@ 95-106 (lines=12) @@ | ||
| 92 | * |
|
| 93 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
|
| 94 | */ |
|
| 95 | public function getAssigned(Project $project) |
|
| 96 | { |
|
| 97 | $issues = $project->listAssignedOrCreatedIssues($this->getLoggedUser()); |
|
| 98 | ||
| 99 | return view('project.index', [ |
|
| 100 | 'tabs' => $this->projectMainViewTabs($project, 'assigned', $issues), |
|
| 101 | 'project' => $project, |
|
| 102 | 'active' => 'issue_assigned_to_you', |
|
| 103 | 'issues' => $issues, |
|
| 104 | 'sidebar' => 'project', |
|
| 105 | ]); |
|
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * Display issues created to current user for a project. |
|
| @@ 115-126 (lines=12) @@ | ||
| 112 | * |
|
| 113 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
|
| 114 | */ |
|
| 115 | public function getCreated(Project $project) |
|
| 116 | { |
|
| 117 | $issues = $project->listAssignedOrCreatedIssues($this->getLoggedUser()); |
|
| 118 | ||
| 119 | return view('project.index', [ |
|
| 120 | 'tabs' => $this->projectMainViewTabs($project, 'created', $issues), |
|
| 121 | 'project' => $project, |
|
| 122 | 'active' => 'issue_created_by_you', |
|
| 123 | 'issues' => $issues, |
|
| 124 | 'sidebar' => 'project', |
|
| 125 | ]); |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Display notes for a project. |
|
| @@ 136-148 (lines=13) @@ | ||
| 133 | * |
|
| 134 | * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View |
|
| 135 | */ |
|
| 136 | public function getNotes(Project $project, NoteForm $form) |
|
| 137 | { |
|
| 138 | $notes = $project->notes()->with('createdBy')->get(); |
|
| 139 | ||
| 140 | return view('project.index', [ |
|
| 141 | 'tabs' => $this->projectMainViewTabs($project, 'notes', $notes), |
|
| 142 | 'project' => $project, |
|
| 143 | 'active' => 'notes', |
|
| 144 | 'notes' => $notes, |
|
| 145 | 'sidebar' => 'project', |
|
| 146 | 'noteForm' => $form, |
|
| 147 | ]); |
|
| 148 | } |
|
| 149 | ||
| 150 | /** |
|
| 151 | * @param Project $project |
|