Skip to content

Commit d401f22

Browse files
Move project settings item to Project menu (Kitware#3641)
Each of the project settings pages was previously linked under a top level "Settings" menu. These pages are now available via the project settings page and the extra menu is no longer necessary. This commit moves the menu to a single "Settings" item under the "Project" menu for users able to edit the project.
1 parent f2d1310 commit d401f22

1 file changed

Lines changed: 7 additions & 32 deletions

File tree

resources/views/components/header.blade.php

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,13 @@
166166
<li>
167167
<a href="#">Project</a>
168168
<ul>
169+
@can('edit-project', $project)
170+
<li>
171+
<a href="{{ url("/projects/{$project->Id}/settings") }}">
172+
Settings
173+
</a>
174+
</li>
175+
@endcan
169176
@if(isset($project->HomeUrl) && strlen($project->HomeUrl) > 0)
170177
<li>
171178
<a href="{{ $project->HomeUrl }}">
@@ -210,38 +217,6 @@
210217
@endif
211218
</ul>
212219
</li>
213-
@can('edit-project', $project)
214-
<li>
215-
<a href="#">Settings</a>
216-
<ul>
217-
<li>
218-
<a href="{{ url("/projects/{$project->Id}/settings") }}">
219-
Project
220-
</a>
221-
</li>
222-
<li>
223-
<a href="{{ url('/manageBuildGroup.php') }}?projectid={{ $project->Id }}">
224-
Groups
225-
</a>
226-
</li>
227-
<li>
228-
<a href="{{ url("/projects/{$project->Id}/testmeasurements") }}">
229-
Measurements
230-
</a>
231-
</li>
232-
<li>
233-
<a href="{{ url('/manageSubProject.php') }}?projectid={{ $project->Id }}">
234-
SubProjects
235-
</a>
236-
</li>
237-
<li>
238-
<a href="{{ url('/manageOverview.php') }}?projectid={{ $project->Id }}">
239-
Overview
240-
</a>
241-
</li>
242-
</ul>
243-
</li>
244-
@endcan
245220
@endif
246221
</ul>
247222
</div>

0 commit comments

Comments
 (0)