Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
5c4e74ac
Commit
5c4e74ac
authored
Mar 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add settings tab to project. Move all project administration there
parent
d2b882fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
29 deletions
+29
-29
app/helpers/tab_helper.rb
app/helpers/tab_helper.rb
+1
-1
app/views/layouts/project_resource.html.haml
app/views/layouts/project_resource.html.haml
+7
-2
app/views/projects/_project_head.html.haml
app/views/projects/_project_head.html.haml
+21
-25
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+0
-1
No files found.
app/helpers/tab_helper.rb
View file @
5c4e74ac
...
...
@@ -73,7 +73,7 @@ module TabHelper
end
def
project_tab_class
[
:
show
,
:files
,
:edit
,
:update
].
each
do
|
action
|
[
:
files
,
:edit
].
each
do
|
action
|
return
"active"
if
current_page?
(
controller:
"projects"
,
action:
action
,
id:
@project
)
end
...
...
app/views/layouts/project_resource.html.haml
View file @
5c4e74ac
...
...
@@ -9,7 +9,7 @@
.container
%ul
.main_menu
=
nav_link
(
html_options:
{
class:
"home
#{
project_tab_class
}
"
})
do
=
nav_link
(
path:
'projects#show'
,
html_options:
{
class:
"home
"
})
do
=
link_to
project_path
(
@project
),
title:
"Project"
do
%i
.icon-home
...
...
@@ -22,7 +22,7 @@
=
nav_link
(
controller:
%w(graph)
)
do
=
link_to
"Network"
,
project_graph_path
(
@project
,
@ref
||
@repository
.
root_ref
)
-
if
@project
.
issues_enabled
-
if
@project
.
issues_enabled
=
nav_link
(
controller:
%w(issues milestones labels)
)
do
=
link_to
url_for_project_issues
do
Issues
...
...
@@ -43,4 +43,9 @@
=
nav_link
(
controller: :wikis
)
do
=
link_to
'Wiki'
,
project_wiki_path
(
@project
,
:index
)
-
if
can?
current_user
,
:admin_project
,
@project
=
nav_link
(
html_options:
{
class:
"
#{
project_tab_class
}
"
})
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
Settings
.content
=
yield
app/views/projects/_project_head.html.haml
View file @
5c4e74ac
%ul
.nav.nav-tabs
=
nav_link
(
path:
'projects#
show
'
)
do
=
link_to
project_path
(
@project
),
class:
"activities-tab tab
"
do
%i
.icon-
home
Show
=
nav_link
(
path:
'projects#
edit
'
)
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab
"
do
%i
.icon-
edit
Edit
=
nav_link
(
controller:
[
:team_members
,
:teams
])
do
=
link_to
project_team_index_path
(
@project
),
class:
"team-tab tab"
do
%i
.icon-user
Team
=
nav_link
(
path:
'projects#files'
)
do
=
link_to
'Attachments'
,
files_project_path
(
@project
),
class:
"files-tab tab"
=
nav_link
(
controller: :snippets
)
do
=
link_to
'Snippets'
,
project_snippets_path
(
@project
),
class:
"snippets-tab tab"
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
project_deploy_keys_path
(
@project
)
do
%span
Deploy Keys
=
nav_link
(
controller: :hooks
)
do
=
link_to
project_hooks_path
(
@project
)
do
%span
Hooks
=
nav_link
(
controller: :services
)
do
=
link_to
project_services_path
(
@project
)
do
%span
Services
-#= nav_link(path: 'projects#files') do
-#= link_to 'Attachments', files_project_path(@project), class: "files-tab tab"
-#= nav_link(controller: :snippets) do
-#= link_to 'Snippets', project_snippets_path(@project), class: "snippets-tab tab"
-
if
can?
current_user
,
:admin_project
,
@project
=
nav_link
(
controller: :deploy_keys
,
html_options:
{
class:
'pull-right'
})
do
=
link_to
project_deploy_keys_path
(
@project
)
do
%span
Deploy Keys
=
nav_link
(
controller: :hooks
,
html_options:
{
class:
'pull-right'
})
do
=
link_to
project_hooks_path
(
@project
)
do
%span
Hooks
=
nav_link
(
controller: :services
,
html_options:
{
class:
'pull-right'
})
do
=
link_to
project_services_path
(
@project
)
do
%span
Services
=
nav_link
(
path:
'projects#edit'
,
html_options:
{
class:
'pull-right'
})
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
%i
.icon-edit
Edit
app/views/projects/show.html.haml
View file @
5c4e74ac
=
render
"project_head"
=
render
'clone_panel'
=
render
"events/event_last_push"
,
event:
@last_push
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment