From bcbbc4b935680372a8858e74de00fd817e5e5a4a Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Oct 22 2025 20:04:05 +0000 Subject: [PATCH 1/2] tweak display of scratch builds --- diff --git a/mbsweb/templates/module.html b/mbsweb/templates/module.html index 55209dd..79d6f83 100644 --- a/mbsweb/templates/module.html +++ b/mbsweb/templates/module.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block header %} -

{% block title %}Module #{{ moduleid }}{% endblock %}

+

{% block title %}Module #{{ moduleid }}{{ ' (scratch)' if info.scratch }}{% endblock %}

{% endblock %} {% block content %} @@ -29,9 +29,11 @@
  • Done
  • + {% if not info.scratch %}
  • Ready
  • + {% endif %} {% endif %} From c8ae0961c5681f8a92d19d938ec8f718fae7849c Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Oct 22 2025 20:04:05 +0000 Subject: [PATCH 2/2] show finished scratch builds as successful in listing --- diff --git a/mbsweb/ui.py b/mbsweb/ui.py index b3fecbf..d12a011 100644 --- a/mbsweb/ui.py +++ b/mbsweb/ui.py @@ -36,8 +36,9 @@ def handle_error(e): def get_module_css_class(module): + scratch = module.get('scratch', False) state = module.get('state_name', 'unknown') - if state == 'ready': + if state == 'ready' or (scratch and state == 'done'): return 'text-success' elif state == 'failed': return 'text-danger'