add dedicated wiki page search
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= link_to "Listing", wiki_pages_path %></li>
|
||||
<li><%= link_to "Search", search_wiki_pages_path %></li>
|
||||
<li><%= link_to "New", new_wiki_page_path %></li>
|
||||
<li><%= link_to "Help", wiki_pages_path(:search => {:title => "help:wiki"}) %></li>
|
||||
<% if @wiki_page %>
|
||||
|
||||
22
app/views/wiki_pages/search.html.erb
Normal file
22
app/views/wiki_pages/search.html.erb
Normal file
@@ -0,0 +1,22 @@
|
||||
<div id="c-wiki-pages">
|
||||
<div id="a-search">
|
||||
<%= form_tag(wiki_pages_path, :method => :get, :class => "simple_form") do %>
|
||||
<%= search_field "title", :hint => "Use * for wildcard searches" %>
|
||||
<%= search_field "creator_name" %>
|
||||
<%= search_field "body_matches", :label => "Body" %>
|
||||
|
||||
<div class="input">
|
||||
<label for="search_sort">Sort</label>
|
||||
<%= select "search", "sort", ["Name", "Date"] %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag "Search" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Search Wiki - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user