Class: App::Views::BookNewPost

Inherits:
Layout
  • Object
show all
Defined in:
app/views/book_new_post.rb

Instance Method Summary collapse

Methods inherited from Layout

#page_title, #selected_item

Methods included from App::ViewHelpers

#add_book_button, #admin, #admin?, #app_name, #base_url, #book_permitted, #count_instances, #external_link_glyph, #flag_modal_button, #flags, #get_instances_per_page, #instance_permitted, #instances_by_names, #javascripts, #json_file, #logged_in, #map_height, #metadata, #not_empty, #place_permitted, #places, #rendered_flash, #stylesheets, #user_name

Instance Method Details

#authorObject


5
6
7
# File 'app/views/book_new_post.rb', line 5

def author
  @new_book[:author]
end

#coverObject


21
22
23
24
# File 'app/views/book_new_post.rb', line 21

def cover
  # @new_book.image_link(zoom: 5)
  @new_book[:cover]
end

#cover_altObject


26
27
28
# File 'app/views/book_new_post.rb', line 26

def cover_alt
  @new_book[:cover].nil? ? "No thumbnail available" : "#{title}, #{year}"
end

#isbnObject


17
18
19
# File 'app/views/book_new_post.rb', line 17

def isbn
  @isbn
end

30
31
32
# File 'app/views/book_new_post.rb', line 30

def link
  @new_book[:link]
end

#titleObject


9
10
11
# File 'app/views/book_new_post.rb', line 9

def title
  @new_book[:title]
end

#yearObject


13
14
15
# File 'app/views/book_new_post.rb', line 13

def year
  @new_book[:year]
end