Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 366
- Log:
Hub integration.
- Author:
- rool
- Date:
- Sat Mar 19 22:06:05 +0000 2011
- Size:
- 1621 Bytes
1 | <%- |
2 | @title = "Creating #{WikiWords.separate(@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 | <div id="editForm"> |
13 | <% form_tag({ :action => 'save', :web => @web.address, :id => @page_name }, |
14 | { 'id' => 'editForm', 'method' => 'post', 'onsubmit' => 'cleanAuthorName();', 'accept-charset' => 'utf-8' }) do %> |
15 | |
16 | <textarea name="content" id="content" rows="24" cols="60"><%= h(flash[:content] || |
17 | params['content'] ? params['content'].purify : '' ) %></textarea> |
18 | <div id="editFormButtons"> |
19 | <input type="submit" value="Submit" accesskey="s"/> |
20 | <% |
21 | if false # 2011-03-14 (ADH): Hub integration - author comes from logged in user name |
22 | -%> |
23 | as |
24 | <%= text_field_tag :author, @author, |
25 | :onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;", |
26 | :onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %> |
27 | <% end %> |
28 | </div> |
29 | <%- end -%> |
30 | </div> |
31 | |
32 | <script type="text/javascript"> |
33 | function cleanAuthorName() { |
34 | if (document.getElementById('authorName').value == "") { |
35 | document.getElementById('authorName').value = 'AnonymousCoward'; |
36 | } |
37 | } |
38 | document.forms["editForm"].elements["content"].focus(); |
39 | <%- if [:markdownMML, :markdownPNG, :markdown].include?(@web.markup) -%> |
40 | setupSVGedit('<%= compute_public_path("editor/svg-editor.html", "svg-edit").split(/\?/)[0] %>'); |
41 | addS5button('<%= @page_name.escapeHTML %>'); |
42 | <%- end -%> |
43 | </script> |