From a31aa01f0c905ae768ddccf4b2cce7a2687c0e0c Mon Sep 17 00:00:00 2001 From: zeim839 Date: Sat, 13 Jan 2024 05:52:08 -0500 Subject: [PATCH] refactor: change to 2-space tabs --- views/admin.ejs | 144 +++++++++++++-------------- views/blog.ejs | 56 ++++++----- views/components/blog-table.ejs | 104 ++++++++++---------- views/components/footer.ejs | 52 +++++----- views/components/images-table.ejs | 28 +++--- views/components/navbar.ejs | 60 ++++++------ views/components/users-table.ejs | 92 ++++++++--------- views/edit-blog.ejs | 158 +++++++++++++++--------------- views/edit-image.ejs | 84 ++++++++-------- views/edit-user.ejs | 148 ++++++++++++++-------------- views/login.ejs | 62 ++++++------ 11 files changed, 495 insertions(+), 493 deletions(-) diff --git a/views/admin.ejs b/views/admin.ejs index 019bec9..23c1723 100644 --- a/views/admin.ejs +++ b/views/admin.ejs @@ -1,75 +1,75 @@ - - Admin - - - - - - - - - - - - - - - - <%- include('./components/alert.ejs') %> - <%- include('./components/navbar.ejs') %> -
-
- - -

Blog

-
- <%- include('./components/blog-table.ejs', { data: blog}) %> -
-
- - -

Users

-
-
- <%- include('./components/users-table.ejs', { data: users }) %> -
-
-
- - -

Images

-
-
- <%- include('./components/images-table.ejs', { data: images }) %> -
-
-
- <%- include('./components/footer.ejs') %> - + + Admin + + + + + + + + + + + + + + + + <%- include('./components/alert.ejs') %> + <%- include('./components/navbar.ejs') %> +
+
+ + +

Blog

+
+ <%- include('./components/blog-table.ejs', { data: blog}) %> +
+
+ + +

Users

+
+
+ <%- include('./components/users-table.ejs', { data: users }) %> +
+
+
+ + +

Images

+
+
+ <%- include('./components/images-table.ejs', { data: images }) %> +
+
+
+ <%- include('./components/footer.ejs') %> + diff --git a/views/blog.ejs b/views/blog.ejs index 6b3c6b2..66e4c87 100644 --- a/views/blog.ejs +++ b/views/blog.ejs @@ -1,27 +1,35 @@ - - - - - - UF Open Source Club | Blog - - - - - - <%- include('./components/alert.ejs') %> - <%- include('./components/navbar.ejs') %> -
-
-

Blog

-
- <%- include('./components/blog-grid.ejs', { blog: blog }) %> -
- <%- include('./components/footer.ejs') %> - + + + + + + + + UF Open Source Club | Blog + + + + + + <%- include('./components/alert.ejs') %> + <%- include('./components/navbar.ejs') %> +
+
+

Blog

