Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 344
- Log:
Massive changeset which brings the old, ROOL customised Instiki
version up to date, but without any ROOL customisations in this
latest checked-in version (which is 0.19.1). This is deliberate,
so that it's easy to see the changes made for the ROOL version
in a subsequent changeset. The 'app/views/shared' directory is not
part of Instiki but is kept to maintain the change history with
updated ROOL customisations, some of which involve the same files
in that same directory.
- Author:
- rool
- Date:
- Sat Mar 19 19:52:13 +0000 2011
- Size:
- 3104 Bytes
1 | <%- |
2 | @title = "Editing #{@page.name.escapeHTML}".html_safe |
3 | @content_width = 720 |
4 | @hide_navigation = true |
5 | -%> |
6 | |
7 | <div id="MarkupHelp"> |
8 | <%= render(:file => "#{@web.markup}_help") -%> |
9 | <%= render(:file => 'wiki_words_help') unless @web.brackets_only? -%> |
10 | </div> |
11 | |
12 | <% form_tag({ :action => 'save', :web => @web.address, :id => @page.name }, |
13 | { 'id' => 'editForm', 'method' => 'post', 'onsubmit' => 'cleanAuthorName()', |
14 | 'accept-charset' => 'utf-8' }) do %> |
15 | <div> |
16 | <textarea name="content" id="content" rows="24" cols="60"><%= h(flash[:content] || |
17 | (params['content'] ? params['content'] : @page.content).purify) %></textarea> |
18 | <% if @page_name != 'HomePage' -%> |
19 | <p> |
20 | <%= check_box_tag :alter_title, value = "1", checked=false, |
21 | 'onchange' => "toggleVisibility();" %> <label for="alter_title">Change page name.</label><br/> |
22 | <span id="title_change" style="display:none"><label for="new_name">New name:</label> <%= text_field_tag :new_name, h(@page.name.purify), |
23 | :onblur => "addRedirect();" %></span> |
24 | </p> |
25 | <% else -%> |
26 | <%= hidden_field_tag 'new_name', @page_name %> |
27 | <% end%> |
28 | <div id="editFormButtons"> |
29 | <input type="submit" value="Submit" accesskey="s"/> as |
30 | <%= text_field_tag :author, h(@author.purify), |
31 | :onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;", |
32 | :onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %> |
33 | | |
34 | <span> |
35 | <%= link_to('Cancel', {:web => @web.address, :action => 'cancel_edit', :id => @page.name}, |
36 | {:accesskey => 'c'}) %> |
37 | <span class="unlock">(unlocks page)</span> |
38 | </span> |
39 | </div> |
40 | </div> |
41 | <%- end -%> |
42 | |
43 | <script type="text/javascript"> |
44 | <!--//--><![CDATA[//><!-- |
45 | function toggleVisibility() { |
46 | var span = document.getElementById('title_change'); |
47 | if (span.style.display =='inline') { |
48 | span.style.display ='none'; |
49 | document.getElementById('new_name').value = "<%= escape_javascript(@page.name) %>"; |
50 | var content = document.getElementById('content').value |
51 | document.getElementById('content').value = content.replace(/\[\[!redirects <%= Regexp.escape(@page.name).gsub('/', '\\/') %>\]\]\n/, '') |
52 | } |
53 | else |
54 | span.style.display ='inline' |
55 | } |
56 | |
57 | function addRedirect(){ |
58 | var e = document.getElementById('new_name').value; |
59 | if ( e != "<%= escape_javascript(@page.name) %>" && e != '') { |
60 | var content = document.getElementById('content'); |
61 | content.value = '[[!redirects <%= escape_javascript(@page.name) %>]]\n' + content.value |
62 | } |
63 | } |
64 | |
65 | function cleanAuthorName() { |
66 | if (document.getElementById('authorName').value == "") { |
67 | document.getElementById('authorName').value = 'AnonymousCoward'; |
68 | } |
69 | } |
70 | |
71 | document.forms["editForm"].elements["content"].focus(); |
72 | <%- if [:markdownMML, :markdownPNG, :markdown].include?(@web.markup) and !@page.categories.include?('S5-slideshow') -%> |
73 | setupSVGedit('<%= compute_public_path("editor/svg-editor.html", "svg-edit").split(/\?/)[0] %>'); |
74 | addS5button('<%= @page.name.escapeHTML %>'); |
75 | <%- end -%> |
76 | //--><!]]> |
77 | </script> |