@@ 35-62 (lines=28) @@ | ||
32 | * |
|
33 | * @return void |
|
34 | */ |
|
35 | public function __construct() |
|
36 | { |
|
37 | $this->subMenu = [ |
|
38 | 'yours' => [ |
|
39 | 'title' => trans('dashboard.projects.yours'), |
|
40 | 'url' => route('dashboard.projects.index'), |
|
41 | 'icon' => 'fa fa-edit', |
|
42 | 'active' => false, |
|
43 | ], |
|
44 | 'starred' => [ |
|
45 | 'title' => trans('dashboard.projects.starred'), |
|
46 | 'url' => route('dashboard.projects.starred'), |
|
47 | 'icon' => 'fa fa-umbrella', |
|
48 | 'active' => false, |
|
49 | ], |
|
50 | 'explore' => [ |
|
51 | 'title' => trans('dashboard.projects.explore'), |
|
52 | 'url' => route('explore.index'), |
|
53 | 'icon' => 'fa fa-eye', |
|
54 | 'active' => false, |
|
55 | ], |
|
56 | ]; |
|
57 | ||
58 | View::share([ |
|
59 | 'sub_menu' => $this->subMenu, |
|
60 | 'sub_title' => trans_choice('dashboard.projects.projects', 2), |
|
61 | ]); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * Shows the projects view. |
@@ 36-63 (lines=28) @@ | ||
33 | * |
|
34 | * @return void |
|
35 | */ |
|
36 | public function __construct() |
|
37 | { |
|
38 | $this->subMenu = [ |
|
39 | 'yours' => [ |
|
40 | 'title' => trans('dashboard.projects.yours'), |
|
41 | 'url' => route('dashboard.projects.index'), |
|
42 | 'icon' => 'fa fa-edit', |
|
43 | 'active' => false, |
|
44 | ], |
|
45 | 'starred' => [ |
|
46 | 'title' => trans('dashboard.projects.starred'), |
|
47 | 'url' => route('dashboard.projects.starred'), |
|
48 | 'icon' => 'fa fa-umbrella', |
|
49 | 'active' => false, |
|
50 | ], |
|
51 | 'explore' => [ |
|
52 | 'title' => trans('dashboard.projects.explore'), |
|
53 | 'url' => route('explore.index'), |
|
54 | 'icon' => 'fa fa-eye', |
|
55 | 'active' => false, |
|
56 | ], |
|
57 | ]; |
|
58 | ||
59 | View::share([ |
|
60 | 'sub_menu' => $this->subMenu, |
|
61 | 'sub_title' => trans_choice('dashboard.projects.projects', 2), |
|
62 | ]); |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * Displays the explore page. |
@@ 40-67 (lines=28) @@ | ||
37 | * |
|
38 | * @return void |
|
39 | */ |
|
40 | public function __construct() |
|
41 | { |
|
42 | $this->subMenu = [ |
|
43 | 'projects' => [ |
|
44 | 'title' => trans('dashboard.projects.projects'), |
|
45 | 'url' => route('dashboard.projects.index'), |
|
46 | 'icon' => 'fa fa-sitemap', |
|
47 | 'active' => false, |
|
48 | ], |
|
49 | 'groups' => [ |
|
50 | 'title' => trans_choice('gitamin.groups.groups', 2), |
|
51 | 'url' => route('dashboard.groups.index'), |
|
52 | 'icon' => 'fa fa-folder', |
|
53 | 'active' => false, |
|
54 | ], |
|
55 | 'labels' => [ |
|
56 | 'title' => trans_choice('dashboard.projects.labels.labels', 2), |
|
57 | 'url' => route('dashboard.projects.index'), |
|
58 | 'icon' => 'fa fa-tags', |
|
59 | 'active' => false, |
|
60 | ], |
|
61 | ]; |
|
62 | ||
63 | View::share([ |
|
64 | 'sub_menu' => $this->subMenu, |
|
65 | 'sub_title' => trans_choice('dashboard.projects.projects', 2), |
|
66 | ]); |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * Shows the project groups view. |