class Versions::ComparePage
- Versions::ComparePage
- MainLayout
- Reference
- Object
Defined in:
pages/versions/compare_page.crConstant Summary
-
ASSIGNS =
[context : HTTP::Server::Context, diff : String, from : String, to : String] of Nil
Constructors
- .new(context : HTTP::Server::Context, diff : String, from : String, to : String, **unused_exposures)
Instance Method Summary
- #arrow_icon
- #commit_log_button
- #compare_button
- #content
- #diff : String
- #from : String
-
#page_title
The default page title.
- #to : String
- #version_picker(*, input_name, selected_version)
Instance methods inherited from class MainLayout
content
content,
page_title
page_title,
render
render
Constructor Detail
def self.new(context : HTTP::Server::Context, diff : String, from : String, to : String, **unused_exposures)
#
Instance Method Detail
def page_title
#
Description copied from class MainLayout
The default page title. It is passed to Shared::LayoutHead
.
Add a #page_title
method to pages to override it. You can also remove
This method so every page is required to have its own page title.