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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
0b012d96
Commit
0b012d96
authored
Jul 10, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GroupLinks: Empty Scaffold, routes + sample page
parent
e34eac08
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
0 deletions
+57
-0
app/controllers/projects/group_links_controller.rb
app/controllers/projects/group_links_controller.rb
+16
-0
app/views/projects/_settings_nav.html.haml
app/views/projects/_settings_nav.html.haml
+4
-0
app/views/projects/group_links/index.html.haml
app/views/projects/group_links/index.html.haml
+35
-0
config/routes.rb
config/routes.rb
+2
-0
No files found.
app/controllers/projects/group_links_controller.rb
0 → 100644
View file @
0b012d96
class
Projects::GroupLinksController
<
Projects
::
ApplicationController
layout
'project_settings'
def
index
# TODO: Implement
end
def
create
# TODO: Implement
end
def
destroy
# TODO: Implement
end
end
app/views/projects/_settings_nav.html.haml
View file @
0b012d96
...
...
@@ -19,3 +19,7 @@
=
link_to
project_services_path
(
@project
)
do
%span
Services
=
nav_link
(
controller: :group_links
)
do
=
link_to
project_group_links_path
(
@project
)
do
%span
Groups
app/views/projects/group_links/index.html.haml
0 → 100644
View file @
0b012d96
%h3
.page_title
Share project with groups
%br
%p
Project can be stored in one group at once
%br
However you can share project with other groups here.
.row
.span5.enabled-groups
%h5
Already shared with:
%ul
.bordered-list
-
Group
.
first
(
2
).
each
do
|
group
|
%li
%h5
.pull-left
%a
.btn.btn-small
%i
.icon-remove
=
link_to
group
do
%i
.icon-folder-open
=
group
.
name
.span5.available-groups
%h5
Can be shared with:
%ul
.bordered-list
-
Group
.
last
(
5
).
each
do
|
group
|
%li
%h5
.pull-right
%a
.btn.btn-small
Share
%i
.icon-folder-close
=
group
.
name
config/routes.rb
View file @
0b012d96
...
...
@@ -284,6 +284,8 @@ Gitlab::Application.routes.draw do
end
end
resources
:group_links
,
only:
[
:index
,
:create
,
:destroy
]
resources
:notes
,
only:
[
:index
,
:create
,
:destroy
,
:update
]
do
member
do
delete
:delete_attachment
...
...
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