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.
65 lines
2.3 KiB
65 lines
2.3 KiB
{% extends 'base_catalog.html' %}
|
|
{% load static %}
|
|
{% load i18n %}
|
|
|
|
{% block bread_scrumbs %}
|
|
<div class="bread-crumbs">
|
|
<a href="/">{% trans 'Главная страница' %}</a>
|
|
<a href="/blogs/">{% 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 'client/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.theme.all.exists %}{% include 'includes/article_theme.html' with obj=object %}{% endif %}</strong>
|
|
{% if request.user.is_admin %}
|
|
<a target="_blank" class="button green " href="/admin/article/blog/{{ object.slug }}/">{% trans 'изменить' %}</a>
|
|
{% endif %}
|
|
<p style="text-align: justify" align="justify"> </p>
|
|
</div>
|
|
<div class="content-text">
|
|
{{ object.description|safe }}
|
|
</div>
|
|
|
|
<div class="blog_avtor">
|
|
{% if object.tag.all.exists %}
|
|
<div class="blog_avtor_right">
|
|
{% include 'includes/article_tags.html' with obj=object %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
{% with blogs=object.similars %}
|
|
{% if blogs %}
|
|
<div class="rq-to-hide">
|
|
<div class="s-comments">
|
|
<div class="sect-title blog_link">{% trans 'Похожие статьи' %}<a class="button more" href="/blogs/">{% trans 'Все статьи' %}</a></div>
|
|
<div class="cat-list sc-comments">
|
|
{% for blog in blogs %}
|
|
<div class="cl-item">
|
|
<div class="acticle_list">
|
|
<a href="{{ blog.get_permanent_url }}" title="">{% include 'includes/show_logo.html' with obj=blog %}</a>
|
|
<h3><a href="{{ blog.get_permanent_url }}" title="">{{ blog.main_title }}</a></h3>
|
|
<p>{{ blog.preview }}</p>
|
|
<strong><span>{{ blog.created|date:"d E Y" }}</span><a href="{{ blog.author.get_permanent_url }}" title=""><i>Евгения Булавина</i></a></strong>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endblock %} |