Patch #1473 » news_code_syntax_highlighting.patch
| app/views/news/edit.rhtml (working copy) | ||
|---|---|---|
| 11 | 11 |
:with => "Form.serialize('news-form')"
|
| 12 | 12 |
}, :accesskey => accesskey(:preview) %> |
| 13 | 13 |
<% end %> |
| 14 |
<div id="preview" class="wiki"></div> |
|
| 14 |
<div id="preview" class="wiki"> |
|
| 15 |
<% content_for :header_tags do %> |
|
| 16 |
<%= stylesheet_link_tag 'scm' %> |
|
| 17 |
<% end %> |
|
| 18 |
</div> |
|
| app/views/news/index.rhtml (working copy) | ||
|---|---|---|
| 46 | 46 | |
| 47 | 47 |
<% content_for :header_tags do %> |
| 48 | 48 |
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
|
| 49 |
<%= stylesheet_link_tag 'scm' %> |
|
| 49 | 50 |
<% end %> |
| 50 | 51 | |
| 51 | 52 |
<% html_title(l(:label_news_plural)) -%> |
| app/views/news/new.rhtml (working copy) | ||
|---|---|---|
| 11 | 11 |
:with => "Form.serialize('news-form')"
|
| 12 | 12 |
}, :accesskey => accesskey(:preview) %> |
| 13 | 13 |
<% end %> |
| 14 |
<div id="preview" class="wiki"></div> |
|
| 14 |
<div id="preview" class="wiki"> |
|
| 15 |
<% content_for :header_tags do %> |
|
| 16 |
<%= stylesheet_link_tag 'scm' %> |
|
| 17 |
<% end %> |
|
| 18 |
</div> |
|
| app/views/news/show.rhtml (working copy) | ||
|---|---|---|
| 22 | 22 |
}, :accesskey => accesskey(:preview) %> | |
| 23 | 23 |
<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("edit-news")' %>
|
| 24 | 24 |
<% end %> |
| 25 |
<div id="preview" class="wiki"></div> |
|
| 25 |
<div id="preview" class="wiki"> |
|
| 26 |
<% content_for :header_tags do %> |
|
| 27 |
<%= stylesheet_link_tag 'scm' %> |
|
| 28 |
<% end %> |
|
| 26 | 29 |
</div> |
| 30 |
</div> |
|
| 27 | 31 | |
| 28 | 32 |
<p><em><% unless @news.summary.blank? %><%=h @news.summary %><br /><% end %> |
| 29 | 33 |
<span class="author"><%= authoring @news.created_on, @news.author %></span></em></p> |
| 30 | 34 |
<div class="wiki"> |
| 31 | 35 |
<%= textilizable(@news.description) %> |
| 36 |
<% content_for :header_tags do %> |
|
| 37 |
<%= stylesheet_link_tag 'scm' %> |
|
| 38 |
<% end %> |
|
| 32 | 39 |
</div> |
| 33 | 40 |
<br /> |
| 34 | 41 | |