Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Commit

Permalink
edit page form hijacking from extension
Browse files Browse the repository at this point in the history
  • Loading branch information
pkqk committed Oct 17, 2008
1 parent f3ba919 commit 5b82a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/preview/_show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= submit_tag :preview, :value => 'Preview', :class => 'button'
1 change: 1 addition & 0 deletions page_preview_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class PagePreviewExtension < Radiant::Extension

def activate
# admin.tabs.add "Page Preview", "/admin/page_preview", :after => "Layouts", :visibility => [:all]
admin.page.edit.add :main, "/preview/show", :after => "edit_buttons"
end

def deactivate
Expand Down

0 comments on commit 5b82a9f

Please sign in to comment.