From 6b8e3f251f69c9d7d560148100cdb8df941a81c2 Mon Sep 17 00:00:00 2001 From: Ruin0x11 Date: Mon, 4 May 2020 15:15:30 -0700 Subject: [PATCH] Implement pool merging --- client/css/pool-list-view.styl | 2 +- client/html/pool.tpl | 2 +- client/html/pools_page.tpl | 4 +- client/js/controllers/pool_controller.js | 4 +- client/js/controls/pool_input_control.js | 25 --- client/js/models/post.js | 213 ++++++++++++----------- client/js/views/pool_merge_view.js | 9 +- server/szurubooru/func/pools.py | 47 ++--- 8 files changed, 137 insertions(+), 169 deletions(-) diff --git a/client/css/pool-list-view.styl b/client/css/pool-list-view.styl index 2daf6941..0f57649b 100644 --- a/client/css/pool-list-view.styl +++ b/client/css/pool-list-view.styl @@ -15,7 +15,7 @@ background: $top-navigation-color .names width: 84% - .usages + .post-count text-align: center width: 8% .creation-time diff --git a/client/html/pool.tpl b/client/html/pool.tpl index 5af10c96..e1e5311f 100644 --- a/client/html/pool.tpl +++ b/client/html/pool.tpl @@ -1,5 +1,5 @@
-

<%- ctx.pool.first_name %>

+

<%- ctx.pool.names[0] %>