Getting the project working again
Replace Twitter Bootstrap by Zurb Foundation Used @import in SCSS instad of require_tree for proper order and use of variables like $debian_color Moved old files out of the way (renamed them to xx*) Welcome controller (/) works Moved templates from ERB to SLIM format Fixed database settings Reduced routes to working ones Tidied up Gemfile Checked in experimental lab files Tried to find a good description for this massive commit :)
This commit is contained in:
parent
a7e05b2b78
commit
87f545414f
38 changed files with 3341 additions and 156 deletions
|
|
@ -8,4 +8,27 @@ class Screenshot < ActiveRecord::Base
|
|||
def image_url(size)
|
||||
"#{Rails.configuration.images_path_prefix}/#{self.package.name[0]}/#{self.package.name}/#{self.id}_#{size}.png"
|
||||
end
|
||||
|
||||
## Get the URL leading to a screenshot of this package
|
||||
#def url(size)
|
||||
# if self.approved
|
||||
# # TODO: Make the path configurable
|
||||
# basepath = "/screenshots/approved/"
|
||||
# else
|
||||
# basepath = "/screenshots/unapproved/"
|
||||
# end
|
||||
#
|
||||
# File.join(basepath, self.package.name[0], self.package.name, "#{self.id}_#{size}.png")
|
||||
#end
|
||||
#
|
||||
## Return caption for full-screen screenshots.
|
||||
## Takes the description of a screenshot if available.
|
||||
## Otherwise it falls back to the general description of its package.
|
||||
#def caption
|
||||
# if self.description != ''
|
||||
# self.description
|
||||
# else
|
||||
# self.package.description
|
||||
# end
|
||||
#end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue