|
@@ 32-41 (lines=10) @@
|
| 29 |
|
* |
| 30 |
|
* @return \Illuminate\Http\Response |
| 31 |
|
*/ |
| 32 |
|
public function index($namespace, $project_path) |
| 33 |
|
{ |
| 34 |
|
$project = Project::findByPath($namespace, $project_path); |
| 35 |
|
|
| 36 |
|
return View::make('projects.issues.index') |
| 37 |
|
->withProject($project) |
| 38 |
|
->withIssues($project->issues) |
| 39 |
|
->withActiveItem($this->active_item) |
| 40 |
|
->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name)); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function showAction($owner_path, $project_path, $issue) |
| 44 |
|
{ |
|
@@ 43-52 (lines=10) @@
|
| 40 |
|
->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name)); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
public function showAction($owner_path, $project_path, $issue) |
| 44 |
|
{ |
| 45 |
|
$project = Project::findByPath($owner_path, $project_path); |
| 46 |
|
|
| 47 |
|
return View::make('projects.issues.show') |
| 48 |
|
->withProject($project) |
| 49 |
|
->withIssue($issue) |
| 50 |
|
->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name)) |
| 51 |
|
->withActiveItem($this->active_item); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
public function add($namespace, $project_path) |
| 55 |
|
{ |
|
@@ 54-62 (lines=9) @@
|
| 51 |
|
->withActiveItem($this->active_item); |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
public function add($namespace, $project_path) |
| 55 |
|
{ |
| 56 |
|
$project = Project::findByPath($namespace, $project_path); |
| 57 |
|
|
| 58 |
|
return View::make('projects.issues.add') |
| 59 |
|
->withProject($project) |
| 60 |
|
->withPageTitle(sprintf('%s - %s', trans('dashboard.issues.issues'), $project->name)) |
| 61 |
|
->withActiveItem($this->active_item); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
/** |
| 65 |
|
* Show the form for creating a new resource. |