Fixed navigation.rhtml links [dm1]
This commit is contained in:
parent
ae7ac63a9d
commit
096fc1c8af
|
@ -1,25 +1,30 @@
|
||||||
<%
|
<%
|
||||||
def list_item(title, url, description, accesskey = nil)
|
def list_item(text, link_options, description, accesskey = nil)
|
||||||
if @title == title
|
link_options[:controller] = 'wiki'
|
||||||
"<b class=\"navOn\" title=\"#{description}\" accesskey=\"#{accesskey}\">#{title}</b>"
|
link_options[:web] = @web.name
|
||||||
else
|
link_to_unless_current(text, link_options, :title => description, :accesskey => accesskey) {
|
||||||
"<a href=\"#{url}\" title=\"#{description}\" accesskey=\"#{accesskey}\">#{title}</a>"
|
content_tag('b', text, 'title' => description, 'accesskey' => accesskey, 'class' => 'navOn')
|
||||||
end
|
}
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<form id="navigationForm" class="navigation" action="../search/" method="get" style="font-size: 10px">
|
<form id="navigationForm" class="navigation" action="../search/" method="get" style="font-size: 10px">
|
||||||
|
|
||||||
<% if @action_name != "published" then %>
|
<% if @action_name != 'published' then %>
|
||||||
<%= list_item "Home Page", "../show/HomePage", "Home, Sweet Home", "H" %> |
|
<%= list_item 'Home Page', {:action => 'show', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> |
|
||||||
<%= list_item "All Pages", "../list/", "Alphabetically sorted list of pages", "A" %> |
|
<%= list_item 'All Pages', {:action => 'list'}, 'Alphabetically sorted list of pages', 'A' %> |
|
||||||
<%= list_item "Recently Revised", "../recently_revised/", "Pages sorted by when they were last changed", "U" %> |
|
<%= list_item 'Recently Revised', {:action =>'recently_revised'},
|
||||||
<%= list_item "Authors", "../authors/", "Who wrote what" %> |
|
'Pages sorted by when they were last changed', 'U'
|
||||||
<%= list_item "Feeds", "../feeds/", "Subscribe to changes by RSS" %> |
|
%> |
|
||||||
<%= list_item "Export", "../export/", "Download a zip with all the pages in this wiki", "X" %> |
|
<%= list_item 'Authors', {:action => 'authors'}, 'Who wrote what' %> |
|
||||||
<input type="text" id="searchField" name="query" style="font-size: 10px" value="Search" onClick="this.value == 'Search' ? this.value = '' : true" />
|
<%= 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"
|
||||||
|
onClick="this.value == 'Search' ? this.value = '' : true" />
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= list_item "Home Page", "../published/HomePage", "Home, Sweet Home", "H" %> |
|
<%= list_item 'Home Page', {:action => 'published', :id => 'HomePage'}, 'Home, Sweet Home', 'H' %> |
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue