master
fefa4ka 11 years ago
parent 0ba8029c4e
commit 76197c7d4c
  1. 224
      blog/locale/ru/LC_MESSAGES/django.po
  2. 13
      blog/templates/blog/post_list.html
  3. BIN
      zsite/locale/ru/LC_MESSAGES/django.mo
  4. 36
      zsite/locale/ru/LC_MESSAGES/django.po
  5. 1
      zsite/settings.py
  6. BIN
      zsite/static/imgs/btn_bg.png
  7. 78
      zsite/static/less/about.less
  8. 27
      zsite/static/less/blog.less
  9. 39
      zsite/static/less/header.less
  10. 21
      zsite/static/less/main.less
  11. 39
      zsite/templates/aldryn_people/plugins/feature/people_list.html
  12. 2
      zsite/templates/base.html
  13. 3
      zsite/templates/cms/plugins/video.html
  14. 0
      zsite/templatetags/__init__.py
  15. 9
      zsite/templatetags/shuffle.py

@ -1,267 +1,303 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the PACKAGE package.
# #
# Translators: # Translators:
# Iacopo Spalletti, 2014 # Iacopo Spalletti, 2014
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: djangocms-blog\n" "Project-Id-Version: djangocms-blog\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-30 12:49+0100\n" "POT-Creation-Date: 2015-07-14 22:30+0300\n"
"PO-Revision-Date: 2014-11-30 11:49+0000\n" "PO-Revision-Date: 2014-11-30 11:49+0000\n"
"Last-Translator: yakky <i.spalletti@nephila.it>\n" "Last-Translator: yakky <i.spalletti@nephila.it>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/djangocms-blog/language/ru/)\n" "Language-Team: Russian (http://www.transifex.com/projects/p/djangocms-blog/"
"language/ru/)\n"
"Language: ru\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Language: ru\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Lokalize 1.5\n" "X-Generator: Lokalize 1.5\n"
#: cms_app.py:8 cms_plugins.py:32 cms_plugins.py:45 cms_plugins.py:56 #: blog/cms_app.py:11 blog/cms_plugins.py:60 blog/cms_plugins.py:74
#: cms_plugins.py:67 cms_toolbar.py:18 #: blog/cms_plugins.py:86 blog/cms_plugins.py:98 blog/cms_toolbar.py:18
msgid "Blog" msgid "Blog"
msgstr "Блог" msgstr "Блог"
#: cms_plugins.py:20 #: blog/cms_appconfig.py:22
msgid "application title"
msgstr ""
#: blog/cms_appconfig.py:26
#, fuzzy
#| msgid "Category"
msgid "Category slug"
msgstr "Категория"
#: blog/cms_appconfig.py:29
msgid "Only category to display"
msgstr ""
#: blog/cms_appconfig.py:33
msgid "Paginate size"
msgstr ""
#: blog/cms_appconfig.py:36
msgid "When paginating list views, how many articles per page?"
msgstr ""
#: blog/cms_appconfig.py:75
#, fuzzy
#| msgid "Title"
msgid "untitled"
msgstr "Заголовок"
#: blog/cms_appconfig.py:80
msgid "Post published by default"
msgstr ""
#: blog/cms_plugins.py:23 blog/cms_plugins.py:47
msgid "Latest Blog Articles" msgid "Latest Blog Articles"
msgstr "Последние статьи блога" msgstr "Последние статьи блога"
#: cms_plugins.py:33 #: blog/cms_plugins.py:61
msgid "Author Blog Articles" msgid "Author Blog Articles"
msgstr "Автор" msgstr "Автор"
#: cms_plugins.py:46 templates/djangocms_blog/plugins/tags.html:4 #: blog/cms_plugins.py:75 blog/templates/blog/plugins/tags.html:4
msgid "Tags" msgid "Tags"
msgstr "Тэги" msgstr "Тэги"
#: cms_plugins.py:57 templates/djangocms_blog/plugins/categories.html:4 #: blog/cms_plugins.py:87 blog/templates/blog/plugins/categories.html:4
msgid "Categories" msgid "Categories"
msgstr "Categories" msgstr "Categories"
#: cms_plugins.py:68 templates/djangocms_blog/post_list.html:12 #: blog/cms_plugins.py:99 blog/templates/blog/plugins/archive.html:4
#: templates/djangocms_blog/plugins/archive.html:4 #: blog/templates/blog/post_list.html:13
msgid "Archive" msgid "Archive"
msgstr "Архив" msgstr "Архив"
#: cms_toolbar.py:20 #: blog/cms_toolbar.py:20
msgid "Post list" msgid "Post list"
msgstr "Список статей" msgstr "Список статей"
#: cms_toolbar.py:22 #: blog/cms_toolbar.py:22
msgid "Add post" msgid "Add post"
msgstr "Добавить статью" msgstr "Добавить статью"
#: cms_toolbar.py:26 #: blog/cms_toolbar.py:26
msgid "Edit Post" msgid "Edit Post"
msgstr "" msgstr ""
#: feeds.py:16 #: blog/feeds.py:16
#, python-format #, python-format
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "Статьи из блог на %(site_name)s" msgstr "Статьи из блог на %(site_name)s"
#: models.py:31 #: blog/models.py:33
msgid "parent" msgid "parent"
msgstr "предок" msgstr "предок"
#: models.py:33 #: blog/models.py:35
msgid "created at" msgid "created at"
msgstr "время создания" msgstr "время создания"
#: models.py:34 #: blog/models.py:36
msgid "modified at" msgid "modified at"
msgstr "время изменения" msgstr "время изменения"
#: models.py:37 #: blog/models.py:39
msgid "name" msgid "name"
msgstr "название" msgstr "название"
#: models.py:38 models.py:105 #: blog/models.py:40 blog/models.py:116
msgid "slug" msgid "slug"
msgstr "URL" msgstr "URL"
#: models.py:45 #: blog/models.py:47
msgid "blog category" msgid "blog category"
msgstr "категория блога" msgstr "категория блога"
#: models.py:46 #: blog/models.py:48
msgid "blog categories" msgid "blog categories"
msgstr "категории блога" msgstr "категории блога"
#: models.py:70 #: blog/models.py:78
msgid "Author" msgid "Author"
msgstr "Автор" msgstr "Автор"
#: models.py:75 #: blog/models.py:83
msgid "Published Since" msgid "Published Since"
msgstr "Опубликована с" msgstr "Опубликована с"
#: models.py:77 #: blog/models.py:85
msgid "Published Until" msgid "Published Until"
msgstr "Опубликована до" msgstr "Опубликована до"
#: models.py:79 #: blog/models.py:87
msgid "Publish" msgid "Publish"
msgstr "Показывать на сайте" msgstr "Показывать на сайте"
#: models.py:80 #: blog/models.py:88
msgid "category" msgid "category"
msgstr "категория" msgstr "категория"
#: models.py:82 #: blog/models.py:90
msgid "Main image" msgid "Main image"
msgstr "Картинка для статьи" msgstr "Картинка для статьи"
#: models.py:85 #: blog/models.py:94
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "Уменьшенная копия" msgstr "Уменьшенная копия"
#: models.py:89 #: blog/models.py:99
msgid "Main image full" msgid "Main image full"
msgstr "Полный размер" msgstr "Полный размер"
#: models.py:93 #: blog/models.py:104
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "" msgstr ""
#: models.py:96 #: blog/models.py:107
msgid "Site(s)" msgid "Site(s)"
msgstr "" msgstr ""
#: models.py:98 #: blog/models.py:109
msgid "" msgid ""
"Select sites in which to show the post. If none is set it will be visible in" "Select sites in which to show the post. If none is set it will be visible in "
" all the configured sites." "all the configured sites."
msgstr "" msgstr ""
#: models.py:104 #: blog/models.py:115
msgid "Title" msgid "Title"
msgstr "Заголовок" msgstr "Заголовок"
#: models.py:106 #: blog/models.py:117
msgid "Abstract" msgid "Abstract"
msgstr "" msgstr ""
#: models.py:107 #: blog/models.py:118
msgid "Post meta description" msgid "Post meta description"
msgstr "" msgstr ""
#: models.py:109 #: blog/models.py:120
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "" msgstr ""
#: models.py:111 #: blog/models.py:122
msgid "Post meta title" msgid "Post meta title"
msgstr "" msgstr ""
#: models.py:112 #: blog/models.py:123
msgid "used in title tag and social sharing" msgid "used in title tag and social sharing"
msgstr "" msgstr ""
#: models.py:115 #: blog/models.py:126
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: models.py:178 #: blog/models.py:189
msgid "blog article" msgid "blog article"
msgstr "статья блога" msgstr "статья блога"
#: models.py:179 #: blog/models.py:190
msgid "blog articles" msgid "blog articles"
msgstr "статьи блога" msgstr "статьи блога"
#: models.py:222 models.py:250 #: blog/models.py:258 blog/models.py:282
msgid "Articles" msgid "Articles"
msgstr "Статьи" msgstr "Статьи"
#: models.py:223 #: blog/models.py:259
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "Количество показываемых последних статей." msgstr "Количество показываемых последних статей."
#: models.py:225 #: blog/models.py:261
msgid "Show only the blog articles tagged with chosen tags."
msgstr "Показывать только статьи с выбранными тэгами."
#: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "Показывать только статьи из выбранныех категорий." msgstr "Показывать только статьи из выбранныех категорий."
#: models.py:246 templates/djangocms_blog/plugins/authors.html:3 #: blog/models.py:278 blog/templates/blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "Авторы" msgstr "Авторы"
#: models.py:251 #: blog/models.py:283
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "Количество статей автора, которые будут показаны." msgstr "Количество статей автора, которые будут показаны."
#: templates/djangocms_blog/post_detail.html:18 #: blog/templates/blog/includes/blog_meta.html:7
#: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "создана" msgstr "создана"
#: templates/djangocms_blog/post_list.html:11 #: blog/templates/blog/plugins/archive.html:18
#: blog/templates/blog/plugins/authors.html:10
#: blog/templates/blog/plugins/categories.html:11
#: blog/templates/blog/plugins/tags.html:11
#, python-format
msgid "1 article"
msgid_plural "%(articles)s articles"
msgstr[0] "%(articles)s статья"
msgstr[1] "%(articles)s статьи"
msgstr[2] "%(articles)s статей"
#: blog/templates/blog/plugins/archive.html:19
#: blog/templates/blog/plugins/authors.html:11
#: blog/templates/blog/plugins/categories.html:12
#: blog/templates/blog/plugins/tags.html:12
msgid "0 articles"
msgstr "0 статей"
#: blog/templates/blog/plugins/archive.html:27
#: blog/templates/blog/plugins/authors.html:15
#: blog/templates/blog/plugins/latest_entries.html:10
#: blog/templates/blog/plugins/tags.html:16
#: blog/templates/blog/post_list.html:33
msgid "No article found."
msgstr "Не найдено ни одной статьи."
#: blog/templates/blog/plugins/categories.html:16
#, fuzzy
#| msgid "No article found."
msgid "No categories found."
msgstr "Не найдено ни одной статьи."
#: blog/templates/blog/post_list.html:12
msgid "Articles by" msgid "Articles by"
msgstr "Статьи созданы" msgstr "Статьи созданы"
#: templates/djangocms_blog/post_list.html:13 #: blog/templates/blog/post_list.html:14
msgid "Tag" msgid "Tag"
msgstr "Тэг" msgstr "Тэг"
#: templates/djangocms_blog/post_list.html:14 #: blog/templates/blog/post_list.html:15
msgid "Category" msgid "Category"
msgstr "Категория" msgstr "Категория"
#: templates/djangocms_blog/post_list.html:21 #: blog/templates/blog/post_list.html:37
#: templates/djangocms_blog/plugins/archive.html:27
#: templates/djangocms_blog/plugins/authors.html:15
#: templates/djangocms_blog/plugins/categories.html:16
#: templates/djangocms_blog/plugins/latest_entries.html:7
#: templates/djangocms_blog/plugins/tags.html:16
msgid "No article found."
msgstr "Не найдено ни одной статьи."
#: templates/djangocms_blog/post_list.html:24
msgid "Back" msgid "Back"
msgstr "Назад" msgstr "Назад"
#: templates/djangocms_blog/post_list.html:30 #: blog/templates/blog/post_list.html:42
msgid "previous" msgid "previous"
msgstr "предыдущая" msgstr "предыдущая"
#: templates/djangocms_blog/post_list.html:33 #: blog/templates/blog/post_list.html:45
msgid "Page" msgid "Page"
msgstr "Страница" msgstr "Страница"
#: templates/djangocms_blog/post_list.html:33 #: blog/templates/blog/post_list.html:45
msgid "of" msgid "of"
msgstr "из" msgstr "из"
#: templates/djangocms_blog/post_list.html:36 #: blog/templates/blog/post_list.html:48
msgid "next" msgid "next"
msgstr "следующая" msgstr "следующая"
#: templates/djangocms_blog/includes/blog_item.html:46 #~ msgid "Show only the blog articles tagged with chosen tags."
msgid "read more" #~ msgstr "Показывать только статьи с выбранными тэгами."
msgstr "продолжение"
#: templates/djangocms_blog/plugins/archive.html:18 #~ msgid "read more"
#: templates/djangocms_blog/plugins/authors.html:10 #~ msgstr "продолжение"
#: templates/djangocms_blog/plugins/categories.html:11
#: templates/djangocms_blog/plugins/tags.html:11
#, python-format
msgid "1 article"
msgid_plural "%(articles)s articles"
msgstr[0] "%(articles)s статья"
msgstr[1] "%(articles)s статьи"
msgstr[2] "%(articles)s статей"
#: templates/djangocms_blog/plugins/archive.html:19
#: templates/djangocms_blog/plugins/authors.html:11
#: templates/djangocms_blog/plugins/categories.html:12
#: templates/djangocms_blog/plugins/tags.html:12
msgid "0 articles"
msgstr "0 статей"
#~ msgid "blog post" #~ msgid "blog post"
#~ msgstr "blog post" #~ msgstr "blog post"

