Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 372
- Log:
Reinstated automatic section numbering JS code from I2. Although
manual numbering isn't possible since JavaScript isn't allowed
inside pages, the automatic code works fine.
- Author:
- rool
- Date:
- Mon Mar 21 12:10:24 +0000 2011
- Size:
- 3880 Bytes
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 | |
4 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
5 | <head> |
6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
7 | <meta name="robots" content="<%= @robots_metatag_value %>" /> |
8 | <%= ( csrf_meta_tag || '' ).gsub( /^/, ' ' ) %> |
9 | |
10 | <title> |
11 | <%- if @page and (@page.name == 'HomePage') and (%w( show published print ).include?(params['action'])) -%> |
12 | <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> |
13 | <%- elsif @web -%> |
14 | <%= @title %> in <%= h @web.name %> |
15 | <%- else -%> |
16 | <%= @title %> |
17 | <%- end -%> |
18 | </title> |
19 | |
20 | <%= javascript_include_tag 'page_helper' %> |
21 | <%=(javascript_include_tag :defaults).gsub(/^/, ' ') %> |
22 | <%= javascript_include_tag 'auto_sections' %> |
23 | <% if @web -%> |
24 | <%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_headlines'}, |
25 | :title => 'Atom with headlines') %> |
26 | <%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_content'}, |
27 | :title => 'Atom with full content') %> |
28 | <% end -%> |
29 | <link type="text/css" rel="stylesheet" href="/css/risc_os_open_2011.css" media="all" /> |
30 | <%= stylesheet_link_tag 'instiki', :media => 'all' %> |
31 | <%= stylesheet_link_tag 'syntax', :media => 'all' %> |
32 | </head> |
33 | <body> |
34 | <%= render 'shared/fixed_header' %> |
35 | |
36 | <div id="template_main"> |
37 | |
38 | <!-- Main body content --> |
39 | |
40 | <div id="template_body"> |
41 | <div id="template_body_content"> |
42 | <div id="Container"> |
43 | <div id="Content"> |
44 | <%= hubssolib_flash_tags.html_safe -%> |
45 | <% if @error -%> |
46 | |
47 | <div class="errorExplanation"><%= ( escape_preserving_linefeeds(@error) ).html_safe %></div> |
48 | <% end -%> |
49 | |
50 | <% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) -%> |
51 | <h1 id="pageName"> |
52 | <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> |
53 | </h1> |
54 | <% elsif @web -%> |
55 | <h1 id="pageName"> |
56 | <span class="webName"><%= @web.name %></span> |
57 | </h1> |
58 | <% |
59 | # The ROOL Wiki never showed page titles automatically so content tends to include its own. |
60 | # Omitting them also helps with the fact that an Instiki Web's home page has to be called |
61 | # "HomePage" and it shows that literally in the title, which is ugly. We could call the |
62 | # WikiWords#separate method, but that's been disabled for the I2 converted Wiki since it |
63 | # interferes with technical content too much (e.g. "FileCore" for unknown pages gets shown |
64 | # as "File Core" when defining the page if the separator is left enabled). |
65 | |
66 | if false |
67 | -%> |
68 | <h2><%= @title %></h2> |
69 | <% end -%> |
70 | <% else -%> |
71 | <h1 id="pageName"> |
72 | <%= @title %> |
73 | </h1> |
74 | <% end -%> |
75 | |
76 | <%= @content_for_layout %> |
77 | |
78 | </div> <!-- Content --> |
79 | </div> <!-- Container --> |
80 | |
81 | </div> |
82 | </div> |
83 | |
84 | <!-- Sidebar --> |
85 | |
86 | <div id="template_sidebar"> |
87 | <div id="template_sidebar_content"> |
88 | <%- if params['action'] != 'published' then -%> |
89 | <div class="template_sidebar_node"> |
90 | <h3>Search the Wiki</h3> |
91 | |
92 | <p /> |
93 | <%= render(:file => 'search') unless @web.nil? %> |
94 | </div> |
95 | <%- end -%> |
96 | |
97 | <%= render 'shared/fixed_sidebar' %> |
98 | <%- unless @web.nil? || @hide_navigation -%> |
99 | |
100 | <p /> |
101 | <div class="template_sidebar_node"> |
102 | <h3>Navigation</h3> |
103 | <%= render(:file => 'navigation') %> |
104 | </div> |
105 | <%- end -%> |
106 | </div> |
107 | </div> |
108 | |
109 | <div id="template_main_block_end"></div> |
110 | </div> |
111 | |
112 | <%= render 'shared/fixed_footer' %> |
113 | </body> |
114 | </html> |