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
Tatuya Kamada
gitlab-ce
Commits
eb162c2b
Commit
eb162c2b
authored
Dec 23, 2015
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adds settings menu to the top for editting and leaving projects
parent
47fbba44
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
9 deletions
+25
-9
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+7
-0
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+17
-4
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-5
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
eb162c2b
...
...
@@ -26,6 +26,13 @@
}
.project-home-panel
{
.cover-controls
{
.project-settings-dropdown
{
margin-left
:
10px
;
}
}
.project-identicon-holder
{
margin-bottom
:
16px
;
...
...
app/views/projects/_home_panel.html.haml
View file @
eb162c2b
...
...
@@ -18,13 +18,26 @@
=
visibility_level_label
(
@project
.
visibility_level
)
.cover-controls
-
if
can?
(
current_user
,
:admin_project
,
@project
)
=
link_to
edit_project_path
(
@project
),
class:
'btn btn-gray'
do
=
icon
(
'pencil'
)
-
if
current_user
=
link_to
namespace_project_path
(
@project
.
namespace
,
@project
,
format: :atom
,
private_token:
current_user
.
private_token
),
class:
'btn btn-gray'
do
=
icon
(
'rss'
)
-
access
=
user_max_access_in_project
(
current_user
.
id
,
@project
)
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
-
if
access
||
can_edit
%span
.dropdown.project-settings-dropdown
%a
.dropdown-new.btn.btn-gray.notifications-btn
#notifications-button
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
=
icon
(
'cog'
)
=
icon
(
'angle-down'
)
%ul
.dropdown-menu.dropdown-menu-right
-
if
can_edit
%li
=
link_to
edit_project_path
(
@project
)
do
Edit Project
-
if
access
%li
=
link_to
leave_namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
data:
{
confirm:
leave_project_message
(
@project
)
},
method: :delete
,
title:
'Leave project'
do
Leave project
.project-repo-buttons
.split-one.count-buttons
...
...
app/views/projects/show.html.haml
View file @
eb162c2b
...
...
@@ -76,7 +76,3 @@
.prepend-top-20.project-footer
.gray-content-block.footer-block.center
You have
#{
access
}
access to this project.
\ No newline at end of file
-
if
@project
.
project_member_by_id
(
current_user
)
=
link_to
leave_namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
data:
{
confirm:
leave_project_message
(
@project
)
},
method: :delete
,
title:
'Leave project'
,
class:
'cred'
do
Leave this project
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