@ -17,11 +17,22 @@
</h2> </h2>
</header> </header>
{% endblock %} {% endblock %}
{% include "blog/includes/blog_item.html" with post=post_list.0 image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %}
<div class="clearfix"></div>
<div class="blog-list-older">
{% for post in post_list %} {% for post in post_list %}
{% include "blog/includes/blog_item.html" with post=post image="true" TRUNCWORDS_COUNT=TRUNCWORDS_COUNT %} {% if forloop.counter != 1 %}
<article>
<header>
<h4><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h4>
<p>{{ post.date_published|date:"DATE_FORMAT" }}</p>
</header>
</article>
{% endif %}
{% empty %} {% empty %}
<p class="blog-empty">{% trans "No article found." %}</p> <p class="blog-empty">{% trans "No article found." %}</p>
{% endfor %} {% endfor %}
</div>
{% if author or archive_date or tagged_entries %} {% if author or archive_date or tagged_entries %}
<p class="blog-back"><a href="{% url 'blog:posts-latest' %}">{% trans "Back" %}</a></p> <p class="blog-back"><a href="{% url 'blog:posts-latest' %}">{% trans "Back" %}</a></p>
{% endif %} {% endif %}

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.10\n" "Project-Id-Version: 0.10\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-07-07 14:18+0300\n" "POT-Creation-Date: 2015-07-14 22:30+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Alexander Kondratev <alex@nder.so>\n" "Last-Translator: Alexander Kondratev <alex@nder.so>\n"
"Language-Team: Zuykov and partners\n" "Language-Team: Zuykov and partners\n"
@ -19,21 +19,27 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#: zsite/templates/aldryn_people/includes/people_item.html:11 #: zsite/templates/aldryn_people/plugins/feature/people_list.html:13
msgid "Phone:" msgid "Phone:"
msgstr "Телефон:" msgstr "Телефон:"
#: zsite/templates/aldryn_people/includes/people_item.html:12 #: zsite/templates/aldryn_people/plugins/feature/people_list.html:14
msgid "Mobile:" msgid "Address:"
msgstr "Мобильный телефон6" msgstr "Адрес"
#: zsite/templates/aldryn_people/includes/people_item.html:13 #: zsite/templates/aldryn_people/plugins/feature/people_list.html:30
msgid "E-Mail:" msgid "our"
msgstr "Электропочта:" msgstr "наш"
#: zsite/templates/aldryn_people/includes/people_item.html:14 #: zsite/templates/aldryn_people/plugins/feature/people_list.html:30
msgid "Download vCard" msgid "answer your question"
msgstr "Скачать vCard" msgstr "доступно обо всём расскажет"
#: zsite/templates/aldryn_people/plugins/feature/people_list.html:33
#, fuzzy
#| msgid "Contact us:"
msgid "Contact"
msgstr "Пишите"
#: zsite/templates/aldryn_people/plugins/standard/people_list.html:4 #: zsite/templates/aldryn_people/plugins/standard/people_list.html:4
msgid "Our Team" msgid "Our Team"
@ -83,3 +89,11 @@ msgstr "Москва, Россия, 129090"
msgid "Change to language:" msgid "Change to language:"
msgstr "Изменить язык на:" msgstr "Изменить язык на:"
#~ msgid "Mobile:"
#~ msgstr "Мобильный телефон6"
#~ msgid "E-Mail:"
#~ msgstr "Электропочта:"
#~ msgid "Download vCard"
#~ msgstr "Скачать vCard"

