diff --git a/app/Resources/assets/js/style.js b/app/Resources/assets/js/style.js index 6a86128..c379249 100644 --- a/app/Resources/assets/js/style.js +++ b/app/Resources/assets/js/style.js @@ -25,4 +25,12 @@ $(document).bind('ready ajaxComplete', function(){ ; }) ; + + $('.item-info .download') + .popup({ + popup : $('.download.popup'), + on: 'click', + inline: true + }) + ; }); \ No newline at end of file diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index afe7f4f..8717292 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -1,6 +1,7 @@ {% extends 'html.html.twig' %} {% import 'macros/elements.html.twig' as elements %} +{% import 'macros/blocks.html.twig' as blocks %} {% block body %}
category | {{ model.category ? model.category.name }} | -
---|---|
model | {{ model.path }} | -
author | {{ model.author.name }} | -
sets | {{ sets|length }} | -
{{ 'model.category' | trans }} | {{ model.category ? model.category.name }} | +
{{ 'model.author' | trans }} | {{ model.author.name }} | +
{{ 'model.set.count' | trans }} | {{ sets|length }} | +
{{ 'model.license' | trans }} | ++ {{ blocks.ccal2_license(model.name,model.author.name) }} + | +
{{ 'model.keywords' | trans }} | ++ {% for keyword in model.keywords %} + {{ keyword.name }} + {% endfor %} + | +
{{ 'model.aliases' | trans }} | +
+ {% for alias in model.aliases | slice(0,10)%}
+ {{ alias.number }}{% if not loop.last %},{% endif %}
{% endfor %}
-
- |
+
{{ subpart.count }}
-color: {{ subpart.color.name }}
+{{ subpart.count }}
+color: {{ subpart.color.name }}
+{{ set.partCount }}
-{{ count }} models
- -{% endblock %} \ No newline at end of file diff --git a/app/Resources/views/set/detail.html.twig b/app/Resources/views/set/detail.html.twig index 12ba339..765e30c 100644 --- a/app/Resources/views/set/detail.html.twig +++ b/app/Resources/views/set/detail.html.twig @@ -64,6 +64,23 @@ + {{ 'set.download'|trans }} +