diff --git a/pages/02.apps/01.catalog/.apps.md.swp b/pages/02.apps/01.catalog/.apps.md.swp index c3287065..bbf68c34 100644 Binary files a/pages/02.apps/01.catalog/.apps.md.swp and b/pages/02.apps/01.catalog/.apps.md.swp differ diff --git a/pages/02.apps/01.catalog/apps.md b/pages/02.apps/01.catalog/apps.md index 4998a4b2..8f6121f9 100644 --- a/pages/02.apps/01.catalog/apps.md +++ b/pages/02.apps/01.catalog/apps.md @@ -170,21 +170,28 @@ Custom CSS for this page {% for app_id, infos in catalog.apps %} - {% set manifest = infos.manifest %} - {% if grav.language.getActive in manifest.description %} - {% set descr_lang = grav.language.getActive %} - {% else %} - {% set descr_lang = 'en' %} - {% endif %} - {% set description = manifest.description[descr_lang] %} +{% set manifest = infos.manifest %} +{% if grav.language.getActive in manifest.description %} + {% set descr_lang = grav.language.getActive %} +{% else %} + {% set descr_lang = 'en' %} +{% endif %} +{% set description = manifest.description[descr_lang] %} + +{% set category_display_name = None %} +{% for category in categories %} + {% if category.id == infos.category %} + {% set category_display_name = category.title.en %} + {% endif %} +{% endfor %} [div class="app-card_{{app_id}} app-card panel panel-default"] -[div class="app-title"]{{ manifest.name }}[/div] +[div class="app-title"]{{ manifest.name }} [span class="label label-default"]category_display_name [/label] [/div] [div class="app-descr"]{{ description }}[/div] [div class="app-footer"] [div class="app-buttons btn-group" role="group"] -[div class="btn btn-default col-sm-4"] [[fa=globe /] Code](fixme) [/div] +[div class="btn btn-default col-sm-4"] [[fa=code /] Code](fixme) [/div] [div class="btn btn-default col-sm-4"] [[fa=book /] Doc](/fixme) [/div] [div class="btn btn-success col-sm-4"] [[fa=plus /] Install](https://install-app.yunohost.org/?app={{app_id}}) [/div] @@ -223,21 +230,6 @@ Javascript helpers