.search-container {
margin-top: 30px;
}
+
+.description-block {
+ @extend .light-well;
+ @extend .light;
+ margin-bottom: 10px;
+}
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
- @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"
- @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"
.loading.hide
.side.span4
- if @group.description.present?
- .description.well.well-small.light
+ .description-block
= @group.description
= render "projects", projects: @projects
.prepend-top-20
%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)
.loading.hide
.side.span4
- if @team.description.present?
- .description.well.well-small.light
+ .description-block
= @team.description
= render "projects", projects: @projects
.prepend-top-20