You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

81 lines
3.3 KiB

{% extends 'base_catalog.html' %}
{% load static thumbnail %}
{% load i18n %}
{% block og %}
<meta property="og:image" content="{% thumbnail object.logo '500' %}">
<meta property="og:title" content="{{ object.main_title }}">
<meta property="og:description" content="{{ object.description|safe|striptags|truncatewords:'30' }}">
<meta property="og:url" content="{{ request.build_absolute_uri }}">
{% endblock %}
{% block bread_scrumbs %}
<div class="bread-crumbs">
<a href="/">{% trans 'Главная страница' %}</a>
<a href="/news/">{% trans 'Новости' %}</a>
<strong>{{ object.main_title }}</strong>
</div>
{% endblock %}
{% block page_title %}
{% endblock %}
{% block content_list %}
<div class="m-article cl-news blog_block">
<div class="blog_block_headline">
{% include 'includes/article/article_logo.html' with obj=object %}
<h1>{{ object.main_title }}</h1>
<strong><span>{{ object.publish_date|date:"d E Y" }}</span>{% if object.get_event %}<a class="flag" href="{{ object.get_event.get_permanent_url }}" title="">{{ object.get_event.name }}</a>{% endif %}</strong>
{% if request.user.is_admin %}
<a target="_blank" class="button green " href="/admin/article/news/{{ object.slug }}/">{% trans 'изменить' %}</a>
{% endif %}
<div class="news_sharing">
{% include "client/includes/sharing_block.html" %}
</div>
</div>
<div class="content-text">
{{ object.description|safe }}
</div>
<div class="blog_avtor">
<div class="blog_avtormidle">
<i>{% trans 'Источник' %}: {{ object.author }}</i>
{% if object.tag.all.exists %}
<div class="blog_avtor_right">
{% include 'client/includes/article_tags.html' with obj=object %}
</div>
{% endif %}
</div>
</div>
</div>
{% if object.get_similar %}
<div class="rq-to-hide">
<div class="s-comments">
<div class="sect-title blog_link"><span>{% trans 'Другие новости, которые могут быть вам интересны' %}</span><a class="button more" href="/news/">{% trans 'Все новости' %}</a></div>
<div class="cat-list sc-comments">
{% for news in object.get_similar %}
<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>{% if news.get_event %}<a href="{{ news.get_event.get_permanent_url }}" title=""><b>{{ news.get_event.name }}</b></a><{% endif %}</strong>
</div>
<div class="clearfix"></div>
</div>
{% endfor %}
</div>
</div>
</div>
{% endif %}
{% endblock %}