Project

General

Profile

Patch #24313 » 02_use_regular_icons_in_overview_tab_v2.patch

Marius BĂLTEANU, 2016-11-12 15:06

View differences:

app/views/projects/_members_box.html.erb
1 1
  <% if @users_by_role.any? %>
2 2
  <div class="members box">
3
    <h3><%=l(:label_member_plural)%></h3>
3
    <h3 class="icon icon-group"><%=l(:label_member_plural)%></h3>
4 4
    <% @users_by_role.keys.sort.each do |role| %>
5 5
      <p><span class="label"><%= role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
6 6
    <% end %>
app/views/projects/show.html.erb
36 36
  <% if User.current.allowed_to?(:view_issues, @project) %>
37 37
  <div class="issues box">
38
    <h3><%=l(:label_issue_tracking)%></h3>
38
    <h3 class="icon icon-issue"><%=l(:label_issue_tracking)%></h3>
39 39
    <% if @trackers.present? %>
40 40
    <table class="list issue-report">
41 41
      <thead>
......
78 78
    </p>
79 79
  </div>
80 80
  <% end %>
81

  
81

  
82 82
  <% if User.current.allowed_to?(:view_time_entries, @project) %>
83 83
  <div class="spent_time box">
84
    <h3><%= l(:label_spent_time) %></h3>
84
    <h3 class="icon icon-time"><%= l(:label_spent_time) %></h3>
85 85
    <% if @total_hours.present? %>
86 86
      <p><%= l_hours(@total_hours) %></p>
87 87
    <% end %>
......
102 102
  <% if @news.any? && authorize_for('news', 'index') %>
103 103
  <div class="news box">
104
    <h3><%=l(:label_news_latest)%></h3>
104
    <h3 class="icon icon-news"><%=l(:label_news_latest)%></h3>
105 105
    <%= render :partial => 'news/news', :collection => @news %>
106 106
    <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
107 107
  </div>
......
110 110
  <% if @subprojects.any? %>
111 111
  <div class="projects box">
112
    <h3><%=l(:label_subproject_plural)%></h3>
112
    <h3 class="icon icon-projects"><%=l(:label_subproject_plural)%></h3>
113 113
    <%= @subprojects.collect{|p| link_to p, project_path(p), :class => p.css_classes}.join(", ").html_safe %>
114 114
  </div>
115 115
  <% end %>
public/stylesheets/application.css
313 313
h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; }
314
div.issues h3 { background: url(../images/ticket.png) no-repeat 0% 50%; padding-left: 20px; }
315
div.members h3 { background: url(../images/group.png) no-repeat 0% 50%; padding-left: 20px; }
316
div.news h3 { background: url(../images/news.png) no-repeat 0% 50%; padding-left: 20px; }
317
div.projects h3 { background: url(../images/projects.png) no-repeat 0% 50%; padding-left: 20px; }
318
div.spent_time h3 { background: url(../images/time.png) no-repeat 0% 50%; padding-left: 20px; }
319

  
320 314
#watchers select {width: 95%; display: block;}
321 315
#watchers a.delete {opacity: 0.4; margin-left: 5px;}
322 316
#watchers a.delete:hover {opacity: 1;}
......
1210 1204
.icon-workflows { background-image: url(../images/ticket_go.png); }
1211 1205
.icon-custom-fields { background-image: url(../images/textfield.png); }
1212 1206
.icon-plugins { background-image: url(../images/plugin.png); }
1207
.icon-news { background-image: url(../images/news.png); }
1213 1208
.icon-file { background-image: url(../images/files/default.png); }
1214 1209
.icon-file.text-plain { background-image: url(../images/files/text.png); }
(8-8/9)