-
Notifications
You must be signed in to change notification settings - Fork 0
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
Corey Purcell
committed
Aug 17, 2010
1 parent
62cbc08
commit 12999c1
Showing
19 changed files
with
539 additions
and
236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
class Task < ActiveRecord::Base | ||
|
||
belongs_to :list | ||
|
||
acts_as_taggable_on :tags | ||
scope :completed, where(:completed => true) | ||
scope :incomplete, where(:completed => false) | ||
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,10 @@ | ||
@mixin box($color: rgb(230, 230, 230), $border: rgb(221,221,221), $radius: 5px, $padding: 5px, $margin: 0.5em) | ||
-moz-border-radius: $radius | ||
-webkit-border-radius: $radius | ||
border-radius: $radius | ||
background-color: rgba(0, 0, 0, 0.05) | ||
margin-bottom: $margin | ||
padding: $padding | ||
background-color: $color | ||
border: 1px solid $border | ||
|
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 |
---|---|---|
@@ -1,9 +1,24 @@ | ||
@import "compass/reset" | ||
@import "standard" | ||
@import "mixins" | ||
|
||
@import "compass/css3/box-shadow" | ||
|
||
.task | ||
width: 100% | ||
@include box(white, white) | ||
@include box-shadow(#333,1px,1px,2px) | ||
form.mark_complete | ||
display: inline | ||
|
||
ul.tags | ||
display: inline | ||
float: right | ||
margin-top: 2px | ||
li | ||
display: inline | ||
list-style-type: none | ||
padding-right: 5px | ||
@include box(rgb(231,235,249),rgb(188,202,240), 7px, 4px, 0) | ||
|
||
ul#complete li.task | ||
text-decoration: line-through |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
#use Rack::Static, :urls => ["/stylesheets/compiled"], :root => "tmp" | ||
|
||
run Todo::Application |
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 @@ | ||
# This configuration file works with both the Compass command line tool and within Rails. | ||
# Require any additional compass plugins here. | ||
project_type = :rails | ||
project_path = Compass::AppIntegration::Rails.root | ||
# Set this to the root of your project when deployed: | ||
http_path = "/" | ||
css_dir = "public/stylesheets" | ||
sass_dir = "app/stylesheets" | ||
environment = Compass::AppIntegration::Rails.env | ||
# To enable relative paths to assets via compass helper functions. Uncomment: | ||
# relative_assets = true |
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 @@ | ||
require 'compass' | ||
require 'compass/app_integration/rails' | ||
Compass::AppIntegration::Rails.initialize! |
28 changes: 28 additions & 0 deletions
28
db/migrate/20100817123058_acts_as_taggable_on_migration.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,28 @@ | ||
class ActsAsTaggableOnMigration < ActiveRecord::Migration | ||
def self.up | ||
create_table :tags do |t| | ||
t.string :name | ||
end | ||
|
||
create_table :taggings do |t| | ||
t.references :tag | ||
|
||
# You should make sure that the column created is | ||
# long enough to store the required class names. | ||
t.references :taggable, :polymorphic => true | ||
t.references :tagger, :polymorphic => true | ||
|
||
t.string :context | ||
|
||
t.datetime :created_at | ||
end | ||
|
||
add_index :taggings, :tag_id | ||
add_index :taggings, [:taggable_id, :taggable_type, :context] | ||
end | ||
|
||
def self.down | ||
drop_table :taggings | ||
drop_table :tags | ||
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
Oops, something went wrong.