summaryrefslogtreecommitdiffstats
path: root/app/views/news
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-20 02:55:37 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-20 02:55:37 +0000
commit1a4f5e87f2839fa2260deefd4d9a5c992ef860fe (patch)
tree9f89ff7eff3d74b79c82bb157074b79d84970415 /app/views/news
parente58513c9767a2eafb3a101b3e466e41a85918edd (diff)
downloadredmine-1a4f5e87f2839fa2260deefd4d9a5c992ef860fe.tar.gz
redmine-1a4f5e87f2839fa2260deefd4d9a5c992ef860fe.zip
Add scm.css to news pages to allow proper syntax highlighting. #6270
Contributed by Holger Just. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4107 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r--app/views/news/edit.rhtml4
-rw-r--r--app/views/news/index.rhtml1
2 files changed, 5 insertions, 0 deletions
diff --git a/app/views/news/edit.rhtml b/app/views/news/edit.rhtml
index 4be566e0b..04d64df1f 100644
--- a/app/views/news/edit.rhtml
+++ b/app/views/news/edit.rhtml
@@ -12,3 +12,7 @@
}, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>
+
+<% content_for :header_tags do %>
+ <%= stylesheet_link_tag 'scm' %>
+<% end %>
diff --git a/app/views/news/index.rhtml b/app/views/news/index.rhtml
index 8b7cc66e1..41e8bb355 100644
--- a/app/views/news/index.rhtml
+++ b/app/views/news/index.rhtml
@@ -45,6 +45,7 @@
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
+ <%= stylesheet_link_tag 'scm' %>
<% end %>
<% html_title(l(:label_news_plural)) -%>