From 6e85a7686d4ad1f12818fdecc105cf32a935e35d Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 17 Sep 2026 22:54:19 -0500 Subject: [PATCH] #296: move URL column to position 2 (right after Paste) in history and mine tables --- internal/web/static/history.js | 2 +- internal/web/static/mine.js | 2 +- internal/web/templates/history.html | 4 ++-- internal/web/templates/mine.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/web/static/history.js b/internal/web/static/history.js index 2ad0f55..29fcf52 100644 --- a/internal/web/static/history.js +++ b/internal/web/static/history.js @@ -9,9 +9,9 @@ const t = PaletteTable.init({ ? `${t.esc(it.title)}${it.is_can ? ' can' : ''}` : `${t.esc(it.id)}${it.is_can ? ' can' : ''}`) + `` + + (it.custom_slug ? `/${t.esc(it.custom_slug)}` : `none`) + `${t.esc(it.type || it.language || 'text')}` + `${t.fmtSize(it.size)}${it.view_count}${t.ago(it.created_at)}` + - (it.custom_slug ? `/${t.esc(it.custom_slug)}` : `none`) + `${t.esc(it.id)}`, emptyFiltered: 'No pastes match your search.', emptyAll: 'No pastes yet. Create the first one.', diff --git a/internal/web/static/mine.js b/internal/web/static/mine.js index ad1b25e..0318e0f 100644 --- a/internal/web/static/mine.js +++ b/internal/web/static/mine.js @@ -21,9 +21,9 @@ const t = PaletteTable.init({ ? `${t.esc(it.title)}${it.is_can ? ' can' : ''}` : `${t.esc(it.id)}${it.is_can ? ' can' : ''}`) + `` + + (it.custom_slug ? `/${t.esc(it.custom_slug)}` : `none`) + `${t.esc(it.type || it.language || 'text')}` + `${t.fmtSize(it.size)}${t.ago(it.created_at)}` + - (it.custom_slug ? `/${t.esc(it.custom_slug)}` : `none`) + `${t.esc(it.id)}` + ``, emptyFiltered: 'No pastes from this browser match your search.', diff --git a/internal/web/templates/history.html b/internal/web/templates/history.html index 2896a62..d997ac1 100644 --- a/internal/web/templates/history.html +++ b/internal/web/templates/history.html @@ -8,14 +8,14 @@
- + + - diff --git a/internal/web/templates/mine.html b/internal/web/templates/mine.html index 5ef7d9e..35f0429 100644 --- a/internal/web/templates/mine.html +++ b/internal/web/templates/mine.html @@ -8,13 +8,13 @@
PasteURL Type Size Views CreatedURL ID
- + + -
PasteURL Type Size CreatedURL ID