aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-04 01:40:30 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-04 01:40:30 +0200
commite62d89d3c33242c6ba14975c07b07c523e17e539 (patch)
tree1a572b2963487348485e5f9ad054c097f7b53b41 /templates
parentLoad modules list in documentation. (diff)
downloadmuppet-strings-e62d89d3c33242c6ba14975c07b07c523e17e539.tar.gz
muppet-strings-e62d89d3c33242c6ba14975c07b07c523e17e539.tar.xz
Add summary to main index page.
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html
index 693c6f3..8703117 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -17,9 +17,15 @@
<ul>
{% for module in modules %}
<li>
- <a href="/{{ module.name }}"
+ {%- if module.metadata.get('name') -%}
+ {{ module.metadata['name'].split('-')[0] }}/
+ {%- endif -%}
+ <a href="{{ module.name }}"
class="{{ 'error' if module.strings_output == None }}"
>{{ module.name }}</a>
+ {%- if module.metadata.get('summary') %}
+ &mdash; {{ module.metadata['summary'] }}
+ {%- endif -%}
</li>
{% endfor %}
</ul>