Skip to content

Commit f914fa0

Browse files
author
a.shtyrnyaev
committed
update!
1 parent cb3ebb6 commit f914fa0

File tree

12 files changed

+51
-20
lines changed

12 files changed

+51
-20
lines changed

templates/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
{% block header_block %}
2323
{% include 'blocks/header.html' %}
2424
{% endblock %}
25-
<div id="top-banner" class="conf">
25+
<!-- <div id="top-banner" class="conf">
2626
<a href="http://conf.python.ru/?utm_source=python-ru&amp;utm_medium=banner&amp;utm_campaign=python-ru-top" target="_blank"></a>
27-
</div>
27+
</div> -->
2828

2929
<main>
3030
{% block main_content %}{% endblock %}
@@ -40,4 +40,4 @@
4040
{% include 'blocks/analytics.html' %}
4141
{% block extra_js %}{% endblock %}
4242
</body>
43-
</html>
43+
</html>

templates/blocks/about_us.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ <h1>Немного о нас</h1>
4040
</div>
4141
</div>
4242
</div>
43-
</section>
43+
</section>

templates/blocks/analytics.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
});
1212
} catch(e) { }
1313
});
14-
1514
var n = d.getElementsByTagName("script")[0],
1615
s = d.createElement("script"),
1716
f = function () { n.parentNode.insertBefore(s, n); };
1817
s.type = "text/javascript";
1918
s.async = true;
2019
s.src = "https://mc.yandex.ru/metrika/watch.js";
21-
2220
if (w.opera == "[object Opera]") {
2321
d.addEventListener("DOMContentLoaded", f, false);
2422
} else { f(); }
@@ -32,10 +30,8 @@
3230
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
3331
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
3432
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
35-
3633
ga('create', 'UA-76163383-1', 'auto');
3734
ga('send', 'pageview');
38-
3935
</script>
4036

4137
<script type="text/javascript">(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=rMFPKf5XsBOkyFnhVuuCB*sk2MtYdGxkHpF*/ydkYXmbvvXJXZCE0hZmetQgWrWd1umw7ylDNVS5Whv/pVUzLK0FT4Nrk*399Cy9nWwHw*RHMPDKusRyK0qifR5YFXy/iUv*LGjIB7HmGQ6crvbCv0j3eCS9NVHz5oDy4*FWvf0-';</script>

templates/blocks/contact_us.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
</form>
2626
</div>
2727
</div>
28-
</section>
28+
</section>

templates/blocks/events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ <h1>Ближайшие события</h1>
2424
</ul>
2525
</div>
2626
</div>
27-
</section>
27+
</section>

templates/blocks/events_stub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ <h1>Ближайшие события</h1>
99
Если вы организуете такую - <a href="mailto:team@python.ru" style="text-decoration: underline">дайте нам знать</a> и мы напишем о вас.
1010
</p>
1111
</div>
12-
</section>
12+
</section>

templates/blocks/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
<!-- copyright -->
1313
<p class="copyright">&copy; 2016 <a href="https://python.ru">Python.ru</a></p>
1414
</div>
15-
</footer>
15+
</footer>

templates/blocks/header_no_menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
{% endfor %}
2222
</ul>
2323
</div>
24-
</header>
24+
</header>

templates/blocks/links.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ <h2>{{ section.grouper|get_section_name }}</h2>
1717
{% endfor %}
1818
</div>
1919
</div>
20-
</section>
20+
</section>

templates/blocks/news.html

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,48 @@
1111
{% endif %}
1212
<div class="description">
1313
<time datetime="">{{ article_featured.published_at|date:"j E Y" }}</time>
14-
<h1><a {% if not article_featured.is_our %}href="{{ article_featured.url }}" target="_blank"{% else %}href="{% url 'post_page' article_featured.id %}"{% endif %}>
14+
<h1><a href="{{ article_featured.url }}" target="_blank">
1515
{{ article_featured.name }}
1616
</a></h1>
1717
</div>
1818
</div>
1919
</article>
2020

21-
{% include 'blocks/news_right_sidebar.html' %}
21+
{# Ближайшие события #}
22+
<section class="grid-item articles-list">
23+
<div class="item-holder">
24+
<strong class="title">Ближайшие события</strong>
25+
<div class="articles-holder">
26+
{% for article in articles_top %}
27+
<article class="article">
28+
<time datetime="{{ event.date|date:" Y-m-d H:m " }}">{{ article.published_at|date:"j E Y" }}</time>
29+
<h1>
30+
<a href="{{ article.url }}" target="_blank">
31+
{{ article.name }}
32+
</a>
33+
</h1>
34+
</article>
35+
{% endfor %}
36+
</div>
37+
</div>
38+
</section>
39+
40+
{# News right sidebar #}
41+
<section class="grid-item articles-list">
42+
<div class="item-holder">
43+
<strong class="title">Новости</strong>
44+
<div class="articles-holder">
45+
{% for article in articles_top %}
46+
<article class="article">
47+
<time datetime="{{ event.date|date:"Y-m-d H:m" }}">{{ article.published_at|date:"j E Y" }}</time>
48+
<h1><a href="{{ article.url }}" target="_blank">
49+
{{ article.name }}
50+
</a></h1>
51+
</article>
52+
{% endfor %}
53+
</div>
54+
</div>
55+
</section>
2256

2357
{% for article in articles_all %}
2458
<article class="grid-item">
@@ -30,15 +64,16 @@ <h1><a {% if not article_featured.is_our %}href="{{ article_featured.url }}" tar
3064
{% endif %}
3165
<div class="text-holder">
3266
<time datetime="{{ event.date|date:"Y-m-d H:m" }}">{{ article.published_at|date:"j E Y" }}</time>
33-
<h1><a {% if not article.is_our %}href="{{ article.url }}" target="_blank"{% else %}href="{% url 'post_page' article.id %}" {% endif %}>{{ article.name }}</a></h1>
67+
<h1><a href="{{ article.url }}" target="_blank">{{ article.name }}</a></h1>
3468
{{ article.description|safe }}
3569
</div>
3670
</div>
3771
</article>
3872
{% endfor %}
3973
</div>
74+
4075
{# <div class="btn-holder">#}
4176
{# <a href="#" class="btn-default btn-more">Показать ещё</a>#}
4277
{# </div>#}
4378
</div>
44-
</section>
79+
</section>

0 commit comments

Comments
 (0)