17 lines
315 B
Ruby
17 lines
315 B
Ruby
module ComicsHelper
|
|
|
|
def title(comic = nil)
|
|
comic ||= @comic
|
|
t('txt.comics.title', :name => comic.name_or_date)
|
|
end
|
|
|
|
def description(comic = nil)
|
|
comic ||= @comic
|
|
comic.story.present? ? comic.story : meta_tags.description
|
|
end
|
|
|
|
def sitename
|
|
t('txt.componentowl_long')
|
|
end
|
|
|
|
end |