diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-04 01:40:30 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-04 01:40:30 +0200 |
commit | e62d89d3c33242c6ba14975c07b07c523e17e539 (patch) | |
tree | 1a572b2963487348485e5f9ad054c097f7b53b41 /templates | |
parent | Load modules list in documentation. (diff) | |
download | muppet-strings-e62d89d3c33242c6ba14975c07b07c523e17e539.tar.gz muppet-strings-e62d89d3c33242c6ba14975c07b07c523e17e539.tar.xz |
Add summary to main index page.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 8 |
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') %} + — {{ module.metadata['summary'] }} + {%- endif -%} </li> {% endfor %} </ul> |