aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-build-configs.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-05-30 17:46:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-05-30 17:49:42 +0300
commita66efed44af2f9bc917d265ca7640ded40683f05 (patch)
tree8b034529c8a16d9eb9cce9b9bab0e21212823b85 /mod/mod-build-configs.cxx
parentc46d9c4b40d340470d1a9d30be9761f6334ab4d3 (diff)
Don't print classes derived from hidden on build configuration classes page
Diffstat (limited to 'mod/mod-build-configs.cxx')
-rw-r--r--mod/mod-build-configs.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/mod/mod-build-configs.cxx b/mod/mod-build-configs.cxx
index 0ac4615..ce79edb 100644
--- a/mod/mod-build-configs.cxx
+++ b/mod/mod-build-configs.cxx
@@ -125,19 +125,19 @@ handle (request& rq, response& rs)
s << DIV(ID="filter-heading") << "Build Configuration Classes" << ~DIV
<< P(ID="filter");
+ bool printed (false);
for (auto b (cls.begin ()), i (b), e (cls.end ()); i != e; ++i)
{
- // Skip the 'hidden' class.
+ // Skip the hidden classes.
//
const string& c (*i);
- if (c != "hidden")
+ if (!derived (c, "hidden"))
{
- // Note that here we rely on the fact that the first class in the list
- // can never be 'hidden' (is always 'all').
- //
- if (i != b)
+ if (printed)
s << ' ';
+ else
+ printed = true;
print_class_name (c, c == selected_class);