From 5e0a24511d51f1b1ba56fe80d5c5b673fe3245b0 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Fri, 17 Nov 2023 04:43:40 -0500 Subject: dmt: Add services page Signed-off-by: Malfurious --- dmt/html/services.html | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 dmt/html/services.html (limited to 'dmt/html/services.html') diff --git a/dmt/html/services.html b/dmt/html/services.html new file mode 100644 index 0000000..ae4dee6 --- /dev/null +++ b/dmt/html/services.html @@ -0,0 +1,49 @@ +

Services

+ +% show() { +% $gitcmd show --quiet --format="$1" HEAD | escape_html +% } + +% describe() { +% $gitcmd describe --all --exact-match "$1" 2>/dev/null | escape_html +% } + +% for serv in $CYCHE_SERVICE_DIR/*; do +% gitcmd="git --git-dir=$serv/.git" +% url=$($gitcmd remote get-url origin | escape_html) +% previous_hash=$(cat $serv/.git/previous_hash) +% current_hash=$(show '%H') +% [ "$current_hash" == "$previous_hash" ] && class="" || class="standout" + +
+
+ %{ basename $serv %} + %($url%) +
+ +
+ + + + + + + + + + + + + + + + + + + + +
Deployed:%($previous_hash%)%{describe $previous_hash%}
Commit:%($current_hash%)%{describe $current_hash%}
Committer:%{show '%cn <%ce>'%}%{show '%cD'%}
Tree:%{show '%T'%}
+
+
+ +% done -- cgit v1.2.3