Class: App::Views::InstanceShow

Inherits:
Layout
  • Object
show all
Includes:
App::ViewHelpers
Defined in:
app/views/instance_show.rb

Instance Method Summary collapse

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

Methods inherited from Layout

#page_title, #selected_item

Instance Method Details

#added_onObject


59
60
61
# File 'app/views/instance_show.rb', line 59

def added_on
  @instance.added_on
end

#book_slugObject


7
8
9
# File 'app/views/instance_show.rb', line 7

def book_slug
  @book.slug
end

#flaggedObject


35
36
37
# File 'app/views/instance_show.rb', line 35

def flagged
  @instance.flagged
end

#idObject


47
48
49
# File 'app/views/instance_show.rb', line 47

def id
  @instance.id
end

#latObject


63
64
65
# File 'app/views/instance_show.rb', line 63

def lat
  @instance.place.lat
end

#lonObject


67
68
69
# File 'app/views/instance_show.rb', line 67

def lon
  @instance.place.lon
end

#next_idObject


75
76
77
# File 'app/views/instance_show.rb', line 75

def next_id
  @next_instance.id unless @next_instance.nil?
end

#noteObject


39
40
41
# File 'app/views/instance_show.rb', line 39

def note
  @instance.note
end

#ownerObject


31
32
33
# File 'app/views/instance_show.rb', line 31

def owner
  @instance.user.name
end

#pageObject


11
12
13
# File 'app/views/instance_show.rb', line 11

def page
  @instance.page
end

#place_nameObject


23
24
25
# File 'app/views/instance_show.rb', line 23

def place_name
  @instance.place.name
end

#place_slugObject


19
20
21
# File 'app/views/instance_show.rb', line 19

def place_slug
  @instance.place.slug
end

#previous_idObject


71
72
73
# File 'app/views/instance_show.rb', line 71

def previous_id
  @previous_instance.id unless @previous_instance.nil?
end

#sequenceObject


15
16
17
# File 'app/views/instance_show.rb', line 15

def sequence
  @instance.sequence
end

#specialObject


43
44
45
# File 'app/views/instance_show.rb', line 43

def special
  @instance.special
end

#special_fieldObject


51
52
53
# File 'app/views/instance_show.rb', line 51

def special_field
  @book.special.field unless @book.special.nil?
end

#special_help_textObject


55
56
57
# File 'app/views/instance_show.rb', line 55

def special_help_text
  @book.special_help_text unless @book.special_help_text.nil?
end

#textObject


27
28
29
# File 'app/views/instance_show.rb', line 27

def text
  @instance.text
end