From 239bc0a14d4061896c1ff63b3f5c88913eddfd32 Mon Sep 17 00:00:00 2001 From: Luxray5474 Date: Fri, 21 Aug 2020 23:32:15 -0400 Subject: [PATCH 1/5] Initial commit, not complete + Create new sql column for file last modified time (flmt) + Implement uploading of flmt to server + Implement flmt in post model + Ability to read flmt thru API + New section in post_readonly_sidebar that shows flmt ! Somehow flmt is the same as post creation time ! Implement proper alembic migrations ! Implement ability to sort by flmt ! Implement ability to filter posts by flmt ! Code cleanup ~ Polish post sidebar ~ Implement flmt visibility in post listing hover text ~ Implement function in misc.js that formats to absolute date --- client/html/post_readonly_sidebar.tpl | 5 +++++ client/js/controllers/post_upload_controller.js | 1 + client/js/models/post.js | 8 ++++++++ client/js/views/post_upload_view.js | 5 +++++ server/szurubooru/api/post_api.py | 1 + server/szurubooru/func/posts.py | 10 ++++++++++ .../versions/336a76ec1338_create_post_tables.py | 1 + server/szurubooru/model/post.py | 1 + 8 files changed, 32 insertions(+) diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl index 7be5ba3e..9fd2f095 100644 --- a/client/html/post_readonly_sidebar.tpl +++ b/client/html/post_readonly_sidebar.tpl @@ -26,6 +26,11 @@ <%= ctx.makeRelativeTime(ctx.post.creationTime) %> +
+ Source file last modified + <%= ctx.makeRelativeTime(ctx.post.fileLastModifiedTime) %> +
+ <% if (ctx.enableSafety) { %>