Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 363
- Log:
Change layout, views and stylesheet to integrate into wider ROOL site design.
- Author:
- rool
- Date:
- Sat Mar 19 22:04:34 +0000 2011
- Size:
- 3833 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 %> |
22 | <%- if @web -%> |
23 | <%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_headlines'}, |
24 | :title => 'Atom with headlines') %> |
25 | <%= auto_discovery_link_tag(:atom, {:controller => 'wiki', :web => @web.address, :action => 'atom_with_content'}, |
26 | :title => 'Atom with full content') %> |
27 | <%- end -%> |
28 | <link type="text/css" rel="stylesheet" href="/css/risc_os_open_2011.css" media="all" /> |
29 | <%= stylesheet_link_tag 'instiki', :media => 'all' %> |
30 | <%= stylesheet_link_tag 'syntax', :media => 'all' %> |
31 | </head> |
32 | <body> |
33 | <%= render 'shared/fixed_header' %> |
34 | |
35 | <div id="template_main"> |
36 | |
37 | <!-- Main body content --> |
38 | |
39 | <div id="template_body"> |
40 | <div id="template_body_content"> |
41 | <div id="Container"> |
42 | <div id="Content"> |
43 | <%= hubssolib_flash_tags.html_safe -%> |
44 | <% if @error -%> |
45 | |
46 | <div class="errorExplanation"><%= ( escape_preserving_linefeeds(@error) ).html_safe %></div> |
47 | <% end -%> |
48 | |
49 | <% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) -%> |
50 | <h1 id="pageName"> |
51 | <%= h(@web.name) + (@show_diff ? ' (changes)' : '') %> |
52 | </h1> |
53 | <% elsif @web -%> |
54 | <h1 id="pageName"> |
55 | <span class="webName"><%= @web.name %></span> |
56 | </h1> |
57 | <% |
58 | # The ROOL Wiki never showed page titles automatically so content tends to include its own. |
59 | # Omitting them also helps with the fact that an Instiki Web's home page has to be called |
60 | # "HomePage" and it shows that literally in the title, which is ugly. We could call the |
61 | # WikiWords#separate method, but that's been disabled for the I2 converted Wiki since it |
62 | # interferes with technical content too much (e.g. "FileCore" for unknown pages gets shown |
63 | # as "File Core" when defining the page if the separator is left enabled). |
64 | |
65 | if false |
66 | -%> |
67 | <h2><%= @title %></h2> |
68 | <% end -%> |
69 | <% else -%> |
70 | <h1 id="pageName"> |
71 | <%= @title %> |
72 | </h1> |
73 | <% end -%> |
74 | |
75 | <%= @content_for_layout %> |
76 | |
77 | </div> <!-- Content --> |
78 | </div> <!-- Container --> |
79 | |
80 | </div> |
81 | </div> |
82 | |
83 | <!-- Sidebar --> |
84 | |
85 | <div id="template_sidebar"> |
86 | <div id="template_sidebar_content"> |
87 | <%- if params['action'] != 'published' then -%> |
88 | <div class="template_sidebar_node"> |
89 | <h3>Search the Wiki</h3> |
90 | |
91 | <p /> |
92 | <%= render(:file => 'search') unless @web.nil? %> |
93 | </div> |
94 | <%- end -%> |
95 | |
96 | <%= render 'shared/fixed_sidebar' %> |
97 | <%- unless @web.nil? || @hide_navigation -%> |
98 | |
99 | <p /> |
100 | <div class="template_sidebar_node"> |
101 | <h3>Navigation</h3> |
102 | <%= render(:file => 'navigation') %> |
103 | </div> |
104 | <%- end -%> |
105 | </div> |
106 | </div> |
107 | |
108 | <div id="template_main_block_end"></div> |
109 | </div> |
110 | |
111 | <%= render 'shared/fixed_footer' %> |
112 | </body> |
113 | </html> |