* added handlebars helper for markdown formatting * finished port of profile sidebar view to handlebars template * people_controller refactoring
16 lines
279 B
Ruby
16 lines
279 B
Ruby
class PhotoPresenter < BasePresenter
|
|
def base_hash
|
|
{ id: id,
|
|
guid: guid,
|
|
dimensions: {
|
|
h: height,
|
|
w: width
|
|
},
|
|
sizes: {
|
|
s: url(:thumb_small),
|
|
m: url(:thumb_medium),
|
|
l: url(:scaled_full)
|
|
}
|
|
}
|
|
end
|
|
end
|