#2230 collapsable legend
Merged 2 years ago by praiskup. Opened 2 years ago by msuchy.
copr/ msuchy/copr summary  into  main

@@ -2,7 +2,8 @@ 

  {% from "_helpers.html" import build_state_text %}

      <dl class="aligned">

          <div>

-             <dt> Possible build states: </dt>

+             <details>

+             <summary style="display: list-item"> Possible build states</summary>

              {% for state in [

                "importing",

                "pending",
@@ -15,12 +16,12 @@ 

                "canceled",

                "waiting",

              ]%}

-             <dd>

                  {{ build_state_text(state) }}

                  - {{state|build_state_description}}

-             </dd>

+             <br />

  

              {% endfor %}

+             </details>

          </div>

      </dl>

  {% endmacro %}

What do you think?
If you like it, I will add it to more places and move the style to CSS file.

Build succeeded.

I'm neutral on this particular case, but the <details> tag definitely an interesting news to me :-)

I'm neutral on this particular case, but the <details> tag definitely an interesting news to me :-)

Same here :-)

I was wrong that there are several other places where it can go. All include this template. So this is ready for merge.

Build succeeded.

rebased onto 7a36e33

2 years ago

Build succeeded.

Pull-Request has been merged by praiskup

2 years ago