aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-builds.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-builds.cxx
parenta91334e64fee910190173f39b6048729db009e4e (diff)
Move indication that tenant is archived to timestamp field on builds and package version details pages
Diffstat (limited to 'mod/mod-builds.cxx')
-rw-r--r--mod/mod-builds.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/mod-builds.cxx b/mod/mod-builds.cxx
index ff27c65..6b5c90f 100644
--- a/mod/mod-builds.cxx
+++ b/mod/mod-builds.cxx
@@ -694,7 +694,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 (pb.archived)
+ ts += ", archived";
+
+ ts += ')';
s << TABLE(CLASS="proplist build")
<< TBODY