diff --git a/app/Resources/views/color/index.html.twig b/app/Resources/views/color/index.html.twig index 7b6ffac..b452738 100644 --- a/app/Resources/views/color/index.html.twig +++ b/app/Resources/views/color/index.html.twig @@ -6,27 +6,54 @@ {% block content %} - - +

Solid

+ +
+ + + + + + + + + + + {% for color in colors if not color.transparent%} + + + + + + + + {% endfor %} + +
IDNameRGBMaterial
{{ color.id }}{{ color.name }}#{{ color.rgb }}{{ color.transparent ? 'Transparent' : 'Solid' }}
+ +

Transparent

+ + + + + + + + + + + + + {% for color in colors if color.transparent%} - - - - - + + + + + - - - {% for color in colors %} - - - - - - - - {% endfor %} - -
IDNameRGBMaterial
IDNameRGBMaterial{{ color.id }}{{ color.name }}#{{ color.rgb }}{{ color.transparent ? 'Transparent' : 'Solid' }}
{{ color.id }}{{ color.name }}#{{ color.rgb }}{{ color.transparent ? 'Transparent' : 'Solid' }}
+ {% endfor %} + + {% endblock %} diff --git a/app/Resources/views/model/index.html.twig b/app/Resources/views/model/index.html.twig index b6a06b6..183dcc8 100644 --- a/app/Resources/views/model/index.html.twig +++ b/app/Resources/views/model/index.html.twig @@ -1,7 +1,5 @@ {% extends 'base.html.twig' %} -{% import 'macros/elements.html.twig' as elements %} - {% block title %}{{ 'page.model.index' | trans }}{% endblock %} {% block header %}{{ 'page.model.index' | trans }}{% endblock %} @@ -30,9 +28,7 @@
-
- -
+ {{ blocks.modelImageMin(model,-1) }}
{{ model.number }}
diff --git a/app/Resources/views/rebrickable/part/detail.html.twig b/app/Resources/views/rebrickable/part/detail.html.twig index d8d7e1f..600e043 100644 --- a/app/Resources/views/rebrickable/part/detail.html.twig +++ b/app/Resources/views/rebrickable/part/detail.html.twig @@ -2,48 +2,75 @@ {% import 'macros/elements.html.twig' as elements %} +{% block header %}#{{ part.number }} - {{ part.name }}{% endblock %} + {% block content %} -
-
number:
{{ part.number }}
-
name:
{{ part.name }}
-
category:
{{ part.category ? part.category.name }}
-
- - - {% if apiPart is not null %} - Rebrickable - - - {% endif %} - - {% if part.model %} - -
- +
+ +
+
+ + + + + + + + + + + + + + + {% if apiPart %} + + + + + + + + + {% endif %} +
{{ 'part.number' | trans }}{{ part.number}}
{{ 'part.name' | trans }}{{ part.name}}
{{ 'part.category' | trans }}{{ part.category.name }}
{{ 'part.model' | trans }} + {% if part.model %} + {{ part.model.number }} + {% endif %} +
{{ 'part.alternates' | trans }} + {% for alternate in apiPart.alternates %} + {{ alternate }} + {% endfor %} +
{{ 'part.molds' | trans }} + {% for mold in apiPart.molds %} + {{ mold }} + {% endfor %} +
+
+
+

Sets

- {% for set in sets %} -
- - {% endfor %} -
- - {{ dump(apiPart) }} + {% endfor %} +
{% endblock %}