stubbed in view code from old danbooru; only janitors can lock a wiki page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class UploadsController < ApplicationController
|
||||
before_filter :member_only
|
||||
respond_to :html, :xml, :json
|
||||
respond_to :html, :xml, :json, :js
|
||||
|
||||
def new
|
||||
@upload = Upload.new(:rating => "q")
|
||||
|
||||
@@ -16,6 +16,13 @@ class WikiPagesController < ApplicationController
|
||||
def index
|
||||
@search = WikiPage.search(params[:search])
|
||||
@wiki_pages = @search.paginate(:page => params[:page])
|
||||
respond_with(@wiki_pages) do |format|
|
||||
format.html do
|
||||
if @wiki_pages.count == 1
|
||||
redirect_to(wiki_page_path(@wiki_pages.first))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
Reference in New Issue
Block a user