From 96d24af20f4b5dd5860f0f6a8a22bd8a0ab02920 Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 7 Feb 2018 16:23:19 +0100 Subject: [PATCH] provide/fix adminpage div container for all admin pages --- view/templates/admin/deleteitem.tpl | 13 +- view/templates/admin/federation.tpl | 235 +++++++++++---------- view/templates/admin/settings_features.tpl | 33 +-- view/templates/failed_updates.tpl | 27 +-- view/templates/structure_check.tpl | 9 +- 5 files changed, 164 insertions(+), 153 deletions(-) diff --git a/view/templates/admin/deleteitem.tpl b/view/templates/admin/deleteitem.tpl index cf819dea67..f5abc96c1c 100644 --- a/view/templates/admin/deleteitem.tpl +++ b/view/templates/admin/deleteitem.tpl @@ -2,10 +2,11 @@

{{$title}} - {{$page}}

{{$intro1}}

{{$intro2}}

- -
- - {{include file="field_input.tpl" field=$deleteitemguid}} -
-
+
+ + {{include file="field_input.tpl" field=$deleteitemguid}} +
+
+ + diff --git a/view/templates/admin/federation.tpl b/view/templates/admin/federation.tpl index 193eefb565..bd2af3d784 100644 --- a/view/templates/admin/federation.tpl +++ b/view/templates/admin/federation.tpl @@ -1,118 +1,123 @@
-

{{$title}} - {{$page}}

- -

{{$intro}}

- {{if not $autoactive}} -

{{$hint}}

- {{/if}} -

{{$legendtext}}

- -
- +

{{$title}} - {{$page}}

+ + +

{{$intro}}

+ + {{if not $autoactive}} +

{{$hint}}

+ {{/if}} + +

{{$legendtext}}

- -{{foreach $counts as $c}} - {{if $c[0]['total'] > 0}} - - - - - - - - {{/if}} -{{/foreach}} -
{{$c[0]['platform']}}{{$c[0]['total']}} - {{$c[0]['network']}}
- - -
    - {{foreach $c[1] as $v}} -
  • - {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }} - {{$v['version']}} - {{else}} - {{$v['version']}} - {{/if}} - ({{$v['total']}}) -
  • - {{/foreach}} -
-
+ + + + + + {{foreach $counts as $c}} + {{if $c[0]['total'] > 0}} + + + + + + + + {{/if}} + {{/foreach}} +
{{$c[0]['platform']}}{{$c[0]['total']}} + {{$c[0]['network']}}
+ + +
    + {{foreach $c[1] as $v}} +
  • + {{if ($c[0]['platform']==='Friendica' and $version===$v['version']) }} + {{$v['version']}} + {{else}} + {{$v['version']}} + {{/if}} + ({{$v['total']}}) +
  • + {{/foreach}} +
+
+ diff --git a/view/templates/admin/settings_features.tpl b/view/templates/admin/settings_features.tpl index abcc527d42..d2bd35e041 100644 --- a/view/templates/admin/settings_features.tpl +++ b/view/templates/admin/settings_features.tpl @@ -1,21 +1,24 @@ -

{{$title}}

-
- +
+

{{$title}}

-{{foreach $features as $g => $f}} -

{{$f.0}}

+ + -
- {{foreach $f.1 as $fcat}} - {{include file="field_yesno.tpl" field=$fcat.0}} - {{include file="field_yesno.tpl" field=$fcat.1}} - {{/foreach}} + {{foreach $features as $g => $f}} +

{{$f.0}}

+ +
+ {{foreach $f.1 as $fcat}} + {{include file="field_yesno.tpl" field=$fcat.0}} + {{include file="field_yesno.tpl" field=$fcat.1}} + {{/foreach}} -
- +
+ +
-
-{{/foreach}} + {{/foreach}} - + +
diff --git a/view/templates/failed_updates.tpl b/view/templates/failed_updates.tpl index 8e949eda37..2fd6c3d694 100644 --- a/view/templates/failed_updates.tpl +++ b/view/templates/failed_updates.tpl @@ -1,18 +1,19 @@ -

{{$banner}}

+
+

{{$banner}}

-
{{$desc}}
+
{{$desc}}
-{{if $failed}} -{{foreach $failed as $f}} + {{if $failed}} + {{foreach $failed as $f}} +

{{$f}}

-

{{$f}}

- - -
-{{/foreach}} -{{/if}} + +
+ {{/foreach}} + {{/if}} +
diff --git a/view/templates/structure_check.tpl b/view/templates/structure_check.tpl index b3774eaddd..7193d38ee1 100644 --- a/view/templates/structure_check.tpl +++ b/view/templates/structure_check.tpl @@ -1,7 +1,8 @@ -

{{$banner}}

+
+

{{$banner}}

-

{{$check}}

- -
+

{{$check}}

+
+
-- 2.39.5