Small design changes
This commit is contained in:
@@ -9,7 +9,7 @@ module Adamantium
|
||||
include Deps["clients.omdb"]
|
||||
|
||||
def poster
|
||||
omdb_record.poster
|
||||
omdb_record&.poster
|
||||
end
|
||||
|
||||
def omdb_record
|
||||
|
@@ -70,7 +70,7 @@ module Adamantium
|
||||
end
|
||||
|
||||
def excerpt
|
||||
name ? truncate_html(content, 140, true) : content
|
||||
name ? truncate_html(content, 240, true) : content
|
||||
end
|
||||
|
||||
def permalink
|
||||
@@ -100,6 +100,8 @@ module Adamantium
|
||||
def posted_in
|
||||
if name.nil?
|
||||
:statuses
|
||||
elsif post_type.to_sym == :book
|
||||
:bookshelf
|
||||
elsif location.nil?
|
||||
:posts
|
||||
else
|
||||
|
Reference in New Issue
Block a user