From 41ab13c14fdb30a53b88bfc5de7f9f19cb984325 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Thu, 11 Apr 2024 23:02:27 +0500 Subject: [PATCH] Various improvements to pages: notifications and subscriptions - fix rounding on /notifications/subscriptions - add navigation interconnectivity between notifications and subscriptions - use modern style for tabs - clearing notificatons: hide the whole form instead of div. It doesn't seem like its changed via JS? - replace issue-title-buttons and edit-buttons with universal top-right-buttons, get rid of tw-mr-0 helpers - repo issues: fix misalignments on mobile view --- templates/repo/issue/view_title.tmpl | 8 ++--- .../user/notification/notification_div.tmpl | 29 +++++++++++-------- .../notification_subscriptions.tmpl | 19 +++++++----- web_src/css/base.css | 12 ++++++++ web_src/css/repo.css | 20 +++++-------- 5 files changed, 53 insertions(+), 35 deletions(-) diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index 3a5ba0f4a3..66afd49090 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -12,16 +12,16 @@ -
+
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}} - + {{end}} {{if not .Issue.IsPull}} - {{ctx.Locale.Tr "repo.issues.new"}} + {{ctx.Locale.Tr "repo.issues.new"}} {{end}}
{{if and (or .HasIssuesOrPullsWritePermission .IsIssuePoster) (not .Repository.IsArchived)}} -
+
diff --git a/templates/user/notification/notification_div.tmpl b/templates/user/notification/notification_div.tmpl index bf3b51ee3b..99da119901 100644 --- a/templates/user/notification/notification_div.tmpl +++ b/templates/user/notification/notification_div.tmpl @@ -1,8 +1,8 @@
{{$notificationUnreadCount := call .NotificationUnreadCount}} -
-