]> source.dussan.org Git - redmine.git/commitdiff
Replaces news icon with SVG icon (#23980).
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 3 Sep 2024 05:35:14 +0000 (05:35 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 3 Sep 2024 05:35:14 +0000 (05:35 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@23012 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/assets/stylesheets/application.css
app/views/projects/show.html.erb

index c733662dca1db6948a101262548eaa39b5b5c205..389cca72c98399ad96d2ebffda4943b053a885f9 100644 (file)
@@ -1736,7 +1736,7 @@ span.icon-label {
 .icon-workflows { background-image: url(/ticket_go.png); }
 .icon-custom-fields { background-image: url(/textfield.png); }
 .icon-plugins { background-image: url(/plugin.png); }
-.icon-news { background-image: url(/news.png); }
+.icon-news:not(:has(svg)) { background-image: url(/news.png); }
 .icon-issue-closed { background-image: url(/ticket_checked.png); }
 .icon-issue-note { background-image: url(/ticket_note.png); }
 .icon-changeset { background-image: url(/changeset.png); }
index abb5ec23fa881bc8b6e259a724e446bf41fd23e9..ed2f904ee29eb24128a2c1163b6f436b43aaf376 100644 (file)
 <div class="splitcontentright">
   <% if @news.any? && authorize_for('news', 'index') %>
   <div class="news box">
-    <h3 class="icon icon-news"><%=l(:label_news_latest)%></h3>
+    <h3 class="icon icon-news"><%= icon_with_label('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>