EXPO-25 article/news_list.html:49

remotes/origin/1203
pavel 11 years ago
parent d941cf7b45
commit aa9ef4b251
  1. 80
      templates/client/article/news_list.html

@ -2,67 +2,60 @@
{% load static %}
{% load i18n %}
{% load template_filters %}
{% block bread_scrumbs %}
<div class="bread-crumbs">
<div class="bread-crumbs">
<a href="/">{% trans 'Главная страница' %}</a>
<strong>{% trans 'Новости' %}</strong>
</div>
</div>
{% endblock %}
{% block page_title %}
<div class="page-title">
<h1>{% trans 'Новости' %}:</h1>
</div>
<div class="page-title">
<h1>{% trans 'Новости' %}:</h1>
</div>
{% endblock %}
{% block content_list %}
<div class="set-sect p-form adm-form news-filter-block">
<form action="#">
<div class="adm-form-body">
<div class="mf-line mf-line1 s-subj-tag">
<div class="mf-field">
<label>{{ article_filter_form.theme.label }}</label>
<form action="#">
<div class="adm-form-body">
<div class="mf-line mf-line1 s-subj-tag">
<div class="mf-field">
<label>{{ article_filter_form.theme.label }}</label>
<div class="custom-select theme">
{{ article_filter_form.theme }}
</div>
</div>
<div class="mf-field">
<label>{{ article_filter_form.tag.label }}</label>
</div>
<div class="mf-field">
<label>{{ article_filter_form.tag.label }}</label>
<div class="custom-select tags">
{{ article_filter_form.tag }}
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</form>
</div>
<div class="rq-to-hide">
<div class="cat-list sc-comments">
{% for news in object_list %}
<div class="cl-item">
<div class="acticle_list">
<a href="{{ news.get_permanent_url }}" title="">
{% include 'includes/article/news_preview.html' with obj=news %}</a>
<h3><a href="{{ news.get_permanent_url }}" title="">{{ news.main_title }}</a></h3>
{{ news.preview }}
<strong><span>{{ news.created|date:"d E Y" }}</span>{% with event=news.get_event %}{% if event %}<a href="{{ event.get_permanent_url }}" title=""><b>{{ event.name }}</b></a>{% endif %}{% endwith %}</strong>
</div>
</div>
{% endfor %}
</div>
<div class="cat-list sc-comments">
{% for news in object_list %}
<div class="cl-item">
<div class="acticle_list">
<a href="{{ news.get_permanent_url }}" title="">
{% include 'includes/article/news_preview.html' with obj=news %}</a>
<h3><a href="{{ news.get_permanent_url }}" title="">{{ news.main_title }}</a></h3>
{{ news.preview }}
<strong><span>{{ news.created|date:"d E Y" }}</span>{% with event=news.get_event %}{% if event %}<a href="{{ event.get_permanent_url }}" title=""><b>{{ event.name }}</b></a>{% endif %}{% endwith %}</strong>
</div>
</div>
{% endfor %}
</div>
</div>
<!--todo: вернуть минифицированную версию-->
<script src="{% static 'client/js/_modules/block.newsFilter.js' %}"></script>
{% if request.GET.debug == '1' %}
<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>
//js module initialization
EXPO.newsFilter.init({
theme:{
placeholder:"{% trans 'Укажите тематику' %}"
@ -74,7 +67,6 @@
});
</script>
{% endblock %}
{% block paginator %}
{% include 'includes/catalog_paginator.html' with page_obj=page_obj %}
{% include 'includes/catalog_paginator.html' with page_obj=page_obj %}
{% endblock %}

Loading…
Cancel
Save