order assets when used in liquid templates
This commit is contained in:
parent
c1b21fac8b
commit
b4d3aae46f
7
doc/TODO
7
doc/TODO
@ -12,8 +12,9 @@ BOARD:
|
||||
- global regions: keyword in editable element (http://www.mongodb.org/display/DOCS/Updating)
|
||||
- write my first tutorial about locomotive
|
||||
|
||||
- rewrite the unzip process (for the import)
|
||||
- bug with asset collections (assets disappear if we save the collection ?!)
|
||||
- cosmetic / ui bugs:
|
||||
- increase the input field for domain names
|
||||
- drag&drop for assets ('last' class issue)
|
||||
|
||||
- refactor slugify method (use parameterize + create a module)
|
||||
- [content types] the "display column" selector should not include file types
|
||||
@ -138,3 +139,5 @@ x import tool:
|
||||
x theme assets whitelist
|
||||
x fonts
|
||||
x asset collections
|
||||
x rewrite the unzip process (for the import)
|
||||
x bug with asset collections (assets disappear if we save the collection ?!)
|
@ -18,19 +18,19 @@ module Locomotive
|
||||
end
|
||||
|
||||
def first
|
||||
@collection.assets.first
|
||||
@collection.ordered_assets.first
|
||||
end
|
||||
|
||||
def last
|
||||
@collection.assets.last
|
||||
@collection.ordered_assets.last
|
||||
end
|
||||
|
||||
def each(&block)
|
||||
@collection.assets.each(&block)
|
||||
@collection.ordered_assets.each(&block)
|
||||
end
|
||||
|
||||
def paginate(options = {})
|
||||
paginated_collection = @collection.assets.paginate(options)
|
||||
paginated_collection = @collection.ordered_assets.paginate(options)
|
||||
{
|
||||
:collection => paginated_collection,
|
||||
:current_page => paginated_collection.current_page,
|
||||
|
@ -1,3 +1,3 @@
|
||||
module Locomotive #:nodoc
|
||||
VERSION = "0.0.4.beta3"
|
||||
VERSION = "0.0.4.beta5"
|
||||
end
|
||||
|
@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
||||
s.add_dependency "fog"
|
||||
s.add_dependency "mimetype-fu"
|
||||
s.add_dependency "formtastic", ">= 1.1.0"
|
||||
s.add_dependency "locomotive_carrierwave", "0.5.0.1.beta1"
|
||||
s.add_dependency "locomotive_carrierwave", "0.5.0.1.beta2"
|
||||
s.add_dependency "actionmailer-with-request"
|
||||
s.add_dependency "heroku"
|
||||
s.add_dependency "httparty", ">= 0.6.1"
|
||||
@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
||||
s.add_dependency "inherited_resources", ">= 1.1.2"
|
||||
s.add_dependency "delayed_job", "2.1.0.pre2"
|
||||
s.add_dependency "delayed_job_mongoid", "1.0.0.rc"
|
||||
s.add_dependency "custom_fields", "1.0.0.beta"
|
||||
s.add_dependency "custom_fields", "1.0.0.beta2"
|
||||
s.add_dependency "rubyzip"
|
||||
|
||||
s.files = Dir[ "Gemfile",
|
||||
|
Loading…
Reference in New Issue
Block a user