f0700b65f9
-All pages (including the reward and error pages) were updated to include options for displaying a configurable page header with title, image, description and in some cases a last updated date
-The error page was restructured slightly to display a different description based on the type of error (page not found error vs problem loading page error)
-Added new setting options to the `shared_pages` setting for `page_title_image` which allows changing the page title image displayed on applicable pages and also determines whether it uses a flip/spin animation or not
-Added a collection of new `page_header` settings to all pages that control displaying the new page title + image + description and also moved the last updated date from applicable pages into this section as well
-Existing `show_last_updated` settings that were moved a level deeper into the `page_header` have been automatically mapped to the new setting location upon statup to help older installs to work better out-of-the-box
-Added new css rules to the styles.scss file to support the new page header/title options
-Added a number of new locale strings for page titles and descriptions, and moved a few locale strings around to different names internally that were already using the same naming scheme for different elements (such as api_title being moved to api_documentation for example)
-Started adding new locale strings with replacement text such as {1} and {2} that get automatically replaced with proper values when loaded to allow for locale strings that support dynamic text
-Fixed an issue with too much empty space in the page header (especially in mobile and tablet modes) when `show_panels` was set to false on any page
25 lines
1.8 KiB
Plaintext
25 lines
1.8 KiB
Plaintext
extends layout
|
|
|
|
block content
|
|
if settings.shared_pages.page_header.page_title_image.enable_animation == true && settings.error_page.page_header.show_img
|
|
script.
|
|
$(document).ready(function() {
|
|
startRotateElement('img#header-img');
|
|
});
|
|
.col-xs-12.col-md-12
|
|
if settings.error_page.page_header.show_img == true || settings.error_page.page_header.show_title == true || settings.error_page.page_header.show_description == true
|
|
#page-header-container(style='align-items:' + (settings.error_page.page_header.show_img == true && settings.error_page.page_header.show_title == true && settings.error_page.page_header.show_description == true ? 'flex-start' : 'center'))
|
|
if settings.error_page.page_header.show_img == true
|
|
#header-img-container
|
|
img#header-img(src=(settings.shared_pages.page_header.page_title_image == null || settings.shared_pages.page_header.page_title_image.image_path == null || settings.shared_pages.page_header.page_title_image.image_path == '' ? '/img/page-title-img.png' : settings.shared_pages.page_header.page_title_image.image_path))
|
|
#page-title-container
|
|
if settings.error_page.page_header.show_title == true
|
|
h3#page-title=settings.locale.error_title.replace('{1}', settings.coin.name)
|
|
if settings.error_page.page_header.show_description == true
|
|
if settings.error_page.page_header.show_title != true
|
|
#page-title-container
|
|
.sub-page-header.text-muted=(error.status == null ? settings.locale.error_description_alt : settings.locale.error_description)
|
|
else
|
|
.sub-page-header.text-muted=(error.status == null ? settings.locale.error_description_alt : settings.locale.error_description)
|
|
.cardSpacer.clearfix
|
|
h2=(error.status == null ? '' : error.status + ' ') + message |