@ -181,6 +181,7 @@ INSTALLED_APPS = (
'zsite', 'zsite',
# People # People
'aldryn_common',
'aldryn_people', 'aldryn_people',
'easy_thumbnails', 'easy_thumbnails',
'filer', 'filer',

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

@ -0,0 +1,78 @@
.about-map {
position: absolute;
z-index: 0;
width: 65%;
margin-left: 35%;
margin-top: -16%;
img {
width: 100%;
}
}
.about-consultation {
h3 {
margin-top: 0;
margin-bottom: 5px;
}
margin-bottom: 25px;
}
.about-videos {
li {
margin-right: 2%;
vertical-align: top;
font-size: 12px;
}
}
.about-organizations, .about-clients {
.make-row();
li {
.make-xs-column(4);
.make-sm-column(2);
}
}
.about-videos {
li {
width: 165px;
}
.plugin_video {
margin-bottom: 8px;
}
}
.about-organizations {
li {
text-align: center;
p {
height: 70px;
line-height: 70px;
vertical-align: middle;
}
a {
font-size: 12px;
}
}
}
.about-clients {
li {
h5 {
height: 35px;
}
p {
text-align: center;
}
}
}

@ -4,14 +4,33 @@
} }
} }
.plugin-blog-category-our-cases { .plugin-blog-category-cases {
.make-row();
li { li {
display: inline-block; .make-xs-column(4);
.make-sm-column(3);
font-size: 12px; font-size: 12px;
width: 220px;
margin-right: 2%;
vertical-align: top; vertical-align: top;
} }
}
.blog-list-older {
margin-top: 40px;
}
article {
width: 80%;
header {
h2, h4 {
margin-bottom: 5px;
}
p {
margin-bottom: 15px;
}
}
} }

