Current section

Files

Jump to
archeometer lib templates report fragment.slime
Raw

lib/templates/report/fragment.slime

div.query
input type="checkbox" id=fragment.uuid
= case fragment.query_type do
- :cql ->
p = fragment.desc
h3
label for=fragment.uuid
div.tab
= button_tab(fragment, "CQL")
= button_tab(fragment, "SQL")
span ▼
div class="tabcontent-#{fragment.uuid} code-block" id="CQL-#{fragment.uuid}"
= tab_content(fragment.query_type, fragment.uuid, fragment.code)
div class="tabcontent-#{fragment.uuid} disable code-block" id="SQL-#{fragment.uuid}"
= tab_content(fragment.alt_code_lang, fragment.uuid, fragment.alt_code)
- :elixir ->
p = fragment.desc
= code_fragment(fragment)
- :mix_task ->
p = fragment.desc
= code_fragment(fragment)
- :empty_input ->
- _ ->
p = fragment.desc
p.error-msg ⛔️ WARNING: Unknown code fragment type! Check your fragment definition. ⛔️