parent
59d3102e17
commit
52c2638dc4
13 changed files with 209 additions and 86 deletions
@ -0,0 +1,31 @@ |
||||
{% extends 'base_catalog.html' %} |
||||
{% load static %} |
||||
{% load i18n %} |
||||
{% load template_filters %} |
||||
|
||||
|
||||
{% block bread_scrumbs %} |
||||
<div class="bread-crumbs"> |
||||
<a href="/">{% trans 'Главная страница' %}</a> |
||||
<a href="/news/">{% trans 'Новости' %}</a> |
||||
<strong>{% trans 'Новости к событию' %}</strong> |
||||
</div> |
||||
{% endblock %} |
||||
|
||||
|
||||
{% block page_title %} |
||||
<div class="page-title"> |
||||
<h1> |
||||
{% trans "Новости к событию" %} {{ event.name|safe }} |
||||
</h1> |
||||
</div> |
||||
{% endblock %} |
||||
|
||||
|
||||
{% block content_list %} |
||||
{% include 'client/includes/article/news_list.html' with object_list=object_list %} |
||||
{% endblock %} |
||||
|
||||
{% block paginator %} |
||||
{% include 'client/includes/catalog_paginator.html' with page_obj=page_obj %} |
||||
{% endblock %} |
||||
@ -0,0 +1,27 @@ |
||||
{% load static %} |
||||
{% load i18n %} |
||||
|
||||
{% if news_list %} |
||||
<div class="rq-to-hide"> |
||||
<div class="s-comments"> |
||||
<div class="sect-title blog_link">{% trans 'Последние новости к этому событию' %}<a class="button more" href="{{ event.get_news_url }}">{% trans 'Все новости' %}</a></div> |
||||
<div class="cat-list sc-comments"> |
||||
{% for news in news_list %} |
||||
<div class="cl-item"> |
||||
<div class="acticle_list"> |
||||
<a href="{{ news.get_permanent_url }}" title=""> |
||||
<span class="cli-pict"> |
||||
{% include 'includes/show_logo.html' with obj=news %} |
||||
</span> |
||||
</a> |
||||
<h3><a href="{{ news.get_permanent_url }}" title="">{{ news.main_title }}</a></h3> |
||||
<p>{{ news.preview|safe }}</p> |
||||
<strong><span>{{ news.publish_date|date:"d E Y" }}</span><a href="{{ event.get_permanent_url }}" title=""><b>{{ event.name|safe }}</b></a></strong> |
||||
</div> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
{% endfor %} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{% endif %} |
||||
Loading…
Reference in new issue