mod: связность страница компании --> набор для сравнения
This commit is contained in:
@@ -138,7 +138,14 @@
|
||||
{# ПРАВАЯ КОЛОНКА: НАЧАЛО #}<div class="col-md-6 col-xs-12">
|
||||
<table class="head3">
|
||||
<tr>
|
||||
<td><h3>Оконный набор: «{{ i.sSetName|safe }}»</h3></td>
|
||||
<td>
|
||||
<h3>
|
||||
Оконный набор: «{{ i.sSetName|safe }}»
|
||||
<small style="font-size:xx-small;font-weight:normal;">
|
||||
<a href="/catalog/sets/#kit-card-{{ i.idSetKit }}" title="Открыть карточку этого набора в каталоге оконных наборов">в каталоге наборов</a>
|
||||
</small>
|
||||
</h3>
|
||||
</td>
|
||||
<td align="right"><nobr class="badge badge4price" title="Рейтинг «Окнардии» для оконного набора «{{ i.sSetName }}»{% if i.fSetRating.RATING > -0.01 %} — {{ i.fSetRating.RATING|stringformat:".2f" }} баллов{% endif %}">{% for Star in i.fSetRating.STARS %}{% if Star == 0 %}<b class="glyphicon glyphicon-star-empty"></b>{% else %}<b class="glyphicon glyphicon-star"></b>{% endif %}{% endfor %} {% if i.fSetRating.RATING > -0.01 %} {{ i.fSetRating.RATING|stringformat:".2f" }}{% endif %}</nobr></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -359,6 +359,7 @@ def _format_set_for_template(set_data: dict, empty_values: list) -> dict:
|
||||
|
||||
formatted = {
|
||||
# Ключи ниже оставлены в legacy-формате, т.к. шаблон использует именно их имена.
|
||||
'idSetKit': set_kit.id,
|
||||
'sSetName': set_kit.sSetName,
|
||||
'sMerchantName': merchant_brand.sMerchantName,
|
||||
'sMerchantDescription': merchant_brand.sMerchantDescription,
|
||||
|
||||
Reference in New Issue
Block a user