Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-29 22:30:20 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-29 22:30:20 +0400
commit5b26b45dcbba8ee11177eef348502bd2ea3b037f (patch)
treeab0c6cedba56b701080dd7062ce4fffefff75664 /app/views/groups/projects.html.haml
parente6f1eef47858e21dad9526a45586c609f8dea5e8 (diff)
Improve group settings UI
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/groups/projects.html.haml')
-rw-r--r--app/views/groups/projects.html.haml29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/groups/projects.html.haml b/app/views/groups/projects.html.haml
new file mode 100644
index 00000000000..a5e752d776f
--- /dev/null
+++ b/app/views/groups/projects.html.haml
@@ -0,0 +1,29 @@
+.row
+ .col-md-2
+ = render 'settings_nav'
+ .col-md-10
+ .panel.panel-default
+ .panel-heading
+ %strong= @group.name
+ projects:
+ - if can? current_user, :manage_group, @group
+ .panel-head-actions
+ = link_to new_project_path(namespace_id: @group.id), class: "btn btn-new" do
+ %i.icon-plus
+ New Project
+ %ul.well-list
+ - @projects.each do |project|
+ %li
+ .list-item-name
+ = visibility_level_icon(project.visibility_level)
+ %strong= link_to project.name_with_namespace, project
+ %span.label.label-gray
+ = repository_size(project)
+ .pull-right
+ = link_to 'Members', project_team_index_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
+ = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
+ = link_to 'Remove', project, data: { confirm: remove_project_message(project)}, method: :delete, class: "btn btn-small btn-remove"
+ - if @projects.blank?
+ .nothing-here-block This group has no projects yet
+
+ = paginate @projects, theme: "gitlab"