diff options
-rw-r--r-- | app/assets/stylesheets/common.scss | 6 | ||||
-rw-r--r-- | app/helpers/application_helper.rb | 9 | ||||
-rw-r--r-- | app/views/admin/projects/index.html.haml | 4 | ||||
-rw-r--r-- | app/views/groups/edit.html.haml | 4 | ||||
-rw-r--r-- | app/views/groups/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/help/permissions.html.haml | 1 | ||||
-rw-r--r-- | app/views/snippets/_snippet.html.haml | 4 | ||||
-rw-r--r-- | app/views/teams/show.html.haml | 2 |
8 files changed, 24 insertions, 8 deletions
diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 4cbd9d8758c..50dd6e4e4e7 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -422,3 +422,9 @@ img.emoji { .search-container { margin-top: 30px; } + +.description-block { + @extend .light-well; + @extend .light; + margin-bottom: 10px; +} diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 488a55b2e6c..7af74a9f719 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -202,4 +202,13 @@ module ApplicationHelper def extra_config Gitlab.config.extra end + + def public_icon + content_tag :i, nil, class: 'icon-globe cblue' + end + + def private_icon + content_tag :i, nil, class: 'icon-lock cgreen' + end + end diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml index 59831d83cc2..af65a868b5c 100644 --- a/app/views/admin/projects/index.html.haml +++ b/app/views/admin/projects/index.html.haml @@ -47,9 +47,9 @@ - @projects.each do |project| %li - if project.public - %i.icon-share + = public_icon - else - %i.icon-lock.cgreen + = private_icon = link_to project.name_with_namespace, [:admin, project] .pull-right = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" diff --git a/app/views/groups/edit.html.haml b/app/views/groups/edit.html.haml index 0f8c140c067..aaedcc585c1 100644 --- a/app/views/groups/edit.html.haml +++ b/app/views/groups/edit.html.haml @@ -19,9 +19,9 @@ - @group.projects.each do |project| %li - if project.public - %i.icon-share + = public_icon - else - %i.icon-lock.cgreen + = private_icon = link_to project.name_with_namespace, project .pull-right = link_to 'Team', project_team_index_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 1ce008f7e85..8afc4ab4a12 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -13,7 +13,7 @@ .loading.hide .side.span4 - if @group.description.present? - .description.well.well-small.light + .description-block = @group.description = render "projects", projects: @projects .prepend-top-20 diff --git a/app/views/help/permissions.html.haml b/app/views/help/permissions.html.haml index 2075753e82a..a04d9d34fd9 100644 --- a/app/views/help/permissions.html.haml +++ b/app/views/help/permissions.html.haml @@ -62,5 +62,6 @@ %fieldset %legend Owner %ul + %li Switch public mode %li Transfer project to another namespace %li Remove project diff --git a/app/views/snippets/_snippet.html.haml b/app/views/snippets/_snippet.html.haml index 1256236ed94..194eb051ee3 100644 --- a/app/views/snippets/_snippet.html.haml +++ b/app/views/snippets/_snippet.html.haml @@ -1,9 +1,9 @@ %li .snippet-title - if snippet.private? - %i.icon-lock.cgreen + = private_icon - else - %i.icon-globe.cblue + = public_icon = link_to reliable_snippet_path(snippet) do %h5.inline = truncate(snippet.title, length: 60) diff --git a/app/views/teams/show.html.haml b/app/views/teams/show.html.haml index 2ad7f743010..8582f85a2b5 100644 --- a/app/views/teams/show.html.haml +++ b/app/views/teams/show.html.haml @@ -12,7 +12,7 @@ .loading.hide .side.span4 - if @team.description.present? - .description.well.well-small.light + .description-block = @team.description = render "projects", projects: @projects .prepend-top-20 |