Skip to content

Commit

Permalink
Add indent
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Jan 5, 2025
1 parent 48183fc commit 50e5fcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/aiidalab_qe/app/result/components/summary/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@
"degauss": {
"title": "Smearing width (degauss)",
"type": "text",
"indent": 1,
"description": "The smearing width used for the calculation"
},
"smearing": {
"title": "Smearing type",
"type": "text",
"indent": 1,
"description": "The smearing type used for the calculation"
},
"scf_kpoints_distance": {
Expand Down
5 changes: 4 additions & 1 deletion src/aiidalab_qe/app/static/templates/workflow_summary.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
<table>
{% for key, value in report[section].items() %}
<tr class="entry">
<td class="key">{{ schema[key].title }}</td>
{% set indent = (schema[key].indent | default(0)) * 16 %}
<td class="key" style="margin-left: {{ indent }}px">
{{ schema[key].title }}
</td>
<td class="value">
{% if schema[key].type == "link" %}
<a class="link" href="{{ value.url }}" target="_blank">
Expand Down

0 comments on commit 50e5fcd

Please sign in to comment.