Changesets can be listed by changeset number.
The Git repository is here.
Changeset 90
Updated I2 installation to site-wide look and feel. Uses shared templates.
Application helper changed to alter style of page headings.
- Comitted by: adh
- Date: Monday October 16 16:23:09 2006 (over 18 years ago)
Affected files:
- rool/rails/i2/trunk/app/views/shared/
- rool/rails/i2/trunk/app/views/shared/_powered.rhtml
- rool/rails/i2/trunk/app/views/shared/_theme.rhtml
- rool/rails/i2/trunk/app/views/versions/_wiki_words_help.rhtml
- rool/rails/i2/trunk/app/helpers/application_helper.rb (diff)
- rool/rails/i2/trunk/app/views/books/feed.rxml (diff)
- rool/rails/i2/trunk/app/views/layouts/application.rhtml (diff)
- rool/rails/i2/trunk/app/views/versions/_textile_help.rhtml (diff)
- rool/rails/i2/trunk/app/views/versions/new.rhtml (diff)
- rool/rails/i2/trunk/app/views/versions/show.rhtml (diff)
- rool/rails/i2/trunk/public/stylesheets/instiki.css (diff)
rool/rails/i2/trunk/app/helpers/application_helper.rb:
prev. | current | |
@title | ||
end | ||
end | ||
17 | | |
17 | ||
def page_heading | ||
if @page && (@page.title == 'Home Page') && (%w( show published print ).include?(@controller.action_name)) | ||
@book.name | ||
elsif @book | ||
22 | | |
22 | link_to(@book.name + ':', :controller => '/') + ' ' + @title | |
else | ||
@title | ||
end | ||
... | ... | |
def differences(original, new) | ||
HTMLDiff.diff(original, new) | ||
end | ||
39 | | |
39 | ||
def link_to_author(author) | ||
link_to(author.name, page_url(:page_title => author)) + " (#{author.ip})" | ||
end | ||
43 | | |
43 | ||
private | ||
def linkize(body, existing_titles) | ||
body.gsub(Version::PAGE_LINK) do |
rool/rails/i2/trunk/app/views/books/feed.rxml:
prev. | current | |
xml.channel do | ||
xml.title(@book.name) | ||
xml.link(home_url) | ||
6 | | |
6 | xml.description "ROOL I2 Wiki: Tracking all versions for #{@book.name}" | |
xml.language "en-us" | ||
xml.ttl "40" | ||
rool/rails/i2/trunk/app/views/layouts/application.rhtml:
prev. | current | |
1 | ||
2 | | |
3 | | |
4 | ||
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
6 | ||
7 | | |
3 | <head> | |
4 | <title><%= page_title %></title> | |
9 | | |
6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
7 | <%= auto_discovery_link_tag(:rss, feed_url) %> | |
8 | <%= stylesheet_link_tag 'instiki' %> | |
9 | <%= content_tag "style", @style_additions, :type => "text/css" %> | |
10 | </head> | |
11 | | |
12 | <body> | |
13 | <%= render 'shared/fixed_header' %> | |
13 | | |
14 | | |
15 | | |
16 | | |
15 | <!-- Wiki contents table --> | |
18 | | |
19 | | |
20 | | |
21 | | |
17 | <p /> | |
18 | <table width="85%" cellspacing="0" cellpadding="0" align="center"> | |
19 | <tr valign="top" align="left"> | |
20 | <td width="75%"> | |
21 | <div id="Container"> | |
22 | <div id="Content"> | |
23 | <h2 id="pageName"><%= page_heading %></h2> | |
23 | | |
24 | | |
25 | ||
25 | <div class="navigation"> | |
26 | <%= link_to_unless(@page && @page.title == "Home Page", "Documentation Home", home_url) { content_tag('b', "Documentation Home", 'class' => 'navOn') } %> | | |
27 | <%= link_to_unless(@title == "All Pages", "All Pages", pages_url) { content_tag('b', "All Pages", 'class' => 'navOn') } %> | | |
28 | <%= link_to_unless(@title == "Recently Revised", "Recently Revised", recent_url) { content_tag('b', "Recently Revised", 'class' => 'navOn') } %> | | |
29 | <%= link_to("Feed", feed_url) %> | |
30 | </div> | |
27 | ||
28 | | |
29 | | |
30 | | |
32 | <p /> | |
33 | <%= @content_for_layout %> | |
34 | </div> | |
35 | </div> | |
36 | </td> | |
32 | | |
33 | | |
34 | | |
35 | | |
36 | | |
37 | | |
38 | <td> </td> | |
39 | <td bgcolor="#bbbbbb" class="column_divider"><img src="/images/utilities/blank.gif" width="1" height="1" alt="." border="0" /></td> | |
40 | <td> </td> | |
39 | | |
42 | <td width="25%"> | |
43 | <div id="sidebar"> | |
44 | <!-- Simple global search via Google --> | |
41 | | |
42 | | |
43 | | |
44 | | |
45 | | |
46 | ||
47 | ||
46 | <div class="sidebar-node"> | |
47 | <h3>Search whole site</h3> | |
48 | ||
49 | <p /> | |
50 | <form action="http://www.google.com/search" method="get" class="searchform"> | |
51 | <input type="hidden" name="num" value="10" /> | |
52 | <input type="hidden" name="hl" value="en" /> | |
53 | <input type="hidden" name="as_sitesearch" value="pond.org.uk/rails" /> | |
54 | <input type="text" value="" maxlength="256" size="15" name="q" id="q" /> | |
55 | <b><input type="submit" value="Go" name="btnG" /></b> | |
56 | </form> | |
57 | </div> | |
58 | ||
59 | <%= render 'shared/fixed_sidebar' %> | |
60 | ||
61 | <p > | |
62 | <div class="sidebar-node"> | |
63 | <h3>Options</h3> | |
64 | ||
65 | <p /> | |
66 | <ul> | |
67 | <li><%= link_to_unless(@page && @page.title == "Home Page", "Documentation Home", home_url) { content_tag('b', "Documentation Home", 'class' => 'navOn') } %></li> | |
68 | <li><%= link_to_unless(@title == "All Pages", "All Pages", pages_url) { content_tag('b', "All Pages", 'class' => 'navOn') } %></li> | |
69 | <li><%= link_to_unless(@title == "Recently Revised", "Recently Revised", recent_url) { content_tag('b', "Recently Revised", 'class' => 'navOn') } %></li> | |
70 | <li><%= link_to("Feed", feed_url) %></li> | |
71 | </ul> | |
72 | </div> | |
73 | </div> | |
74 | </td> | |
75 | </tr> | |
76 | </table> | |
77 | ||
78 | <%= render 'shared/fixed_footer' %> | |
79 | </body> | |
80 | </html> | |
rool/rails/i2/trunk/app/views/versions/_textile_help.rhtml:
prev. | current | |
1 | ||
2 | ||
3 | | |
4 | | |
5 | | |
6 | | |
7 | | |
8 | | |
9 | | |
10 | | |
11 | | |
12 | ||
13 | | |
1 | <h3>Formatting: Textile</h3> | |
2 | <p style="border-top: 1px dotted #ccc; margin-top: 0px"> | |
3 | Text is formatted using the Textile markup syntax - find help | |
4 | <a href="http://hobix.com/textile/quick.html" target="_blank" onClick="quickRedReference(); return false;">here</a>. | |
5 | ||
<script language="JavaScript"> | ||
function quickRedReference() { | ||
16 | | |
8 | window.open( | |
"http://hobix.com/textile/quick.html", | ||
"redRef", | ||
"height=600,width=550,channelmode=0,dependent=0," + | ||
"directories=0,fullscreen=0,location=0,menubar=0," + | ||
21 | | |
13 | "resizable=0,scrollbars=1,status=1,toolbar=0" | |
); | ||
} | ||
</script> |
rool/rails/i2/trunk/app/views/versions/new.rhtml:
prev. | current | |
1 | ||
1 | <% | |
@title = "Creating '#{@page.title}'" | ||
@content_width = 720 | ||
@hide_navigation = true | ||
%> | ||
7 | ||
8 | | |
7 | <table border="0" cellspacing="0" cellpadding="0" width="100%"> | |
8 | <tr valign="top"> | |
9 | <td align="left"> | |
10 | <%= form_tag({ :action => "create" }, :id => 'editForm') %> | |
11 | <%= hidden_field :page, :title %> | |
10 | | |
13 | <%= text_area :version, :body, :rows => 24, :cols => 48 %> | |
12 | | |
13 | | |
14 | | |
15 | ||
16 | | |
17 | | |
18 | | |
19 | | |
20 | ||
21 | ||
22 | ||
23 | | |
24 | ||
25 | | |
26 | ||
27 | | |
28 | | |
29 | | |
15 | <p> | |
16 | <%= submit_tag "Save" %> as | |
17 | <%= text_field_tag :author_name, @author_name, | |
:onclick => "this.value == 'AnonymousCoward' ? this.value = '' : true" %> | ||
31 | | |
32 | | |
33 | ||
19 | or <%= link_to("Cancel", page_url(:page_title => @page)) %> | |
20 | </p> | |
21 | </td> | |
22 | <td align="left"> | |
23 | <div id="MarkupHelp"> | |
24 | <%= render :partial => 'textile_help' %> | |
25 | <%= render :partial => 'wiki_words_help' %> | |
26 | </div> | |
27 | </td> | |
28 | </tr> | |
29 | </table> |
rool/rails/i2/trunk/app/views/versions/show.rhtml:
prev. | current | |
<% @title = "#{@page.title} (Version ##{@version.number})" %> | ||
2 | <%= markup(@version.body) %> | |
3 | ||
4 | | |
5 | ||
6 | ||
7 | ||
8 | | |
9 | ||
10 | ||
<div class="byline"> | ||
Created on <%= @version.created_at.to_s(:long) %> | ||
by <%= link_to_author(@version.author) %> | ||
... | ... | |
<%= link_to "Rollback", rollback_url(:page_title => @page, :version_number => @version.number) %> | ||
<% if @version.newer_versions? && @version.newer_versions.size > 1 %> | ||
20 | | |
13 | | <%= nlink_to "Forward in time", | |
version_url(:page_title => @page.title, :version_number => @version.number + 1) %> | ||
<small>(<%= @version.newer_versions.size %> more)</small> | ||
... | ... | |
<% end %> | ||
<% if @version.older_versions? %> | ||
31 | | |
24 | | <%= nlink_to "Back in time", | |
version_url(:page_title => @page, :version_number => @version.number - 1) %> | ||
<small>(<%= @version.older_versions.size %> more)</small> | ||
<% end %> |
rool/rails/i2/trunk/public/stylesheets/instiki.css:
prev. | current | |
1 | ||
2 | | |
3 | | |
4 | | |
5 | ||
1 | /* RISC OS Open Instiki stylesheet. | |
2 | * | |
3 | * Based on the Instiki default stylesheet. | |
4 | */ | |
7 | ||
8 | | |
9 | | |
10 | | |
11 | | |
12 | | |
13 | ||
6 | @import url("/css/risc_os_open.css"); | |
15 | ||
8 | /* Set the page heading spacing */ | |
17 | ||
18 | | |
19 | | |
20 | | |
10 | H2#pageName | |
11 | { | |
12 | margin-bottom: 16px; | |
} | ||
23 | ||
24 | ||
25 | ||
26 | | |
27 | | |
15 | DIV#Content H3 | |
16 | { | |
17 | font: normal 125% Arial, Verdana, Helvetica, sans-serif; | |
18 | color: #989875; | |
} | ||
30 | ||
31 | ||
21 | /* Put a thin green line under the byline (revision info), | |
22 | * above the links to edit the page, view changes etc. | |
23 | */ | |
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | | |
40 | | |
41 | | |
25 | DIV.byline | |
26 | { | |
27 | margin-bottom: 10px; | |
28 | border-bottom: 1px solid #E5FFD4; | |
29 | padding-bottom: 10px; | |
} | ||
44 | ||
45 | | |
46 | | |
47 | | |
48 | | |
49 | ||
32 | /* Text used in the navigation part of the sidebar for | |
33 | * the currently selected page. | |
34 | */ | |
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | | |
58 | | |
59 | | |
36 | .sidebar-node .navOn | |
37 | { | |
38 | font-size: 90% | |
} | ||
62 | ||
41 | /* | |
42 | #Container { float: none; margin: 0 15%; text-align: center; } | |
43 | #Content { margin: 0; padding: 0.3em; text-align: left; border-top: none; float: left; width: 100%; } | |
64 | ||
65 | | |
66 | | |
67 | | |
68 | ||
45 | table { border: double black; border-collapse: collapse; } | |
46 | td { border: thin solid grey; } | |
70 | ||
71 | | |
72 | | |
73 | ||
74 | | |
75 | ||
76 | | |
77 | | |
78 | | |
79 | | |
80 | ||
48 | li { margin-bottom: 0.5em; } | |
49 | */ | |
82 | ||
83 | | |
84 | | |
85 | ||
51 | .newWikiWord { background-color: #BFBFBF; } | |
52 | .newWikiWord a:hover { background-color: white; } | |
87 | ||
88 | | |
89 | | |
90 | | |
91 | | |
92 | | |
93 | ||
54 | form#navigationSearchForm { display: inline; } | |
55 | form#navigationSearchForm input { font-size: 80%; } | |
95 | ||
96 | | |
97 | | |
98 | | |
99 | | |
100 | | |
101 | | |
102 | ||
57 | .navigation { margin-top: 0.3em; font-size : 90%; color: #999; } | |
104 | ||
105 | | |
106 | | |
107 | | |
108 | | |
109 | ||
59 | .help { font-family: verdana, arial, helvetica, sans-serif; font-size: 70%; } | |
111 | ||
112 | | |
113 | | |
114 | | |
115 | ||
61 | .inputBox { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; background-color: #EEE; padding: 0.3em; margin-bottom: 1.5em; } | |
117 | ||
118 | | |
119 | ||
63 | blockquote { display: block; font-size: 90%; margin: 0 0 1.5em 0; padding: 0 2.5em; line-height: 1.5em; font-style: italic; } | |
121 | ||
122 | | |
123 | | |
124 | | |
125 | | |
126 | ||
65 | pre { font-size: 90%; padding: 1em; overflow: auto; background-color: #DDD; } | |
128 | ||
129 | | |
130 | ||
67 | ol.setup { font-size: 110%; font-family: georgia, verdana, sans-serif; padding-left: 1.5em; margin-top: 1em; } | |
132 | ||
133 | | |
134 | ||
69 | .byline { padding-top: 1em; font-size: 60%; font-style: italic; margin-bottom: 1em; color: #999; } | |
136 | ||
137 | | |
138 | ||
71 | .diffdel, del.diffmod { background: #fcc; } | |
72 | .diffins, ins.diffmod { background: #cfc; } | |
140 | ||
141 | | |
142 | | |
143 | ||
74 | #footer { font-size: 60%; line-height: 1.2em; color: #999; font-style: italic; text-align: right; padding-top: 2em; } | |
145 | ||
146 | | |
147 | | |
148 | | |
149 | | |
150 | | |
151 | | |
152 | ||
76 | div.inputFieldWithPrompt { margin: 0.75em 0; } | |
154 | ||
155 | | |
156 | | |
157 | | |
158 | ||
78 | div.errorExplanation { color: #900; background-color: #FFA; font-style: italic; font-weight: bold; margin: 1.5em 0; padding: 1em; width: 100%; } | |
79 | div.errorExplanation h2 { display: none; } | |
80 | div.errorExplanation p { padding: 0; margin: 0; border: none; } | |
81 | div.errorExplanation ul { padding: 0; margin: 0.5em 0 0 2em; border: none; } | |
82 | div.errorExplanation li { padding: 0; margin: 0; border: none; } | |
83 | div.fieldWithErrors input { border: 1px solid #900; } | |
84 | div.info { color: #060; background-color: #BFBFBF; padding: 0.5em; margin-top: 0.5em; font-weight: bold; width: 100%; } | |
160 | ||
161 | | |
162 | | |
163 | | |
164 | ||
86 | /* div#MarkupHelp { float: right; width: 20%; } */ | |
87 | div#MarkupHelp { margin-left: 10px; } | |
88 | div#MarkupHelp table { margin-bottom: 0; border-top: 3px solid #999; border-left: 3px solid #999; | |
89 | border-right: 3px solid #BBB; border-bottom: 3px solid #BBB} | |
90 | div#MarkupHelp td { font-size: 80%; padding: 0.2em; margin: 0; border: 1px solid #999; border-width: 1px 0 1px 0; | |
91 | vertical-align: top; white-space: nowrap; } | |
92 | div#MarkupHelp td.arrow { padding-right: 5px; padding: 0 0.75em; color: #999; } | |
93 | div#MarkupHelp h3 { font-size: 90%; font-weight: bold; font-weight: normal; margin: 0 0 5px 0; padding: 5px 0 0 0; } | |
94 | div#MarkupHelp p { font-size: 70%; } | |
166 | ||
167 | | |
168 | ||
96 | div.rightHandSide { float: right; width: 25%; margin-left: 0.7em; padding-left: 1.5em; border-left: 1px dotted #ccc; font-size: 80%; } | |
170 | ||
171 | | |
172 | ||
98 | .newsList { margin-top: 1.5em; } | |
99 | .newsList p { margin-bottom: 2.5em; } | |
174 | ||
175 | | |
176 | | |
177 | | |
178 | | |
179 | ||
180 | ||
181 | ||
182 | | |
183 | | |
184 | | |
185 | ||
186 | ||
187 | ||
188 | | |
189 | | |
190 | | |
191 | | |
192 | | |
193 | ||
194 | ||
195 | ||
196 | | |
197 | | |
198 | | |
199 | | |
200 | | |
201 | ||
202 | ||
203 | ||
204 | | |
205 | ||
206 | ||
207 | ||
208 | | |
209 | | |
210 | | |
211 | | |
212 | | |
213 | ||
214 | ||
215 | ||
216 | | |
217 | ||
218 | | |
219 | ||
220 | | |
221 | ||
222 | ||
223 | ||
224 | | |
225 | ||
226 | ||
227 | ||
228 | ||
229 | | |
230 | | |
231 | ||
232 | ||
233 | ||
234 | | |
235 | ||
236 | ||
/* Affects the display of "category: ..." */ | ||
238 | ||
239 | | |
240 | | |
241 | ||
102 | .property { color: #999; font-size: 80%; } |