Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
17
app/helpers/comics_helper.rb
Normal file
17
app/helpers/comics_helper.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user