+
+ <%- include('./components/blog-grid.ejs', { blog: blog }) %> +
+ <%- include('./components/footer.ejs') %> + diff --git a/views/components/blog-table.ejs b/views/components/blog-table.ejs index 0b4797e..5c4016f 100644 --- a/views/components/blog-table.ejs +++ b/views/components/blog-table.ejs @@ -1,54 +1,54 @@
- - - - - - - - - - - - <% data.forEach((entry) => { %> - - - - - - - - - - <% }) %> - - - - - - - - - - - - -
- TitleSubtitleStatusAuthorEditPreview
- <%= entry.title %><%= entry.subtitle %><%= entry.status %><%= entry.author %> - - - -
+ + + + + + + + + + + + <% data.forEach((entry) => { %> + + + + + + + + + + <% }) %> + + + + + + + + + + + + +
+ TitleSubtitleStatusAuthorEditPreview
+ <%= entry.title %><%= entry.subtitle %><%= entry.status %><%= entry.author %> + + + +
diff --git a/views/components/footer.ejs b/views/components/footer.ejs index 7458b6e..f2221e7 100644 --- a/views/components/footer.ejs +++ b/views/components/footer.ejs @@ -1,31 +1,31 @@ diff --git a/views/components/images-table.ejs b/views/components/images-table.ejs index ce1596d..890dd91 100644 --- a/views/components/images-table.ejs +++ b/views/components/images-table.ejs @@ -5,7 +5,7 @@ + /> Path Description @@ -13,22 +13,22 @@ <% data.forEach((entry) => { %> - - - + + - - <%= `/api/image/${entry.id}` %> - <%= entry.description %> - - - - + + <% }) %> diff --git a/views/components/navbar.ejs b/views/components/navbar.ejs index f322b9e..2621c2d 100644 --- a/views/components/navbar.ejs +++ b/views/components/navbar.ejs @@ -1,32 +1,32 @@ diff --git a/views/components/users-table.ejs b/views/components/users-table.ejs index 62bb573..fb6e76c 100644 --- a/views/components/users-table.ejs +++ b/views/components/users-table.ejs @@ -1,48 +1,48 @@
- - - - - - - - - - - <% data.forEach((entry) => { %> - - - - - - - - - <% }) %> - - - - - - - - - - - -
- - UsernameFull NameRoleisAdminEdit
- <%= entry.username %><%= entry.fullName %><%= entry.role %><%= entry.isAdmin %> - -
+ + + + + + + + + + + <% data.forEach((entry) => { %> + + + + + + + + + <% }) %> + + + + + + + + + + + +
+ + UsernameFull NameRoleisAdminEdit
+ <%= entry.username %><%= entry.fullName %><%= entry.role %><%= entry.isAdmin %> + +
diff --git a/views/edit-blog.ejs b/views/edit-blog.ejs index 1e2e4b4..76ea983 100644 --- a/views/edit-blog.ejs +++ b/views/edit-blog.ejs @@ -1,83 +1,81 @@ - - - - - Edit Blog - - - - - - - - - <%- include('./components/navbar.ejs') %> -
-

EDIT BLOG

-
- - - - - - - - - - -
- - -
- - <% if (!locals.isNew) { %> - - <% } %> -
-
- + + + + + Edit Blog + + + + + + + + + <%- include('./components/navbar.ejs') %> +
+

EDIT BLOG

+
+ + + + + + + + + + +
+ + +
+ + <% if (!locals.isNew) { %> + + <% } %> +
+
+ diff --git a/views/edit-image.ejs b/views/edit-image.ejs index 70675db..a5acfe3 100644 --- a/views/edit-image.ejs +++ b/views/edit-image.ejs @@ -1,45 +1,45 @@ - - - - - Edit Image - - - - - - - - - <%- include('./components/navbar.ejs') %> -
-

EDIT IMAGE

-
- - - - - - <% if (!locals.isNew) { %> - - <% } %> -
-
- + + + + + Edit Image + + + + + + + + + <%- include('./components/navbar.ejs') %> +
+

EDIT IMAGE

+
+ + + + + + <% if (!locals.isNew) { %> + + <% } %> +
+
+ diff --git a/views/edit-user.ejs b/views/edit-user.ejs index 45fb181..9cb3b3b 100644 --- a/views/edit-user.ejs +++ b/views/edit-user.ejs @@ -1,79 +1,75 @@ - - - - - Edit User - - - - - - - - - <%- include('./components/navbar.ejs') %> -
-

EDIT USER

-
- - - - - - - - - - -
- - <% if (!locals.isNew) { %> - - <% } %> -
-
- + + + + + Edit User + + + + + + + + + <%- include('./components/navbar.ejs') %> +
+

EDIT USER

+
+ + + + + + + + + + +
+ + <% if (!locals.isNew) { %> + + <% } %> +
+
+ - - - - diff --git a/views/login.ejs b/views/login.ejs index 60296c4..5736805 100644 --- a/views/login.ejs +++ b/views/login.ejs @@ -1,34 +1,34 @@ - - - - - - UF OSC | Admin Login - - - - - -
-
- - - - -
-

- Back to Home -

-
- + + + + + + UF OSC | Admin Login + + + + + +
+
+ + + + +
+

+ Back to Home +

+
+