Compare commits
2 commits
35883bdcde
...
b4284f74f8
| Author | SHA1 | Date | |
|---|---|---|---|
| b4284f74f8 | |||
| 50abfe3b56 |
6 changed files with 26 additions and 0 deletions
|
|
@ -83,6 +83,8 @@ async fn homepage(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
|
||||||
|
|
||||||
use pagetop::prelude::*;
|
use pagetop::prelude::*;
|
||||||
|
|
||||||
|
include_locales!(LOCALES_ALINER);
|
||||||
|
|
||||||
/// Implementa el tema para usar en pruebas que muestran el esquema de páginas HTML.
|
/// Implementa el tema para usar en pruebas que muestran el esquema de páginas HTML.
|
||||||
///
|
///
|
||||||
/// Define un tema mínimo útil para:
|
/// Define un tema mínimo útil para:
|
||||||
|
|
@ -94,6 +96,14 @@ use pagetop::prelude::*;
|
||||||
pub struct Aliner;
|
pub struct Aliner;
|
||||||
|
|
||||||
impl Extension for Aliner {
|
impl Extension for Aliner {
|
||||||
|
fn name(&self) -> L10n {
|
||||||
|
L10n::t("extension_name", &LOCALES_ALINER)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn description(&self) -> L10n {
|
||||||
|
L10n::t("extension_description", &LOCALES_ALINER)
|
||||||
|
}
|
||||||
|
|
||||||
fn theme(&self) -> Option<ThemeRef> {
|
fn theme(&self) -> Option<ThemeRef> {
|
||||||
Some(&Self)
|
Some(&Self)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
extensions/pagetop-aliner/src/locale/en-US/extension.ftl
Normal file
2
extensions/pagetop-aliner/src/locale/en-US/extension.ftl
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
extension_name = Aliner
|
||||||
|
extension_description = Minimal theme that schematically shows the HTML page composition.
|
||||||
2
extensions/pagetop-aliner/src/locale/es-ES/extension.ftl
Normal file
2
extensions/pagetop-aliner/src/locale/es-ES/extension.ftl
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
extension_name = Aliner
|
||||||
|
extension_description = Tema mínimo que muestra esquemáticamente la composición de las páginas HTML.
|
||||||
|
|
@ -134,6 +134,14 @@ impl Template for BootsierTemplate {
|
||||||
pub struct Bootsier;
|
pub struct Bootsier;
|
||||||
|
|
||||||
impl Extension for Bootsier {
|
impl Extension for Bootsier {
|
||||||
|
fn name(&self) -> L10n {
|
||||||
|
L10n::t("extension_name", &LOCALES_BOOTSIER)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn description(&self) -> L10n {
|
||||||
|
L10n::t("extension_description", &LOCALES_BOOTSIER)
|
||||||
|
}
|
||||||
|
|
||||||
fn theme(&self) -> Option<ThemeRef> {
|
fn theme(&self) -> Option<ThemeRef> {
|
||||||
Some(&Self)
|
Some(&Self)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
extension_name = Bootsier
|
||||||
|
extension_description = Bootstrap-based theme with flexible styles and components.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
extension_name = Bootsier
|
||||||
|
extension_description = Tema basado en Bootstrap para aplicar su catálogo de estilos y componentes flexibles.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue