Commit 0b012d96 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

GroupLinks: Empty Scaffold, routes + sample page

parent e34eac08
class Projects::GroupLinksController < Projects::ApplicationController
layout 'project_settings'
def index
# TODO: Implement
end
def create
# TODO: Implement
end
def destroy
# TODO: Implement
end
end
......@@ -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
%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
&nbsp;
= 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
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment