PHP Classes

File: templates/error.twig

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   templates/error.twig   Download  
File: templates/error.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 5 days ago
Size: 1,893 bytes
 

Contents

Class file image Download
{% extends "base.twig" %} {% set resolved_error_title = error_title|default( error_title_code is defined ? t(error_title_code, {}, locale, ['common', 'errors']) : t('ui.error.title', {}, locale, ['common']) ) %} {% set resolved_error_message = error|default( error_code is defined ? t(error_code, {}, locale, ['common', 'errors']) : t('ui.error.processing_request_failed', {}, locale, ['common']) ) %} {% block title %}{{ resolved_error_title }} - {{ parent() }}{% endblock %} {% block content %} <div class="row justify-content-center"> <div class="col-lg-6"> <div class="card border-danger"> <div class="card-header bg-danger text-white"> <h5 class="mb-0"> <i class="fas fa-exclamation-triangle"></i> {{ resolved_error_title }} </h5> </div> <div class="card-body text-center"> <i class="fas fa-ban text-danger mb-3" style="font-size: 4rem;"></i> <h4>{{ resolved_error_title|default(t('ui.error.access_error', {}, locale, ['common'])) }}</h4> <p class="text-muted">{{ resolved_error_message }}</p> <div class="mt-4"> <a href="/" class="btn btn-primary"> <i class="fas fa-home"></i> {{ t('ui.error.return_to_dashboard', {}, locale, ['common']) }} </a> {% if current_user %} <button class="btn btn-secondary" onclick="history.back()"> <i class="fas fa-arrow-left"></i> {{ t('ui.common.go_back', {}, locale, ['common']) }} </button> {% endif %} </div> </div> </div> </div> </div> {% endblock %}