From 07e2e6537964e8d39306e45dc3c97db128162ea2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 16 May 2026 23:11:33 +0300 Subject: [PATCH] layout: move milestones link to issues/pulls header; drop releases stat --- static/css/gitly.scss | 16 ++++++++++++++++ templates/issues.html | 11 ++++++++--- templates/layout/repo_menu.html | 14 ++++---------- templates/pulls.html | 11 ++++++++--- 4 files changed, 36 insertions(+), 16 deletions(-) diff --git a/static/css/gitly.scss b/static/css/gitly.scss index b7e81f0..a473318 100644 --- a/static/css/gitly.scss +++ b/static/css/gitly.scss @@ -1116,6 +1116,22 @@ form { } } +.issues-header__actions { + display: flex; + align-items: center; + gap: 12px; +} + +.issues-header__milestones { + color: $gray-dark; + font-size: 13px; + font-weight: 500; + + &:hover { + text-decoration: underline; + } +} + .issues-header__new { background-color: #1f883d; color: $white !important; diff --git a/templates/issues.html b/templates/issues.html index ed3c8a5..37750d1 100644 --- a/templates/issues.html +++ b/templates/issues.html @@ -11,9 +11,14 @@

%issue_issues

- @if ctx.logged_in - %issue_new - @end +
+ @if repo.milestones_enabled() + %milestones + @end + @if ctx.logged_in + %issue_new + @end +
@if issues_with_users.len == 0 diff --git a/templates/layout/repo_menu.html b/templates/layout/repo_menu.html index 01470dd..5852702 100644 --- a/templates/layout/repo_menu.html +++ b/templates/layout/repo_menu.html @@ -35,10 +35,6 @@ @repo.format_nr_contributors(ctx.lang) - - - @repo.format_nr_releases(ctx.lang) - @if repo.discussions_enabled() @@ -51,14 +47,12 @@ %projects @end - @if repo.milestones_enabled() - - - %milestones - - @end %ci_label + + + @repo.format_size() + diff --git a/templates/pulls.html b/templates/pulls.html index c6cb770..faa376a 100644 --- a/templates/pulls.html +++ b/templates/pulls.html @@ -11,9 +11,14 @@

%pr_pull_requests

- @if ctx.logged_in - %pr_new - @end +
+ @if repo.milestones_enabled() + %milestones + @end + @if ctx.logged_in + %pr_new + @end +
-- 2.39.5