class

Polls::ShowPage

Inherits MainLayout < DateFormatHelper < Rosetta::Translatable < Rosetta::Translatable < Lucky::HTMLPage < Habitat::SettingsHelpers < Habitat::TempConfig < Lucky::HTMLBuilder < Lucky::SelectHelpers < Lucky::LabelHelpers < Lucky::InputHelpers < Lucky::SvgInliner < Lucky::LiveReloadTag < Lucky::TagDefaults < Lucky::RenderIfDefined < Lucky::HelpfulParagraphError < Lucky::MountComponent < Lucky::ForgeryProtectionHelpers < Lucky::TimeHelpers < Lucky::UrlHelpers < Lucky::HTMLTextHelpers < Lucky::TextHelpers < Lucky::NumberToCurrency < Lucky::AssetHelpers < Lucky::Assignable < Lucky::SpecialtyTags < Lucky::FormHelpers < Habitat::SettingsHelpers < Habitat::TempConfig < Lucky::LinkHelpers < Lucky::CustomTags < Lucky::CheckTagContent < Lucky::BaseTags < Lucky::CheckTagContent < Reference < Object

Constants

ASSIGNS = [context : HTTP::Server::Context, current_user : User, poll : Poll, event : Event, options_with_counts : Array(NamedTuple(option: PollOption, vote_count: Int64)), user_vote : PollVote | ::Nil] of Nil

Constructors

new(context : HTTP::Server::Context, current_user : User, poll : Poll, event : Event, options_with_counts : Array(NamedTuple(option: PollOption, vote_count: Int64)), user_vote : PollVote | Nil = nil, **unused_exposures)

Instance methods

content
Source
event
options_with_counts
page_title

MainLayout defines a default 'page_title'.

Add a 'page_title' method to your indivual pages to customize each page's title.

Or, if you want to require every page to set a title, change the 'page_title' method in this layout to:

abstract def page_title : String

This will force pages to define their own 'page_title' method.

Source
poll
user_vote