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
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-18 22:31:43 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-18 22:31:43 +0400
commite9d8d074a12007ba23b198a2587e31456c3d6a18 (patch)
treeec3c0cc831fc73cd1b4ab0ba45c5892d93170ae9 /app
parent655e68a0adc391013bea1dd4ef3838edde7c3f97 (diff)
no projects message in group area
Diffstat (limited to 'app')
-rw-r--r--app/views/groups/_filter.html.haml2
-rw-r--r--app/views/groups/_people_filter.html.haml2
-rw-r--r--app/views/groups/edit.html.haml2
-rw-r--r--app/views/teams/edit.html.haml43
4 files changed, 32 insertions, 17 deletions
diff --git a/app/views/groups/_filter.html.haml b/app/views/groups/_filter.html.haml
index c14fc8e5e4b..5c66f977531 100644
--- a/app/views/groups/_filter.html.haml
+++ b/app/views/groups/_filter.html.haml
@@ -26,6 +26,8 @@
= link_to group_filter_path(entity, project_id: project.id) do
= project.name_with_namespace
%small.pull-right= entities_per_project(project, entity)
+ - if @projects.blank?
+ %p.nothing_here_message This group has no projects yet
%fieldset
%hr
diff --git a/app/views/groups/_people_filter.html.haml b/app/views/groups/_people_filter.html.haml
index 901a037adf3..ee63743eb4f 100644
--- a/app/views/groups/_people_filter.html.haml
+++ b/app/views/groups/_people_filter.html.haml
@@ -7,6 +7,8 @@
= link_to people_group_path(@group, project_id: project.id) do
= project.name_with_namespace
%small.pull-right= project.users.count
+ - if @projects.blank?
+ %p.nothing_here_message This group has no projects yet
%fieldset
%hr
diff --git a/app/views/groups/edit.html.haml b/app/views/groups/edit.html.haml
index 7202ef26c70..41ebf60698b 100644
--- a/app/views/groups/edit.html.haml
+++ b/app/views/groups/edit.html.haml
@@ -30,6 +30,8 @@
= link_to 'Team', 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, confirm: "REMOVE #{project.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
+ - if @group.projects.blank?
+ %p.nothing_here_message This group has no projects yet
.span5
.ui-box
diff --git a/app/views/teams/edit.html.haml b/app/views/teams/edit.html.haml
index 3435583600d..751fe94c654 100644
--- a/app/views/teams/edit.html.haml
+++ b/app/views/teams/edit.html.haml
@@ -1,20 +1,29 @@
%h3.page_title= "Edit Team #{@team.name}"
%hr
-= form_for @team, url: team_path(@team) do |f|
- - if @team.errors.any?
- .alert.alert-error
- %span= @team.errors.full_messages.first
- .clearfix
- = f.label :name do
- Team name is
- .input
- = f.text_field :name, placeholder: "Ex. OpenSource", class: "xxlarge left"
+.row
+ .span7
+ = form_for @team, url: team_path(@team) do |f|
+ - if @team.errors.any?
+ .alert.alert-error
+ %span= @team.errors.full_messages.first
+ .clearfix
+ = f.label :name do
+ Team name is
+ .input
+ = f.text_field :name, placeholder: "Ex. OpenSource", class: "xlarge left"
+
+ .clearfix
+ = f.label :path do
+ Team path is
+ .input
+ = f.text_field :path, placeholder: "opensource", class: "xlarge left"
+ .form-actions
+ = f.submit 'Save team changes', class: "btn btn-save"
+ .span5
+ .ui-box
+ %h5.title Remove team
+ .padded.bgred
+ %p
+ Removed team can not be restored!
+ = link_to 'Remove team', team_path(@team), method: :delete, confirm: "You are sure?", class: "btn btn-remove btn-small"
- .clearfix
- = f.label :path do
- Team path is
- .input
- = f.text_field :path, placeholder: "opensource", class: "xxlarge left"
- .form-actions
- = f.submit 'Save team changes', class: "btn btn-primary"
- = link_to 'Delete team', team_path(@team), method: :delete, confirm: "You are shure?", class: "btn btn-remove pull-right"