]> source.dussan.org Git - redmine.git/commitdiff
Use the regular "icon icon-*" on project overview (#24313).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 18 Nov 2016 14:45:33 +0000 (14:45 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 18 Nov 2016 14:45:33 +0000 (14:45 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@15973 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/_members_box.html.erb
app/views/projects/show.html.erb
public/stylesheets/application.css

index 7ac4b2cd7ebca0321649f6512651f6bd13e81ef9..1a088ead4725e273c00b1a0eac378d20d6e2feb1 100644 (file)
@@ -1,6 +1,6 @@
   <% if @users_by_role.any? %>
   <div class="members box">
-    <h3><%=l(:label_member_plural)%></h3>
+    <h3 class="icon icon-group"><%=l(:label_member_plural)%></h3>
     <% @users_by_role.keys.sort.each do |role| %>
       <p><span class="label"><%= role %>:</span> <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ").html_safe %></p>
     <% end %>
index d0d83e2670cf9bf2470b3e8e1e6d43cd17b72ba2..87e398ee497c8722f02b24f152eaa24540c57075 100644 (file)
@@ -36,7 +36,7 @@
 
   <% if User.current.allowed_to?(:view_issues, @project) %>
   <div class="issues box">
-    <h3><%=l(:label_issue_tracking)%></h3>
+    <h3 class="icon icon-issue"><%=l(:label_issue_tracking)%></h3>
     <% if @trackers.present? %>
     <table class="list issue-report">
       <thead>
     </p>
   </div>
   <% end %>
-  
+
   <% if User.current.allowed_to?(:view_time_entries, @project) %>
   <div class="spent_time box">
-    <h3><%= l(:label_spent_time) %></h3>
+    <h3 class="icon icon-time"><%= l(:label_spent_time) %></h3>
     <% if @total_hours.present? %>
       <p><%= l_hours(@total_hours) %></p>
     <% end %>
 
   <% if @news.any? && authorize_for('news', 'index') %>
   <div class="news box">
-    <h3><%=l(:label_news_latest)%></h3>
+    <h3 class="icon icon-news"><%=l(:label_news_latest)%></h3>
     <%= render :partial => 'news/news', :collection => @news %>
     <p><%= link_to l(:label_news_view_all), project_news_index_path(@project) %></p>
   </div>
 
   <% if @subprojects.any? %>
   <div class="projects box">
-    <h3><%=l(:label_subproject_plural)%></h3>
+    <h3 class="icon icon-projects"><%=l(:label_subproject_plural)%></h3>
     <%= @subprojects.collect{|p| link_to p, project_path(p), :class => p.css_classes}.join(", ").html_safe %>
   </div>
   <% end %>
index 0d7553ffc3a7da8a76f14dddd975c99489d62198..63ac5df06c0c019e1422e132588f0534096909c7 100644 (file)
@@ -313,12 +313,6 @@ td.center {text-align:center;}
 
 h3.version { background: url(../images/package.png) no-repeat 0% 50%; padding-left: 20px; }
 
-div.issues h3 { background: url(../images/ticket.png) no-repeat 0% 50%; padding-left: 20px; }
-div.members h3 { background: url(../images/group.png) no-repeat 0% 50%; padding-left: 20px; }
-div.news h3 { background: url(../images/news.png) no-repeat 0% 50%; padding-left: 20px; }
-div.projects h3 { background: url(../images/projects.png) no-repeat 0% 50%; padding-left: 20px; }
-div.spent_time h3 { background: url(../images/time.png) no-repeat 0% 50%; padding-left: 20px; }
-
 #watchers select {width: 95%; display: block;}
 #watchers a.delete {opacity: 0.4; margin-left: 5px;}
 #watchers a.delete:hover {opacity: 1;}
@@ -1210,6 +1204,7 @@ div.wiki img {vertical-align:middle; max-width:100%;}
 .icon-workflows { background-image: url(../images/ticket_go.png); }
 .icon-custom-fields { background-image: url(../images/textfield.png); }
 .icon-plugins { background-image: url(../images/plugin.png); }
+.icon-news { background: url(../images/news.png); }
 
 .icon-file { background-image: url(../images/files/default.png); }
 .icon-file.text-plain { background-image: url(../images/files/text.png); }