mod: связность страница компании --> набор для сравнения

This commit is contained in:
2026-05-09 14:55:26 +03:00
parent 0bc88869a5
commit 18ab1ec291
2 changed files with 9 additions and 1 deletions

View File

@@ -138,7 +138,14 @@
{# ПРАВАЯ КОЛОНКА: НАЧАЛО #}<div class="col-md-6 col-xs-12"> {# ПРАВАЯ КОЛОНКА: НАЧАЛО #}<div class="col-md-6 col-xs-12">
<table class="head3"> <table class="head3">
<tr> <tr>
<td><h3>Оконный набор: &laquo;{{ i.sSetName|safe }}&raquo;</h3></td> <td>
<h3>
Оконный набор: &laquo;{{ i.sSetName|safe }}&raquo;
<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> <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> </tr>
</table> </table>

View File

@@ -359,6 +359,7 @@ def _format_set_for_template(set_data: dict, empty_values: list) -> dict:
formatted = { formatted = {
# Ключи ниже оставлены в legacy-формате, т.к. шаблон использует именно их имена. # Ключи ниже оставлены в legacy-формате, т.к. шаблон использует именно их имена.
'idSetKit': set_kit.id,
'sSetName': set_kit.sSetName, 'sSetName': set_kit.sSetName,
'sMerchantName': merchant_brand.sMerchantName, 'sMerchantName': merchant_brand.sMerchantName,
'sMerchantDescription': merchant_brand.sMerchantDescription, 'sMerchantDescription': merchant_brand.sMerchantDescription,