stubbed in view code from old danbooru; only janitors can lock a wiki page

This commit is contained in:
albert
2011-02-28 14:18:39 -05:00
parent 6d0157265c
commit 9e7efbd295
47 changed files with 1124 additions and 79 deletions

View File

@@ -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")

View File

@@ -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