aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-07 14:43:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-07 14:43:49 +0300
commitded07cf185540680bc9c06f174e807ba0f3f736c (patch)
treeef851e6d76fabebff67a2d1ff2beae48edbae154 /mod/mod-package-version-details.cxx
parenta91334e64fee910190173f39b6048729db009e4e (diff)
Move indication that tenant is archived to timestamp field on builds and package version details pages
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 3a1ce0a..b5d733b 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -618,7 +618,12 @@ handle (request& rq, response& rs)
"%Y-%m-%d %H:%M:%S %Z",
true /* special */,
true /* local */) +
- " (" + butl::to_string (now - b.timestamp, false) + " ago)");
+ " (" + butl::to_string (now - b.timestamp, false) + " ago");
+
+ if (tn->archived)
+ ts += ", archived";
+
+ ts += ')';
if (b.state == build_state::built)
build_db_->load (b, b.results_section);