mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 16:53:11 +08:00
Migrated templates to plates
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
{% extends 'core/layout/default.html.twig' %}
|
||||
|
||||
{% block title %}{{ translate('URL Not Found') }}{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<style>
|
||||
p {margin-bottom: 20px;}
|
||||
body {text-align: center;}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ translate('Oops!') }}</h1>
|
||||
<hr>
|
||||
<p>{{ translate('This short URL doesn\'t seem to be valid.') }}</p>
|
||||
<p>{{ translate('Make sure you included all the characters, with no extra punctuation.') }}</p>
|
||||
{% endblock %}
|
||||
19
module/Core/templates/error/404.phtml
Normal file
19
module/Core/templates/error/404.phtml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php $this->layout('ShlinkCore::layout/default') ?>
|
||||
|
||||
<?php $this->start('title') ?>
|
||||
<?= $this->translate('URL Not Found') ?>
|
||||
<?php $this->end() ?>
|
||||
|
||||
<?php $this->start('stylesheets') ?>
|
||||
<style>
|
||||
p {margin-bottom: 20px;}
|
||||
body {text-align: center;}
|
||||
</style>
|
||||
<?php $this->end() ?>
|
||||
|
||||
<?php $this->start('main') ?>
|
||||
<h1><?= $this->translate('Oops!') ?></h1>
|
||||
<hr>
|
||||
<p><?= $this->translate('This short URL doesn\'t seem to be valid.') ?></p>
|
||||
<p><?= $this->translate('Make sure you included all the characters, with no extra punctuation.') ?></p>
|
||||
<?php $this->end() ?>
|
||||
@@ -1,21 +0,0 @@
|
||||
{% extends 'core/layout/default.html.twig' %}
|
||||
|
||||
{% block title %}{{ status }} {{ reason }}{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<style>
|
||||
p {margin-bottom: 20px;}
|
||||
body {text-align: center;}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ translate('Oops!') }}</h1>
|
||||
<hr>
|
||||
{% if status != 404 %}
|
||||
<p>{{ translate('We encountered a %s %s error.') | format(status, reason) }}</p>
|
||||
{% else %}
|
||||
<p>{{ translate('This short URL doesn\'t seem to be valid.') }}</p>
|
||||
<p>{{ translate('Make sure you included all the characters, with no extra punctuation.') }}</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
25
module/Core/templates/error/error.phtml
Normal file
25
module/Core/templates/error/error.phtml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php $this->layout('ShlinkCore::layout/default') ?>
|
||||
|
||||
<?php $this->start('title') ?>
|
||||
<?= $this->e($status . ' ' . $reason) ?>
|
||||
<?php $this->end() ?>
|
||||
|
||||
<?php $this->start('stylesheets') ?>
|
||||
<style>
|
||||
p {margin-bottom: 20px;}
|
||||
body {text-align: center;}
|
||||
</style>
|
||||
<?php $this->end() ?>
|
||||
|
||||
<?php $this->start('main') ?>
|
||||
<h1><?= $this->translate('Oops!') ?></h1>
|
||||
<hr>
|
||||
|
||||
<?php if ($status !== 404): ?>
|
||||
<p><?= sprintf($this->translate('We encountered a %s %s error.'), $status, $reason) ?></p>
|
||||
<?php else: ?>
|
||||
<p><?= $this->translate('This short URL doesn\'t seem to be valid.') ?></p>
|
||||
<p><?= $this->translate('Make sure you included all the characters, with no extra punctuation.') ?></p>
|
||||
<?php endif; ?>
|
||||
<?php $this->end() ?>
|
||||
|
||||
Reference in New Issue
Block a user