From f6e7798405ef9eb7b2936b112fd2a4ea1bab4082 Mon Sep 17 00:00:00 2001
From: yp05327 <576951401@qq.com>
Date: Mon, 21 Aug 2023 16:26:10 +0900
Subject: Add link to job details and tooltip to commit status in repo list in
dashboard (#26326)
Tooltip:

Link to the target job:

---
web_src/js/components/DashboardRepoList.vue | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
(limited to 'web_src')
diff --git a/web_src/js/components/DashboardRepoList.vue b/web_src/js/components/DashboardRepoList.vue
index d68ee45ee3..008149ca60 100644
--- a/web_src/js/components/DashboardRepoList.vue
+++ b/web_src/js/components/DashboardRepoList.vue
@@ -69,16 +69,18 @@
@@ -394,7 +396,14 @@ const sfc = {
}
if (searchedURL === this.searchURL) {
- this.repos = json.data.map((webSearchRepo) => {return {...webSearchRepo.repository, latest_commit_status_state: webSearchRepo.latest_commit_status.State}});
+ this.repos = json.data.map((webSearchRepo) => {
+ return {
+ ...webSearchRepo.repository,
+ latest_commit_status_state: webSearchRepo.latest_commit_status.State,
+ locale_latest_commit_status_state: webSearchRepo.locale_latest_commit_status,
+ latest_commit_status_state_link: webSearchRepo.latest_commit_status.TargetURL
+ };
+ });
const count = response.headers.get('X-Total-Count');
if (searchedQuery === '' && searchedMode === '' && this.archivedFilter === 'both') {
this.reposTotalCount = count;
@@ -494,8 +503,6 @@ ul li:not(:last-child) {
}
.repo-list-link {
- padding: 6px 0;
- gap: 6px;
min-width: 0; /* for text truncation */
}
--
cgit v1.2.3