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:
- 7802 Bytes
1 | <%- @title = "Edit Web" -%> |
2 | |
3 | <% form_tag({ :controller => 'admin', :action => 'edit_web', :web => @web.address }, |
4 | { 'id' => 'setup', 'method' => 'post', |
5 | 'onsubmit' => 'cleanAddress(); return validateSetup()', |
6 | 'accept-charset' => 'utf-8' }) do |
7 | %> |
8 | |
9 | <h2 style="margin-bottom: 3px">Name and address</h2> |
10 | <div class="help"> |
11 | The name of the web is included in the title on all pages. |
12 | The address is the base path that all pages within the web live beneath. |
13 | Ex: the address "rails" gives URLs like <i>/rails/show/HomePage</i>. |
14 | </div> |
15 | |
16 | <div class="inputBox"> |
17 | <label for ="name">Name:</label> <input type="text" id="name" name="name" class="disableAutoComplete" value="<%= @web.name %>" |
18 | onchange="proposeAddress();" />    |
19 | <label for="address">Address:</label> <input type="text" class="disableAutoComplete" id="address" name="address" value="<%= @web.address %>" |
20 | onchange="cleanAddress();" /> |
21 | <em>(Letters and digits only)</em> |
22 | </div> |
23 | |
24 | <h2 style="margin-bottom: 3px">Specialize</h2> |
25 | <div class="inputBox"> |
26 | <label for="markup">Markup:</label> |
27 | <select id="markup" name="markup"> |
28 | <%= html_options({'Textile' => :textile, 'Markdown' => :markdown, 'Markdown+itex2MML' => :markdownMML, 'Markdown+blahtex/PNG' => :markdownPNG, |
29 | 'Mixed' => :mixed, 'RDoc' => :rdoc }, @web.markup) %> |
30 | </select> |
31 | |
32 |    |
33 | |
34 | <label for="color">Color:</label> |
35 | <select id="color" name="color"> |
36 | <%= html_options({ |
37 | 'Green' => '008B26', |
38 | 'Purple' => '504685', |
39 | 'Red' => 'DA0006', |
40 | 'Orange' => 'C50', |
41 | 'Grey' => '8BA2B0', |
42 | 'Blue' => '204A87', |
43 | 'Brown' => '8F5902', |
44 | 'Scarlet Red' => 'AA0006', |
45 | 'Plum' => '5C3566' |
46 | }, @web.color) %> |
47 | </select> |
48 | <p> |
49 | <input type="checkbox" class="disableAutoComplete" id="safe_mode" name="safe_mode" <%= raw 'checked="checked"' if @web.safe_mode? %> /> |
50 | <label for="safe_mode">Safe mode |
51 | <em>- strip HTML tags and stylesheet options from the content of all pages</em></label> |
52 | <br/> |
53 | <input type="checkbox" class="disableAutoComplete" id="brackets_only" name="brackets_only" <%= raw 'checked="checked"' if @web.brackets_only? %> /> |
54 | <label for="brackets_only">Brackets only |
55 | <em>- require all wiki words to be as [[wiki word]], WikiWord links won't be created</em></label> |
56 | <br/> |
57 | <input type="checkbox" class="disableAutoComplete" id="count_pages" name="count_pages" <%= raw 'checked="checked"' if @web.count_pages? %> /> |
58 | <label for="count_pages">Count pages</label> |
59 | <br/> |
60 | <input type="checkbox" class="disableAutoComplete" name="allow_uploads" <%= raw 'checked="checked"' if @web.allow_uploads? %> /> |
61 | Allow uploads of no more than |
62 | <input type="text" class="disableAutoComplete" name="max_upload_size" value="<%= @web.max_upload_size %>" |
63 | size="20" /> |
64 | kbytes |
65 | <em>- |
66 | allow users to upload pictures and other files and include them on wiki pages |
67 | </em> |
68 | </p> |
69 | |
70 | <a href="#" onclick="toggleView('additionalStyle');return false;"> |
71 | Stylesheet tweaks >></a> |
72 | <em> |
73 | - add or change styles used by this web; styles defined here take precedence over |
74 | instiki.css.<br/> |
75 | Hint: View HTML source of a page you want to style to find ID names on individual |
76 | tags.</em> |
77 | <br/> |
78 | <textarea id="additionalStyle" class="disableAutoComplete" cols="50" rows="20" |
79 | style="display:none" name="additional_style"><%= h(@web.additional_style) %> |
80 | </textarea> |
81 | </div> |
82 | |
83 | <h2 style="margin-bottom: 3px">Password protection for this web (<%= @web.name %>)</h2> |
84 | <div class="help"> |
85 | This is the password that visitors need to view and edit this web. |
86 | Setting the password to nothing will remove the password protection. |
87 | </div> |
88 | <div class="inputBox"> |
89 | <label for="password">Password:</label> <input class="disableAutoComplete" type="password" id="password" |
90 | name="password" value="<%= @web.password %>" /> |
91 |    |
92 | <label for="password_check">Verify:</label> <input class="disableAutoComplete" type="password" id="password_check" |
93 | value="<%= @web.password %>" name="password_check" /> |
94 | </div> |
95 | |
96 | <h2 style="margin-bottom: 3px">Publish read-only version of this web (<%= @web.name %>)</h2> |
97 | <div class="help"> |
98 | You can turn on a read-only version of this web that's accessible even when the regular web |
99 | is password protected. |
100 | The published version is accessible through URLs like /<%= @web.address %>/published/HomePage. |
101 | </div> |
102 | <div class="inputBox"> |
103 | <input type="checkbox" id="published" name="published" class="disableAutoComplete" <%= raw 'checked="checked"' if @web.published? %> /> |
104 | <label for="published">Publish this web</label> |
105 | </div> |
106 | |
107 | <p style="text-align:right;font-size:.85em;"> |
108 | <label for="system_password">Enter system password</label> |
109 | <input type="password" class="disableAutoComplete" id="system_password" |
110 | name="system_password" /> |
111 | and |
112 | <input type="submit" value="Update Web" /> |
113 | <br/><br/> |
114 | ...or forget changes and <%= link_to 'create a new web', :action => 'create_web' %> |
115 | </p> |
116 | <%- end %> |
117 | |
118 | <h1>Other administrative tasks</h1> |
119 | |
120 | <% form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages'}, |
121 | { :id => 'remove_orphaned_pages', |
122 | :onsubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned').value)", |
123 | 'accept-charset' => 'utf-8' }) do |
124 | %> |
125 | <div class="inputBox"> |
126 | <%= link_to ' Manage uploaded files', |
127 | {:controller => 'wiki', :web => @web.address, :action => 'file_list'}, :style => 'font-weight:bold' %> |
128 | for this web (<%= @web.name %>) |
129 | </div> |
130 | <p style="text-align:right;font-size:.85em;"> |
131 | Clean up this web (<%= @web.name %>) by entering the system password |
132 | <input type="password" id="system_password_orphaned" class="disableAutoComplete" name="system_password_orphaned" /> |
133 | and |
134 | <input type="submit" value="Delete Orphan Pages" /> |
135 | </p> |
136 | <%- end -%> |
137 | |
138 | <%- categories = WikiReference.list_categories(@web).sort |
139 | if categories.length > 0 -%> |
140 | <% form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages_in_category'}, |
141 | { :id => 'remove_orphaned_pages_in_category', |
142 | :onsubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned_in_category').value)", |
143 | 'accept-charset' => 'utf-8' }) do |
144 | %> |
145 | <p style="text-align:right;font-size:.85em;"> |
146 | Clean up selected category: |
147 | <select id="category" name="category"> |
148 | <%= html_options(categories) %> |
149 | </select> |
150 | Enter system password |
151 | <input type="password" id="system_password_orphaned_in_category" class="disableAutoComplete" name="system_password_orphaned_in_category" /> |
152 | and |
153 | <input type="submit" value="Delete Orphan Pages in Category" /> |
154 | </p> |
155 | <%- end -%> |
156 | <%- end -%> |
157 | |
158 | <div class="inputBox"> |
159 | <% form_tag({:controller => 'admin', :web => @web.address, :action => 'delete_web'}, |
160 | { :id => 'delete_web', |
161 | :onsubmit => "return checkSystemPassword(document.getElementById('system_password_delete_web').value)", |
162 | 'accept-charset' => 'utf-8' }) do |
163 | %> |
164 | <p style="text-align:right;"> |
165 | Delete this web (<%= @web.name %>), and all its pages. Enter system password |
166 | <input type="password" id="system_password_delete_web" class="disableAutoComplete" name="system_password_delete_web" /> |
167 | and |
168 | <input type="submit" value="Delete Web" /> |
169 | </p> |
170 | <%- end %> |
171 | </div> |
172 | |
173 | <%= javascript_include_tag 'edit_web' %> |