c8e459cbb0
(optional, enabled by uncommenting a variable at the top of test_helper.rb); corrected some malformed templates (not all yet)
25 lines
1.2 KiB
Text
Executable file
25 lines
1.2 KiB
Text
Executable file
<%
|
|
def list_item(title, url, description, accesskey = nil)
|
|
if @title == title
|
|
"<b class=\"navOn\" title=\"#{description}\" accesskey=\"#{accesskey}\">#{title}</b>"
|
|
else
|
|
"<a href=\"#{url}\" title=\"#{description}\" accesskey=\"#{accesskey}\">#{title}</a>"
|
|
end
|
|
end
|
|
%>
|
|
|
|
<form id="navigationForm" class="navigation" action="../search/" method="get" style="font-size: 10px">
|
|
|
|
<% if @action_name != "published" then %>
|
|
<%= list_item "Home Page", "../show/HomePage", "Home, Sweet Home", "H" %> |
|
|
<%= list_item "All Pages", "../list/", "Alphabetically sorted list of pages", "A" %> |
|
|
<%= list_item "Recently Revised", "../recently_revised/", "Pages sorted by when they were last changed", "U" %> |
|
|
<%= list_item "Authors", "../authors/", "Who wrote what" %> |
|
|
<%= list_item "Feeds", "../feeds/", "Subscribe to changes by RSS" %> |
|
|
<%= list_item "Export", "../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" onClick="this.value == 'Search' ? this.value = '' : true" />
|
|
<% else %>
|
|
<%= list_item "Home Page", "../published/HomePage", "Home, Sweet Home", "H" %> |
|
|
<% end%>
|
|
|
|
</form>
|