@ -79,21 +79,39 @@
font-family: @font-family-monospace; font-family: @font-family-monospace;
} }
.header-menu { .header-menu {
font-size: 16px; font-size: 16px;
li { li {
margin-top: 1px; margin-top: 1px;
font-weight: 400; font-weight: 400;
vertical-align: top;
white-space: nowrap;
// width: 13.9%;
@media (min-width: 0) {
width: auto;
}
@media (min-width: @screen-md-min) { @media (min-width: @screen-md-min) {
margin-right: 22px; margin-right: 22px;
} }
@media (min-width: @screen-lg-min) { @media (min-width: 1200px) {
margin-right: 50px; margin-right: initial;
width: 13.9%;
} }
// @media (min-width: @screen-lg-min) {
// margin-right: 50px;
// }
a { a {
text-decoration: underline; text-decoration: underline;
} }
@ -110,3 +128,20 @@
} }
} }
} }
.header-menu-description {
font-size: 12px;
@media (min-width: 0) {
display: none;
}
@media (min-width: 1200px) {
display: block;
}
li {
width: 13.9%;
}
}

@ -14,6 +14,8 @@
@import 'clients.less'; @import 'clients.less';
@import 'blog.less';
@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic|Roboto+Slab:700,400&subset=cyrillic-ext,latin); @import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic|Roboto+Slab:700,400&subset=cyrillic-ext,latin);
@ -40,3 +42,22 @@
z-index: -1; z-index: -1;
left: 0; left: 0;
} }
.btn-primary {
//.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
.button-variant(#fff; #135898; #fff);
color: #ffffff;
background-color: #135898;
background: url('/static/imgs/btn_bg.png');
border: 1px dashed #fff;
border-radius: 3px;
box-shadow: 0 0 0 2px #135898;
font-family: 'Roboto Slab';
font-weight: 500;
padding-top: 3px;
}

@ -0,0 +1,39 @@
{% load i18n thumbnail shuffle %}
<div class="plugin plugin-people">
{% if people_groups %}
{# Because of hvad I have to activate the plugin's language :( #}
{% language instance.language %}
{% for group, people_list in people_groups.items %}
{% if group.name %}
<div class="people-group">
<h2>{{ group.name }}</h2>
<div class="people-lead">{{ group.description|safe }}</div>
<p class="people-desc">
{% if group.phone %}{% trans "Phone:" %} <span>{{ group.phone }}</span><br />{% endif %}
{% trans "Address:" %}
<span>{{ group.address }}</span>
</p>
</div>
{% endif %}
{% endfor %}
{% endlanguage %}
{% endif %}
{% if not people_groups %}
<div class="plugin-people-feature">
{% for person in people|shuffle|slice:":1" %}
<div class="people-visual">
<img src="{% thumbnail person.visual 120x150 crop subject_location=person.visual.subject_location quality=100 %}" alt="{{ person.name }}" />
</div>
<div class="people-description">
<p>{{ person.name }}, {% trans 'our' %} {{ person.function|lower }}, {% trans 'answer your question' %}</p>
</div>
<div class="people-controls">
<a class="btn btn-primary">{% trans 'Free Consultation' %}</a>
</div>
{% endfor %}
</div>
<div class="clearfix"></div>
{% endif %}
</div>

@ -26,7 +26,7 @@
<div class="header-contacts"> <div class="header-contacts">
<ul class="list-unstyled list-inline"> <ul class="list-unstyled list-inline">
<li>{% language_chooser 'language_chooser.html' %}</li> <li>{% language_chooser 'language_chooser.html' %}</li>
<li><a href="{% page_url "about" %}">{% page_attribute "page_title" "about" %}</a></li> <li><a href="{% page_url "about" %}"><strong>{% page_attribute "page_title" "about" %}</strong></a></li>
</ul> </ul>
<p class="city">{% trans 'Moscow' %}</p> <p class="city">{% trans 'Moscow' %}</p>
<div class="consultation"> <div class="consultation">

@ -0,0 +1,3 @@
<iframe src="{{ object.get_movie }}?html5=1&showinfo=0"
width="{{ object.get_width }}" height="{{ object.get_height }}" frameborder="0" allowfullscreen></iframe>

@ -0,0 +1,9 @@
import random
from django import template
register = template.Library()
@register.filter
def shuffle(arg):
aux = list(arg)[:]
random.shuffle(aux)
return aux
Loading…
Cancel
Save