Project

General

Profile

Patch #1473 » news_code_syntax_highlighting.patch

Chris Peterson, 2008-06-16 21:17

View differences:

app/views/news/edit.rhtml (working copy)
:with => "Form.serialize('news-form')"
}, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>
<div id="preview" class="wiki">
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
</div>
app/views/news/index.rhtml (working copy)
<% 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)) -%>
app/views/news/new.rhtml (working copy)
:with => "Form.serialize('news-form')"
}, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>
<div id="preview" class="wiki">
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
</div>
app/views/news/show.rhtml (working copy)
}, :accesskey => accesskey(:preview) %> |
<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("edit-news")' %>
<% end %>
<div id="preview" class="wiki"></div>
<div id="preview" class="wiki">
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
</div>
</div>
<p><em><% unless @news.summary.blank? %><%=h @news.summary %><br /><% end %>
<span class="author"><%= authoring @news.created_on, @news.author %></span></em></p>
<div class="wiki">
<%= textilizable(@news.description) %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
</div>
<br />
(3-3/4)