Sha256: 039a4f5abb0b1bbd7dd71c8e8a1fcffc8fb958152fbb251ee4d89735e3a59abe

Contents?: true

Size: 1.66 KB

Versions: 1

Compression:

Stored size: 1.66 KB

Contents

<span class='pagename'><%= pagename %><%= page.deleted? ? "(Deleted)" : '' %></span>

<form action='/upload/<%= pagename %>' method=post enctype=multipart/form-data >
<input type=hidden name='titleprefix' value='Attached ' />
<table>
	<tr><td>Title:</td><td>Attached <input name='newtitle' size = '52' value='<%= pagename[ 9..-1].strip %>' onClick="this.value == 'Type a title here' ? this.value = '' : true"/></td></tr>
	<tr><td valign='top'>File:</td><td><input name='file' type=file  /></td></tr>
	<tr><td>Author:</td><td><a href='/<%= person %>'><%= person %></a> Quit browser to log out.</td>
	<tr><td></td><td><input name=action value='Save changes' type=submit accesskey="S"> <a href='/<%= pagename %>' accesskey="C" >(Cancel)</a> or <a href='/delete/<%= pagename %>' accesskey='D'>(Delete)</a> this page.</td></tr>
	</table>
</form>
<hr>
<% unless page.empty? %>
<p>The most recent change was made by <a href='/<%= page.author %>'><%= page.author %></a> who changed:</p>
		<% 
		page.changes.each do |change_group|
			change_group.each do |change|
				case change[0]
				when "-" %>
					<del><%= change[1] %>. <%= change[2] %></del><br/>
		<% 	when "+" %>
					<%= change[1] %>. <%= change[2] %><br/>
		<%		
				end
			end
		end
		%>
		<p>
		<a href='/rollback/<%= pagename %>?revision=<%= page.number - 1  %>' accesskey="U" >(Undo this change)</a> or <a href='/revisions/<%= pagename %>' accesskey="A" >(Show All changes)</a> or 
		<% if page.watching? person %>
			<a href='/unwatch/<%= pagename %>' accesskey="E" >(Don't e-mail when this page changes)</a>
		<% else %>
			<a href='/watch/<%= pagename %>' accesskey="E" >(E-mail when this page changes)</a>
		<% end %>
		</p>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Soks-0.0.2 template/views/AttachmentPage_edit.rhtml