app/controllers/pages_controller.rb
# This is effectively the "overview":
This is effectively the "overview".
This is effectively the " overview " .
def show
    @page = PageDecorator.decorate(Page.with_hierarchy.find(params[:id]))
    set_noindex_if_needed(@page)
    @page.fix_non_image_hero 
    @page_title = @page.name
    @key_data = @page.key_data
    @associations = build_page_associations(@page)
    @page.associated_pages = @associations 
    setup_habitat_bar_chart
    @show_trophic_web = @page.rank&.r_species?
    respond_to do |format|
      format.html {}
    end
  end
def show @page = PageDecorator . decorate ( Page . with_hierarchy . find ( params [ :id ] ) ) set_noindex_if_needed ( @page ) @page . fix_non_image_hero @page_title = @page . name @key_data = @page . key_data @associations = build_page_associations ( @page ) @page . associated_pages = @associations setup_habitat_bar_chart @show_trophic_web = @page . rank &. r_species? respond_to do | format | format . html { } end end
This is effectively the "overview":
This is effectively the " overview " :
# TEMP: remove me when this is no longer an issue. # For autogen summary text # needed for autogen text # Required mostly for paginating the first tab on the page (kaminari # doesn't know how to build the nested view...)