<%- @title = "Edit Web" -%> <% form_tag({ :controller => 'admin', :action => 'edit_web', :web => @web.address }, { 'id' => 'setup', 'method' => 'post', 'onsubmit' => 'cleanAddress(); return validateSetup()', 'accept-charset' => 'utf-8' }) do %>

Name and address

The name of the web is included in the title on all pages. The address is the base path that all pages within the web live beneath. Ex: the address "rails" gives URLs like /rails/show/HomePage.
   (Letters and digits only)

Specialize

  

/>
/>
/>
/> Allow uploads of no more than kbytes - allow users to upload pictures and other files and include them on wiki pages

Stylesheet tweaks >> - add or change styles used by this web; styles defined here take precedence over instiki.css.
Hint: View HTML source of a page you want to style to find ID names on individual tags.

Password protection for this web (<%= @web.name %>)

This is the password that visitors need to view and edit this web. Setting the password to nothing will remove the password protection.
  

Publish read-only version of this web (<%= @web.name %>)

You can turn on a read-only version of this web that's accessible even when the regular web is password protected. The published version is accessible through URLs like /<%= @web.address %>/published/HomePage.
/>

and

...or forget changes and <%= link_to 'create a new web', :action => 'create_web' %>

<%- end %>

Other administrative tasks

<% form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages'}, { :id => 'remove_orphaned_pages', :onsubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned').value)", 'accept-charset' => 'utf-8' }) do %>
<%= link_to ' Manage uploaded files', {:controller => 'wiki', :web => @web.address, :action => 'file_list'}, :style => 'font-weight:bold' %> for this web (<%= @web.name %>)

Clean up this web (<%= @web.name %>) by entering the system password and

<%- end -%> <%- categories = WikiReference.list_categories(@web).sort if categories.length > 0 -%> <% form_tag({:controller => 'admin', :web => @web.address, :action => 'remove_orphaned_pages_in_category'}, { :id => 'remove_orphaned_pages_in_category', :onsubmit => "return checkSystemPassword(document.getElementById('system_password_orphaned_in_category').value)", 'accept-charset' => 'utf-8' }) do %>

Clean up selected category: Enter system password and

<%- end -%> <%- end -%>
<% form_tag({:controller => 'admin', :web => @web.address, :action => 'delete_web'}, { :id => 'delete_web', :onsubmit => "return checkSystemPassword(document.getElementById('system_password_delete_web').value)", 'accept-charset' => 'utf-8' }) do %>

Delete this web (<%= @web.name %>), and all its pages. Enter system password and

<%- end %>
<%= javascript_include_tag 'edit_web' %>