From f545f74234cc8fb78d1a2cbedacc08854cb3717d Mon Sep 17 00:00:00 2001 From: Manager Bot Date: Thu, 17 Nov 2022 20:05:00 +0000 Subject: [PATCH] Refactor dashboard. --- Web/templates/dashboard/blog_history.html.ep | 49 +++++++++--------- Web/templates/dashboard/blog_media.html.ep | 48 +++++++++--------- Web/templates/dashboard/blog_pages.html.ep | 48 +++++++++--------- Web/templates/dashboard/blog_posts.html.ep | 52 ++++++++++---------- 4 files changed, 94 insertions(+), 103 deletions(-) diff --git a/Web/templates/dashboard/blog_history.html.ep b/Web/templates/dashboard/blog_history.html.ep index 35d2ed0..e59de03 100644 --- a/Web/templates/dashboard/blog_history.html.ep +++ b/Web/templates/dashboard/blog_history.html.ep @@ -4,29 +4,26 @@ %= include '_base/status_window'; -% if ( $history ) { - - - - - - - - - - % for my $change ( @{$history} ) { - - - - - - % } - -
When?What?Action
<%= $change->{dateref} %><%= $change->{message} %> -
- - -
-
-% } - + + + + + + + + + + % for my $change ( @{$history} ) { + + + + + + % } + +
When?What?Action
<%= $change->{dateref} %><%= $change->{message} %> +
+ + +
+
diff --git a/Web/templates/dashboard/blog_media.html.ep b/Web/templates/dashboard/blog_media.html.ep index 71410fa..cc07bc2 100644 --- a/Web/templates/dashboard/blog_media.html.ep +++ b/Web/templates/dashboard/blog_media.html.ep @@ -16,28 +16,26 @@ -% if ( $media_files ) { - - - - - - - - - - % for my $media_file ( @{$media_files} ) { - - - - - - % } - -
ImageEmbedd LinkDelete
<%= $media_file->{markdown} %> -
- - -
-
-% } + + + + + + + + + + % for my $media_file ( @{$media_files} ) { + + + + + + % } + +
ImageEmbedd LinkDelete
<%= $media_file->{markdown} %> +
+ + +
+
diff --git a/Web/templates/dashboard/blog_pages.html.ep b/Web/templates/dashboard/blog_pages.html.ep index 2d17013..dd98ca2 100644 --- a/Web/templates/dashboard/blog_pages.html.ep +++ b/Web/templates/dashboard/blog_pages.html.ep @@ -15,28 +15,26 @@ -% if ( $blog_pages ) { - - - - - - - - - - % for my $page ( @{$blog_pages} ) { - - - - - - % } - -
PathEditDelete
<%= $page->rel_path %>Edit Page -
- - -
-
-% } + + + + + + + + + + % for my $page ( @{$blog_pages} ) { + + + + + + % } + +
PathEditDelete
<%= $page->rel_path %>Edit Page +
+ + +
+
diff --git a/Web/templates/dashboard/blog_posts.html.ep b/Web/templates/dashboard/blog_posts.html.ep index 7ca3ab5..8990940 100644 --- a/Web/templates/dashboard/blog_posts.html.ep +++ b/Web/templates/dashboard/blog_posts.html.ep @@ -15,31 +15,29 @@ -% if ( $blog_posts ) { - - - - - - - - - - - % for my $post ( @{$blog_posts} ) { - - - - - - - % } - -
TitleDateEditDelete
<%= $post->headers->{title} %><%= $post->headers->{date} %>Edit Post -
- - -
-
-% } + + + + + + + + + + + % for my $post ( @{$blog_posts} ) { + + + + + + + % } + +
TitleDateEditDelete
<%= $post->headers->{title} %><%= $post->headers->{date} %>Edit Post +
+ + +
+