From 189da4fdc1408a25b4fd68c0b7d5834232a599a2 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 23 Aug 2021 10:32:48 +0000 Subject: untangle the app template into separate templates and fix bbcode view --- view/theme/redbasic/css/style.css | 2 +- view/tpl/app.tpl | 14 +------------- view/tpl/app_inline.tpl | 26 ++++++++++++++++++++++++++ view/tpl/app_nav.tpl | 2 +- view/tpl/app_nav_pinned.tpl | 1 + view/tpl/app_order.tpl | 3 +++ 6 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 view/tpl/app_inline.tpl create mode 100644 view/tpl/app_nav_pinned.tpl create mode 100644 view/tpl/app_order.tpl (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 811df02e4..228e7b63a 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1743,7 +1743,7 @@ dl.bb-dl > dd > li { border-left: 0.2rem solid #eee; } -.app-icon { +.app-icon i { color: #777; font-size: 80px; text-shadow: 3px 3px 3px lightgrey; diff --git a/view/tpl/app.tpl b/view/tpl/app.tpl index 69af0436b..f3f6ae58b 100644 --- a/view/tpl/app.tpl +++ b/view/tpl/app.tpl @@ -1,5 +1,3 @@ -{{if ! ($navapps || $order)}} -
{{if $app.type !== 'system'}} @@ -24,10 +22,9 @@ {{/if}}

{{$app.name}}{{if $app.price}} ({{$app.price}}){{/if}}

-
-
-{{/if}} -{{if $navapps}} -{{if $icon}}{{else}}{{/if}}{{$app.name}} -{{/if}} -{{if $order}} - - -{{if $icon}}{{else}}{{/if}}{{$app.name}}
-{{/if}} diff --git a/view/tpl/app_inline.tpl b/view/tpl/app_inline.tpl new file mode 100644 index 000000000..fc3675380 --- /dev/null +++ b/view/tpl/app_inline.tpl @@ -0,0 +1,26 @@ +

{{$app.name}}{{if $app.price}} ({{$app.price}}){{/if}}

+ + {{if $icon}} + + {{else}} + + {{/if}} + +
+ {{if $app.desc}}{{$app.desc}}{{/if}} +
+{{if $action_label}} +
+
+ + {{if $action_label}} + + {{/if}} + {{if $purchase && $app.type !== 'system'}} + + {{/if}} +
+
+{{/if}} + + diff --git a/view/tpl/app_nav.tpl b/view/tpl/app_nav.tpl index 817c74763..0d6e66892 100644 --- a/view/tpl/app_nav.tpl +++ b/view/tpl/app_nav.tpl @@ -1 +1 @@ -{{if $icon}}{{else}}{{/if}}{{$app.name}} +{{if $icon}}{{else}}{{/if}}{{$app.name}} diff --git a/view/tpl/app_nav_pinned.tpl b/view/tpl/app_nav_pinned.tpl new file mode 100644 index 000000000..817c74763 --- /dev/null +++ b/view/tpl/app_nav_pinned.tpl @@ -0,0 +1 @@ +{{if $icon}}{{else}}{{/if}}{{$app.name}} diff --git a/view/tpl/app_order.tpl b/view/tpl/app_order.tpl new file mode 100644 index 000000000..53c770cb7 --- /dev/null +++ b/view/tpl/app_order.tpl @@ -0,0 +1,3 @@ + + +{{if $icon}}{{else}}{{/if}}{{$app.name}}
-- cgit v1.2.3