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