This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Josh Adams
committed
Nov 23, 2008
1 parent
0aec1f7
commit 7c6f342
Showing
43 changed files
with
1,318 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class AnsuzMailer < ActionMailer::Base | ||
def page_review_notifications(page, sent_at = Time.now) | ||
subject 'Ansuz#page_review_notifications' | ||
recipients 'knewter@gmail.com' | ||
from 'knewter@gmail.com' | ||
sent_on sent_at | ||
|
||
body :greeting => 'Hi,' | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<%= link_to "Manage Pages", admin_pages_path, :class => 'button icon back' %> | ||
<%= link_to "Edit Metadata", edit_admin_page_page_metadata_path(@page), :class => 'button icon edit' %> | ||
<br /> | ||
<% form_remote_tag :url => admin_page_path(@page), | ||
:update => 'main', | ||
:method => :put, | ||
:complete => remote_function( | ||
:update => "item#{@page.parent_id}", | ||
:url => { :action => 'manage_tree', :parent_id => @page.parent_id, :tree_post_id => @post_id }, | ||
:complete => 'refresh_visibility()'), | ||
:html => { 'name' => 'page_form' } do -%> | ||
<%= render :partial => 'form' %> | ||
<% | ||
# TODO: Clean up this button spaghetti | ||
%> | ||
<% if @page.is_draft? %> | ||
<%= submit_tag 'Save as Draft' %> | ||
<% else %> | ||
<%= submit_tag 'Update' %> | ||
<% unless @page.is_published? %> | ||
<%= submit_tag 'Save as Draft' %> | ||
<% end %> | ||
<% end %> | ||
<% unless @page.is_published? %> | ||
<%= submit_tag "Submit for Review" %> | ||
<% end %> | ||
<% if current_user.can_publish? %> | ||
<%= submit_tag (@page.is_published? ? 'Unpublish' : 'Publish') %> | ||
<% end %> | ||
<% end -%> | ||
<div class='note'> | ||
None of the workflow buttons above do anything meaningful yet. | ||
</div> | ||
|
||
<h2>Plugins on this page</h2> | ||
<ul id="page_plugins" class='page_plugins'> | ||
<% @page.page_plugins.each do |plugin| -%> | ||
<li> | ||
<%= link_to(plugin.module_type, edit_admin_page_plugin_path(plugin), :class => 'edit_page_plugin') -%> | ||
<%= link_to("[up]", move_up_admin_page_plugin_path(plugin)) %> | ||
<%= link_to("[down]", move_down_admin_page_plugin_path(plugin)) %> | ||
<%= link_to("[x]", admin_page_plugin_path(plugin), :confirm => 'Are you sure you want to remove this plugin from the page?', :method => :delete) -%> | ||
</li> | ||
<% end -%> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Ansuz#page_review_notifications | ||
|
||
Find me in app/views/ansuz/page_review_notifications.erb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h2>This page is not currently published</h2> | ||
|
||
There's a page here by that name, but it's not currently published. Sorry. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class AddStatusToPages < ActiveRecord::Migration | ||
def self.up | ||
add_column :pages, :status, :string | ||
add_index :pages, :status | ||
end | ||
|
||
def self.down | ||
remove_index :pages, :column => :status | ||
remove_column :pages, :status | ||
end | ||
end |
Oops, something went wrong.