Sha256: 4fc5d2ad5e6b34c9177770342b808d57765d8c6d759e270d05257792fbae1bff

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

<%
def list_item(text, link_options, description, accesskey = nil)
  link_options[:controller] = 'wiki'
  link_options[:web] = @web.address
  link_to_unless_current(text, link_options, :title => description, :accesskey => accesskey) {
    content_tag('b', text, 'title' => description, 'class' => 'navOn') 
  }
end
%>

<%= form_tag({ :controller => 'wiki', :action => 'search', :web => @web.address},
             {'id' => 'navigationForm', 'class' => 'navigation', 'method' => 'get'})
%>

  <% if @action_name != 'published' then %>
    <%= list_item 'Home Page', {:action => 'show', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> | 
    <%= list_item 'All Pages', {:action => 'list'}, 'Alphabetically sorted list of pages', 'A' %> | 
    <%= list_item 'Recently Revised', {:action =>'recently_revised'}, 
                  'Pages sorted by when they were last changed', 'U' 
    %> |
    <%= list_item 'Authors', {:action => 'authors'}, 'Who wrote what' %> | 
    <%= list_item 'Feeds', {:action => 'feeds'}, 'Subscribe to changes by RSS' %> | 
    <%= list_item 'Export', {:action => 'export'}, 
                  'Download a zip with all the pages in this wiki', 'X' 
    %> |
    <input type="text" id="searchField" name="query" style="font-size: 10px" value="Search" 
           onfocus="if (this.value == 'Search' ) this.value = '' " />
  <% else %>
  	<%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> | 
  <% end%>

<%= end_form_tag %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
instiki-0.10.2 app/views/navigation.rhtml