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:
- 1530 Bytes
1 | <%- |
2 | @title = "Upload #{h @file_name}" |
3 | @hide_navigation = false |
4 | @referring_page ||= request.env["HTTP_REFERER"] |
5 | -%> |
6 | |
7 | <%= error_messages_for 'file' %> |
8 | |
9 | <% form_tag({ :controller => 'file', :web => @web_name, :action => 'file' }, |
10 | { 'multipart' => true , 'accept-charset' => 'utf-8' }) do %> |
11 | <div class="inputFieldWithPrompt"> |
12 | <input type="hidden" name="referring_page" value="<%= h @referring_page %>" /> |
13 | <%= hidden_field 'file', 'file_name' %> |
14 | <label for="file_content"><b>Content of <%= h @file_name %> to upload</b>:</label> |
15 | <br /> |
16 | <input type="file" id="file_content" name="file[content]" size="40" /> |
17 | <br /> |
18 | Please note that the file you are uploading will be named <%= h @file_name %> on the wiki - |
19 | regardless of how it is named on your computer. To change the wiki name of the file, please go |
20 | <%= link_to("back", @referring_page) %> and edit the wiki page that refers to the file. |
21 | </div> |
22 | <div class="inputFieldWithPrompt"> |
23 | <label for="file_description"><b>Description</b>:</label> |
24 | <br/> |
25 | <%= text_field "file", "description", "size" => 40 %> |
26 | </div> |
27 | <div> |
28 | <input type="submit" value="Upload" /> |
29 | <% |
30 | if false # 2011-03-14 (ADH): Hub integration - author comes from logged in user name |
31 | -%> |
32 | as |
33 | <%= text_field_tag :author, @author, |
34 | :onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;", |
35 | :onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %> |
36 | <% end -%> |
37 | </div> |
38 | <%- end -%> |