Commit 20ce3980 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

public_icon, private_icon helpers

parent 4a344c16
......@@ -422,3 +422,9 @@ img.emoji {
.search-container {
margin-top: 30px;
}
.description-block {
@extend .light-well;
@extend .light;
margin-bottom: 10px;
}
......@@ -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
......@@ -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"
......
......@@ -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"
......
......@@ -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
......
......@@ -62,5 +62,6 @@
%fieldset
%legend Owner
%ul
%li Switch public mode
%li Transfer project to another namespace
%li Remove project
%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)
......
......@@ -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
......
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