EXPO-25 article/blog_list.html

remotes/origin/1203
pavel 11 years ago
parent 61d3831739
commit d941cf7b45
  1. 85
      templates/client/article/blog_list.html

@ -3,68 +3,61 @@
{% load thumbnail %} {% load thumbnail %}
{% load i18n %} {% load i18n %}
{% load template_filters %} {% load template_filters %}
{% block bread_scrumbs %} {% block bread_scrumbs %}
<div class="bread-crumbs"> <div class="bread-crumbs">
<a href="/">{% trans 'Главная страница' %}</a> <a href="/">{% trans 'Главная страница' %}</a>
<strong>{% trans 'Статьи' %}</strong> <strong>{% trans 'Статьи' %}</strong>
</div> </div>
{% endblock %} {% endblock %}
{% block page_title %} {% block page_title %}
<div class="page-title"> <div class="page-title">
<h1>{% trans 'Статьи' %}</h1> <h1>{% trans 'Статьи' %}</h1>
</div> </div>
{% endblock %} {% endblock %}
{% block content_list %} {% block content_list %}
<div class="set-sect p-form adm-form news-filter-block"> <div class="set-sect p-form adm-form news-filter-block">
<form action="#">
<form action="#"> <div class="adm-form-body">
<div class="adm-form-body"> <div class="mf-line mf-line1 s-subj-tag">
<div class="mf-line mf-line1 s-subj-tag"> <div class="mf-field">
<div class="mf-field"> <label>{{ article_filter_form.theme.label }}</label>
<label>{{ article_filter_form.theme.label }}</label>
<div class="custom-select theme"> <div class="custom-select theme">
{{ article_filter_form.theme }} {{ article_filter_form.theme }}
</div> </div>
</div> </div>
<div class="mf-field"> <div class="mf-field">
<label>{{ article_filter_form.tag.label }}</label> <label>{{ article_filter_form.tag.label }}</label>
<div class="custom-select tags"> <div class="custom-select tags">
{{ article_filter_form.tag }} {{ article_filter_form.tag }}
</div> </div>
</div>
</div>
</div> </div>
</div> </form>
</div>
</form>
</div> </div>
<div class="rq-to-hide"> <div class="rq-to-hide">
<div class="s-comments"> <div class="s-comments">
<div class="cat-list sc-comments"> <div class="cat-list sc-comments">
{% for blog in object_list %} {% for blog in object_list %}
<div class="cl-item"> <div class="cl-item">
<div class="acticle_list_big"> <div class="acticle_list_big">
{% include 'includes/article/article_preview.html' with obj=blog %} {% include 'includes/article/article_preview.html' with obj=blog %}
<h3><a href="{{ blog.get_permanent_url }}" title="">{{ blog.main_title }}</a></h3>
<h3><a href="{{ blog.get_permanent_url }}" title="">{{ blog.main_title }}</a></h3> {{ blog.preview|safe }}
{{ blog.preview|safe }} <strong><span>{{ blog.created|date:"d E Y" }}</span>{% if blog.tag.all.exists %}{% include 'includes/article_tags.html' with obj=blog %}{% endif %}</strong>
<strong><span>{{ blog.created|date:"d E Y" }}</span>{% if blog.tag.all.exists %}{% include 'includes/article_tags.html' with obj=blog %}{% endif %}</strong> </div>
</div> </div>
</div> {% endfor %}
{% endfor %} </div>
</div> </div>
</div>
</div> </div>
<!--todo: вернуть минифицированную версию--> {% if request.GET.debug == '1' %}
<script src="{% static 'client/js/_modules/block.newsFilter.js' %}"></script> <script src="{% static 'client/js/_modules/block.newsFilter.js' %}"></script>
{% else %}
<script src="{% static 'client/js_min/_modules/block.newsFilter.min.js' %}"></script>
{% endif %}
<script> <script>
//js module initialization
EXPO.newsFilter.init({ EXPO.newsFilter.init({
theme:{ theme:{
placeholder:"{% trans 'Укажите тематику' %}" placeholder:"{% trans 'Укажите тематику' %}"
@ -73,11 +66,9 @@
placeholder:"{% trans 'Выберите ключевые теги' %}", placeholder:"{% trans 'Выберите ключевые теги' %}",
url:'http://{{ request.get_host }}/theme/get-tag/' url:'http://{{ request.get_host }}/theme/get-tag/'
} }
}); });
</script> </script>
{% endblock %} {% endblock %}
{% block paginator %} {% block paginator %}
{% include 'includes/catalog_paginator.html' with page_obj=page_obj %} {% include 'includes/catalog_paginator.html' with page_obj=page_obj %}
{% endblock %} {% endblock %}
Loading…
Cancel
Save