Commit 20ce3980d3f06784a0bf617ef6d3b898ed2f1e54
1 parent
4a344c16
Exists in
master
and in
4 other branches
public_icon, private_icon helpers
Showing
8 changed files
with
24 additions
and
8 deletions
Show diff stats
app/assets/stylesheets/common.scss
app/helpers/application_helper.rb
| ... | ... | @@ -202,4 +202,13 @@ module ApplicationHelper |
| 202 | 202 | def extra_config |
| 203 | 203 | Gitlab.config.extra |
| 204 | 204 | end |
| 205 | + | |
| 206 | + def public_icon | |
| 207 | + content_tag :i, nil, class: 'icon-globe cblue' | |
| 208 | + end | |
| 209 | + | |
| 210 | + def private_icon | |
| 211 | + content_tag :i, nil, class: 'icon-lock cgreen' | |
| 212 | + end | |
| 213 | + | |
| 205 | 214 | end | ... | ... |
app/views/admin/projects/index.html.haml
| ... | ... | @@ -47,9 +47,9 @@ |
| 47 | 47 | - @projects.each do |project| |
| 48 | 48 | %li |
| 49 | 49 | - if project.public |
| 50 | - %i.icon-share | |
| 50 | + = public_icon | |
| 51 | 51 | - else |
| 52 | - %i.icon-lock.cgreen | |
| 52 | + = private_icon | |
| 53 | 53 | = link_to project.name_with_namespace, [:admin, project] |
| 54 | 54 | .pull-right |
| 55 | 55 | = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" | ... | ... |
app/views/groups/edit.html.haml
| ... | ... | @@ -19,9 +19,9 @@ |
| 19 | 19 | - @group.projects.each do |project| |
| 20 | 20 | %li |
| 21 | 21 | - if project.public |
| 22 | - %i.icon-share | |
| 22 | + = public_icon | |
| 23 | 23 | - else |
| 24 | - %i.icon-lock.cgreen | |
| 24 | + = private_icon | |
| 25 | 25 | = link_to project.name_with_namespace, project |
| 26 | 26 | .pull-right |
| 27 | 27 | = link_to 'Team', project_team_index_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small" | ... | ... |
app/views/groups/show.html.haml
app/views/help/permissions.html.haml
app/views/snippets/_snippet.html.haml
app/views/teams/show.html.haml