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
Showing
11 changed files
with
202 additions
and
1 deletion.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
db/migrate/20091019222942_set_star_account_plus_star_rform.rb
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,32 @@ | ||
class SetStarAccountPlusStarRform < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*account+*rform", :type=>"Basic" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
<h1>{{_left|name}}'s roles<br></h1> | ||
<blockquote> | ||
<p>{{_left+*roles|item:link}}</p> | ||
</blockquote> | ||
<p> </p> | ||
<h1>Cards {{_left|name}} is watching</h1> | ||
<blockquote> | ||
<p>You'll receive email whenever these cards (or cards of types listed here) are changed. [[http://wagn.org/wagn/Notification|Learn more about notifications]].</p> | ||
<p>{{_left+*watching|item:change}}</p> | ||
</blockquote> | ||
<p> </p> | ||
<h1>Cards {{_left|name}} has edited</h1> | ||
<blockquote> | ||
<p>{{_left +*editing}}</p> | ||
</blockquote> | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
25 changes: 25 additions & 0 deletions
25
db/migrate/20091019222946_set_star_watching_plus_star_rform.rb
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,25 @@ | ||
class SetStarWatchingPlusStarRform < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*watching+*rform", :type=>"Search" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
/* fixit - once "type" accepts card defs: | ||
{"or": | ||
{"and": {"plus": ["*watcher", {"refer_to": "_self"} ], "not": {"type": "Cardtype"} } }, | ||
{"type": {"plus": ["*watcher", {"refer_to": "_self"} ], "type": "Cardtype"} } | ||
} | ||
*/ | ||
{"plus": ["*watcher", {"refer_to": "_self"} ] } | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019222949_set_star_thank_plus_star_rform.rb
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,18 @@ | ||
class SetStarThankPlusStarRform < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*thanks+*rform", :type=>"Phrase" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019222953_set_star_thank_plus_star_edit.rb
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,18 @@ | ||
class SetStarThankPlusStarEdit < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*thanks+*edit", :type=>"Basic" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
<p>Where to take people when they create a card of this type (if they don't have permission to see it). [[http://www.wagn.org/wagn/Custom_thank_you_messages_for_forms|Learn more about thank you messages.]]</p> | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019222956_set_star_input_plus_star_rform.rb
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,18 @@ | ||
class SetStarInputPlusStarRform < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*input+*rform", :type=>"Phrase" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019223000_set_star_input_plus_star_edit.rb
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,18 @@ | ||
class SetStarInputPlusStarEdit < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*input+*edit", :type=>"Basic" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
<p>[[http://wagn.org/wagn/Pointer|Learn more about Pointers' input interfaces.]]</p> | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019223004_set_star_input_plus_star_input.rb
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,18 @@ | ||
class SetStarInputPlusStarInput < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*input+*input", :type=>"Pointer" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
[[select]] | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class SetStarOptionLabel < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*option label", :type=>"Phrase" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
description | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019223011_set_star_option_label_plus_star_rform.rb
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,18 @@ | ||
class SetStarOptionLabelPlusStarRform < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*option label+*rform", :type=>"Phrase" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20091019223017_set_star_option_label_plus_star_edit.rb
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,18 @@ | ||
class SetStarOptionLabelPlusStarEdit < ActiveRecord::Migration | ||
def self.up | ||
User.as(:wagbot) do | ||
card = Card.find_or_create :name=>"*option label+*edit", :type=>"Basic" | ||
if card.revisions.map(&:author).map(&:login).uniq == ["wagbot"] | ||
card.content <<CONTENT | ||
<p>Sets the plus card used to make labels for radio button and checkbox items associated with Pointers. [[http://www.wagn.org/wagn/Pointer|Learn more.]]</p> | ||
CONTENT | ||
card.permit('edit',Role[:admin]) | ||
card.permit('delete',Role[:admin]) | ||
card.save! | ||
end | ||
end | ||
end | ||
|
||
def self.down | ||
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