diff --git a/app/Resources/assets/style/table.scss b/app/Resources/assets/style/table.scss index aaedc3a..7a23b3a 100644 --- a/app/Resources/assets/style/table.scss +++ b/app/Resources/assets/style/table.scss @@ -8,6 +8,8 @@ .link { padding-left: 30px; position: relative; + display: inline-block; + margin: 0.2em 1em; } .link:before { diff --git a/app/Resources/translations/menu.en.yml b/app/Resources/translations/menu.en.yml index f40f8d4..fb51664 100644 --- a/app/Resources/translations/menu.en.yml +++ b/app/Resources/translations/menu.en.yml @@ -2,12 +2,12 @@ page: home: Homepage model: index: Bricks - detail: %value% + detail: "%value%" set: index: Sets - detail: %value% + detail: "%value%" part: index: Parts - detail: %value% + detail: "%value%" search: "Search: \"%value%\"" colors: Colors \ No newline at end of file diff --git a/app/Resources/translations/messages.en.yml b/app/Resources/translations/messages.en.yml index 079682e..9b5579b 100644 --- a/app/Resources/translations/messages.en.yml +++ b/app/Resources/translations/messages.en.yml @@ -11,7 +11,7 @@ set: models: text: | This set inventory has been obtained from Rebrickable. - According to the Brickset, this set has %brickset% parts. The inventory from Rebrickable contains %rebrickable% parts. + According to the Brickset, this set has '%brickset%' parts. The inventory from Rebrickable contains %rebrickable% parts. rebrickable: credit: | This set inventory and model images has been obtained from Rebrickable. @@ -137,4 +137,4 @@ part: form: search.submit: Search -meta.description: Web catalogue of LEGO® parts for 3D printing \ No newline at end of file +meta.description: "Web catalogue of LEGO® parts for 3D printing" \ No newline at end of file diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index bd0230c..6bf5a30 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -106,4 +106,29 @@ {% include 'footer.html.twig' %} +{% endblock %} + +{% block javascripts %} + {{ parent() }} + + + + + {% endblock %} \ No newline at end of file diff --git a/app/Resources/views/menu/knp_menu.html.twig b/app/Resources/views/menu/knp_menu.html.twig index eed3e5f..54c042f 100644 --- a/app/Resources/views/menu/knp_menu.html.twig +++ b/app/Resources/views/menu/knp_menu.html.twig @@ -105,7 +105,7 @@ {% endif %} {% set label = item.label|trans( - item.getExtra('translation_params', {}), + item.getExtra('translatinon_params', {}), item.getExtra('translation_domain', 'menu') ) %} {% if options.allow_safe_labels and item.getExtra('safe_label', false) %} diff --git a/app/Resources/views/model/detail.html.twig b/app/Resources/views/model/detail.html.twig index 06464a8..04ff9e8 100644 --- a/app/Resources/views/model/detail.html.twig +++ b/app/Resources/views/model/detail.html.twig @@ -25,6 +25,7 @@
+
@@ -41,9 +42,6 @@ - - -
{{ 'model.id' | trans }}
{{ 'model.author' | trans }}{{ model.author.name }}
{{ 'model.set.count' | trans }}{{ sets|length }}
{{ 'model.license' | trans }} @@ -80,39 +78,57 @@
-
-
- {% for subpart in subparts %} - {{ blocks.model(subpart['model'], subpart['quantity']) }} - {% endfor %} +
+
+

Submodels

+
+ {% for subpart in submodels %} + {{ blocks.model(subpart['model'], subpart['quantity']) }} + {% else %} +
+ {% endfor %} +
+ +
+

Siblings

+
+ + {% for model in siblings %} + {{ blocks.model(model) }} + {% else %} +
+ {% endfor %} +
+
+ +
+

Parents

+
+ + {% for subpart in model.parents %} + {{ blocks.model(subpart.parent) }} + {% else %} +
+ {% endfor %} +
+
+
-
-
- {% for model in related %} - {{ blocks.model(model) }} - {% endfor %} -
+
+
- -
-
- {% for subpart in model.parents %} - {{ blocks.model(subpart.parent) }} - {% endfor %} -
-
-
+ {% endblock %} {% block javascripts %} @@ -120,6 +136,7 @@ +