0.0.76
This commit is contained in:
@@ -2,27 +2,11 @@
|
||||
<div {% include "block_settings/blocks_settings.html" %}>
|
||||
<div class="cut-width">
|
||||
{% if block.url %}
|
||||
<a href="{{ block.url }}">
|
||||
<div class="content_block_present_technology">
|
||||
<div class="left_part_block_present_technology">
|
||||
<div class="txt_block_present_technology semi_large_light">{{ block.description }}</div>
|
||||
<div class="txt_block_present_technology large_txt">{{ block.name }}</div>
|
||||
</div>
|
||||
<div class="right_part_block_present_technology">
|
||||
<img class="img_block_present_technology" src="{{ block.picture.url }}" alt="{{ block.name }}">
|
||||
</div>
|
||||
</div>
|
||||
<a class="a_block_present_technology" href="{{ block.url }}">
|
||||
{% include 'widgets/w_technology_item.html' %}
|
||||
</a>
|
||||
{% else %}
|
||||
<div class="content_block_present_technology">
|
||||
<div class="left_part_block_present_technology">
|
||||
<div class="txt_block_present_technology semi_large_light">{{ block.description }}</div>
|
||||
<div class="txt_block_present_technology large_txt">{{ block.name }}</div>
|
||||
</div>
|
||||
<div class="right_part_block_present_technology">
|
||||
<img class="img_block_present_technology" src="{{ block.picture.url }}" alt="{{ block.name }}">
|
||||
</div>
|
||||
</div>
|
||||
{% include 'widgets/w_technology_item.html' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,5 +1,5 @@
|
||||
{% if widget.but_title %}
|
||||
<a href="{{ widget.url }}" style="border: {{ widget.but_color }} solid 2px; color: {{ widget.but_color }};text-decoration: none;">
|
||||
<a href="{{ widget.url }}" style="border: {{ widget.but_color }} solid 2px; color: {{ widget.but_color }};text-decoration: none;padding: 5px;display: block;">
|
||||
{{ widget.but_title }}
|
||||
</a>
|
||||
{% endif %}
|
||||
11
templates/widgets/w_technology_item.html
Normal file
11
templates/widgets/w_technology_item.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% load static %}
|
||||
|
||||
<div class="content_block_present_technology">
|
||||
<div class="left_part_block_present_technology">
|
||||
<div class="txt_block_present_technology semi_large_light">{{ block.description }}</div>
|
||||
<div class="txt_block_present_technology large_txt">{{ block.name }}</div>
|
||||
</div>
|
||||
<div class="right_part_block_present_technology">
|
||||
<img class="img_block_present_technology" src="{{ block.picture.url }}" alt="{{ block.name }}">
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user