From 7841e933d4389b9619dd96c38b1229e5a973f223 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Tue, 3 Sep 2024 05:35:14 +0000 Subject: Replaces news icon with SVG icon (#23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23012 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/assets/stylesheets/application.css | 2 +- app/views/projects/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index c733662dc..389cca72c 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -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); } diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index abb5ec23f..ed2f904ee 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -123,7 +123,7 @@
<% if @news.any? && authorize_for('news', 'index') %>
-

<%=l(:label_news_latest)%>

+

<%= icon_with_label('news', l(:label_news_latest))%>

<%= render :partial => 'news/news', :collection => @news %>

<%= link_to l(:label_news_view_all), project_news_index_path(@project) %>

-- cgit v1.2.3