Commit 05de390fd872b8aae48cd0f53b5edd308a18e51d

Authored by Dmitriy Zaporozhets
1 parent fd6fc422

Style project visibility icons on dashboard

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/sections/dashboard.scss
... ... @@ -66,7 +66,7 @@
66 66 }
67 67  
68 68 .project-row, .group-row {
69   - padding: 10px 15px !important;
  69 + padding: 10px 12px !important;
70 70  
71 71 .namespace-name {
72 72 color: #666;
... ... @@ -122,3 +122,13 @@
122 122 color: #BBB;
123 123 }
124 124 }
  125 +
  126 +.dash-project-access-icon {
  127 + float: left;
  128 + margin-right: 10px;
  129 + font-size: 18px;
  130 + color: #BBB;
  131 + margin-bottom: 10px;
  132 + margin-top: 2px;
  133 + width: 16px;
  134 +}
... ...
app/views/dashboard/_project.html.haml
1 1 = link_to project_path(project), class: dom_class(project) do
2   - = visibility_level_icon(project.visibility_level)
  2 + .dash-project-access-icon
  3 + = visibility_level_icon(project.visibility_level)
3 4 %span.namespace-name
4 5 - if project.namespace
5 6 = project.namespace.human_name
... ...
app/views/groups/_projects.html.haml
... ... @@ -12,7 +12,8 @@
12 12 - projects.each do |project|
13 13 %li.project-row
14 14 = link_to project_path(project), class: dom_class(project) do
15   - = visibility_level_icon(project.visibility_level)
  15 + .dash-project-access-icon
  16 + = visibility_level_icon(project.visibility_level)
16 17 %span.project-name
17 18 = truncate(project.name, length: 25)
18 19 %span.arrow
... ...