parent
20657f89ab
commit
2108b640c1
24 changed files with 498 additions and 259 deletions
Binary file not shown.
@ -0,0 +1,19 @@ |
||||
from menus.base import Menu, NavigationNode |
||||
from menus.menu_pool import menu_pool |
||||
from django.utils.translation import ugettext_lazy as _ |
||||
|
||||
# class TestMenu(Menu): |
||||
|
||||
# def get_nodes(self, request): |
||||
# nodes = [] |
||||
# n = NavigationNode(_('sample root page'), "/", 1) |
||||
# n2 = NavigationNode(_('sample settings page'), "/bye/", 2) |
||||
# n3 = NavigationNode(_('sample account page'), "/hello/", 3) |
||||
# n4 = NavigationNode(_('sample my profile page'), "/hello/world/", 4, 3) |
||||
# nodes.append(n) |
||||
# nodes.append(n2) |
||||
# nodes.append(n3) |
||||
# nodes.append(n4) |
||||
# return nodes |
||||
|
||||
# menu_pool.register_menu(TestMenu) |
||||
@ -0,0 +1,68 @@ |
||||
|
||||
|
||||
footer { |
||||
.make-row(); |
||||
|
||||
margin-top: 10px; |
||||
margin-bottom: 5px; |
||||
opacity: 0.5; |
||||
|
||||
font-size: 12px; |
||||
|
||||
.background-line-pattern { |
||||
opacity: 0.13; |
||||
} |
||||
|
||||
a { |
||||
color: #000000; |
||||
text-decoration: underline; |
||||
} |
||||
|
||||
li.active { |
||||
a { |
||||
text-decoration: none; |
||||
} |
||||
} |
||||
|
||||
.about { |
||||
.make-xs-column(2); |
||||
|
||||
margin-top: -10px; |
||||
|
||||
.copyright { |
||||
margin-top: 5px; |
||||
opacity: 0.7; |
||||
} |
||||
|
||||
ul { |
||||
margin-top: 16px; |
||||
|
||||
li { |
||||
line-height: 20px; |
||||
} |
||||
} |
||||
} |
||||
|
||||
.menu { |
||||
.make-xs-column(4); |
||||
|
||||
h5 { |
||||
margin-top: 6px; |
||||
margin-bottom: 18px; |
||||
} |
||||
|
||||
li { |
||||
line-height: 20px; |
||||
} |
||||
} |
||||
|
||||
.contacts { |
||||
.make-xs-column(2); |
||||
|
||||
margin-top: 39px; |
||||
|
||||
li { |
||||
margin-bottom: 10px; |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,105 @@ |
||||
.wrapper { |
||||
.make-row(); |
||||
|
||||
margin-top: 10px; |
||||
margin-bottom: -10px; |
||||
} |
||||
|
||||
.header-logo { |
||||
.make-lg-column(8); |
||||
.make-md-column(8); |
||||
.make-sm-column(6); |
||||
.make-xs-column(6); |
||||
|
||||
.slogan { |
||||
position: absolute; |
||||
top: 58px; |
||||
left: 176px; |
||||
width: 160px; |
||||
|
||||
opacity: 0.5; |
||||
|
||||
line-height: 17px; |
||||
} |
||||
} |
||||
|
||||
.header-contacts { |
||||
.make-lg-column(4); |
||||
.make-md-column(4); |
||||
.make-sm-column(6); |
||||
.make-xs-column(6); |
||||
|
||||
text-align: right; |
||||
|
||||
margin-top: -4px; |
||||
|
||||
ul { |
||||
margin-right: -5px; |
||||
margin-bottom: 0; |
||||
} |
||||
|
||||
p { |
||||
margin: 0; |
||||
} |
||||
} |
||||
|
||||
.consultation { |
||||
h5 { |
||||
opacity: 0.5; |
||||
|
||||
margin-bottom: 3px; |
||||
margin-top: 0; |
||||
} |
||||
|
||||
h3 { |
||||
margin: 0; |
||||
} |
||||
|
||||
button { |
||||
margin-bottom: 5px; |
||||
margin-right: -5px; |
||||
} |
||||
} |
||||
|
||||
|
||||
.logo { |
||||
height: 100px; |
||||
} |
||||
|
||||
|
||||
|
||||
.header-menu-font { |
||||
font-family: @font-family-monospace; |
||||
} |
||||
|
||||
.header-menu { |
||||
font-size: 16px; |
||||
|
||||
li { |
||||
margin-top: 1px; |
||||
font-weight: 400; |
||||
|
||||
@media (min-width: @screen-md-min) { |
||||
margin-right: 22px; |
||||
} |
||||
|
||||
@media (min-width: @screen-lg-min) { |
||||
margin-right: 50px; |
||||
} |
||||
|
||||
a { |
||||
text-decoration: underline; |
||||
} |
||||
} |
||||
|
||||
|
||||
|
||||
li.active { |
||||
font-weight: 700; |
||||
a { |
||||
color: #000000; |
||||
|
||||
text-decoration: none; |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,12 @@ |
||||
.plugin-people { |
||||
|
||||
.people-detail-visual { |
||||
margin-top: 20px; |
||||
} |
||||
|
||||
li.people-item { |
||||
width: 150px; |
||||
vertical-align: top; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,61 @@ |
||||
.sub-content { |
||||
.make-row(); |
||||
|
||||
.menu { |
||||
.make-lg-column(2); |
||||
.make-md-column(2); |
||||
// .make-sm-column(1); |
||||
// В разделе сотрудников заезжает контент |
||||
position: relative; |
||||
z-index: 100; |
||||
|
||||
li { |
||||
@media (min-width: 320px) { |
||||
display: inline-block; |
||||
margin-right: 15px; |
||||
} |
||||
|
||||
@media (min-width: @screen-md-min) { |
||||
display: block; |
||||
margin-bottom: 5px; |
||||
} |
||||
} |
||||
|
||||
|
||||
h5 { |
||||
font-weight: 700; |
||||
} |
||||
li.active { |
||||
display: inline-block; |
||||
background: #EDEDED; |
||||
padding: 1px 5px; |
||||
margin: -5px; |
||||
|
||||
margin-bottom: 5px; |
||||
|
||||
@media (min-width: 320px) { |
||||
margin-right: 10px; |
||||
} |
||||
|
||||
a { |
||||
color: #000000; |
||||
|
||||
text-decoration: none; |
||||
} |
||||
} |
||||
} |
||||
|
||||
.content { |
||||
.make-lg-column(8); |
||||
.make-md-column(10); |
||||
.breadcrumb { |
||||
padding: 0; |
||||
margin-bottom: 0; |
||||
background-color: #fff; |
||||
border-radius: 0; |
||||
|
||||
margin-top: 8px; |
||||
} |
||||
// .make-sm-column(11); |
||||
} |
||||
} |
||||
@ -0,0 +1,28 @@ |
||||
@font-family-sans-serif: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; |
||||
@font-family-serif: Georgia, "Times New Roman", Times, serif; |
||||
@font-family-monospace: 'Roboto Slab', Menlo, Monaco, Consolas, "Courier New", monospace; |
||||
@font-family-base: @font-family-sans-serif; |
||||
|
||||
@font-size-base: 14px; |
||||
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px |
||||
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px |
||||
|
||||
// @font-size-h1: floor((@font-size-base * 2.6)); // ~36px |
||||
// @font-size-h2: floor((@font-size-base * 2.15)); // ~30px |
||||
@font-size-h1: ceil((@font-size-base * 1.7));// ~24px |
||||
@font-size-h2: @font-size-h1; |
||||
@font-size-h3: ceil((@font-size-base * 1.55)); // ~22px |
||||
@font-size-h4: ceil((@font-size-base * 1.25)); // ~18px |
||||
@font-size-h5: @font-size-base; |
||||
@font-size-h6: ceil((@font-size-base * 0.85)); // ~12px |
||||
|
||||
//** Unit-less `line-height` for use in components like buttons. |
||||
@line-height-base: 1.428571429; // 20/14 |
||||
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc. |
||||
@line-height-computed: floor((@font-size-base * @line-height-base)); // ~20px |
||||
|
||||
//** By default, this inherits from the `<body>`. |
||||
@headings-font-family: inherit; |
||||
@headings-font-weight: 500; |
||||
@headings-line-height: 1.1; |
||||
@headings-color: inherit; |
||||
@ -0,0 +1,19 @@ |
||||
{% extends "aldryn_newsblog/two_column.html" %} |
||||
{% load i18n cms_tags %} |
||||
|
||||
{% block newsblog_content %} |
||||
{% render_placeholder view.config.list_view_placeholder language placeholder_language %} |
||||
<div class="aldryn-newsblog-list"> |
||||
{% for article in article_list %} |
||||
{% include "aldryn_newsblog/includes/article.html" %} |
||||
{% empty %} |
||||
<p class="well">{% trans "No items available" %}</p> |
||||
{% endfor %} |
||||
</div> |
||||
{% endblock %} |
||||
|
||||
{% block newsblog_footer %} |
||||
<div class="aldryn-newsblog-pagination"> |
||||
{% include "aldryn_newsblog/includes/pagination.html" %} |
||||
</div> |
||||
{% endblock %} |
||||
@ -0,0 +1,8 @@ |
||||
{% extends CMS_TEMPLATE %} |
||||
|
||||
{% block extend_breadcrumb %} |
||||
{{ block.super }} |
||||
{% block newsblog_breadcrumb %}{% endblock newsblog_breadcrumb %} |
||||
{% endblock extend_breadcrumb %} |
||||
|
||||
{% block content_safe %}{% endblock content_safe %} |
||||
@ -0,0 +1,72 @@ |
||||
{% load i18n apphooks_config_tags cms_tags sekizai_tags staticfiles thumbnail %} |
||||
{% load url from future %} |
||||
|
||||
<article class="aldryn-newsblog-article{% if article.is_featured %} aldryn-newsblog-featured{% endif %}{% if not article.published %} unpublished{% endif %}{% if article.future %} future{% endif %}"> |
||||
{% block newsblog_visual %} |
||||
{% if article.featured_image_id %} |
||||
<p class="visual"> |
||||
{% if not detail_view %} |
||||
<a href="{{ article.get_absolute_url }}"> |
||||
{% endif %} |
||||
<img src="{% thumbnail article.featured_image.image 800x450 crop subject_location=article.featured_image.subject_location %}" alt="{{ article.featured_image.alt }}" class="img-responsive"> |
||||
{% if not detail_view %} |
||||
</a> |
||||
{% endif %} |
||||
</p> |
||||
{% endif %} |
||||
{% endblock newsblog_visual %} |
||||
|
||||
{% block newsblog_categories %} |
||||
{% if article.categories %} |
||||
<p class="category"> |
||||
{% for category in article.categories.all %} |
||||
<a href="{% namespace_url "article-list-by-category" category.slug namespace=namespace default='' %}">{{ category.name }}</a>{% if not forloop.last %}, {% endif %} |
||||
{% endfor %} |
||||
</p> |
||||
{% endif %} |
||||
{% endblock newsblog_categories %} |
||||
|
||||
{% block newsblock_title %} |
||||
<h2> |
||||
{% if not detail_view %} |
||||
<a href="{% namespace_url "article-detail" article.slug namespace=namespace default='' %}">{% render_model article "title" %}</a> |
||||
{% else %} |
||||
{% render_model article "title" %} |
||||
{% endif %} |
||||
</h2> |
||||
{% endblock newsblock_title %} |
||||
|
||||
{% block newsblog_meta %} |
||||
{% if not detail_view %} |
||||
<div class="lead"> |
||||
{% render_model article "lead_in" %} |
||||
</div> |
||||
{% endif %} |
||||
|
||||
{% include "aldryn_newsblog/includes/author.html" with author=article.author %} |
||||
|
||||
{% if article.tags and detail_view %} |
||||
<p class="tags"> |
||||
{% for tag in article.tags.all %} |
||||
<a href="{% namespace_url safe "article-list-by-tag" tag.slug namespace=namespace default='' %}">{{ tag.name }}</a> |
||||
{% endfor %} |
||||
</p> |
||||
{% endif %} |
||||
|
||||
{% if detail_view %} |
||||
<div class="lead"> |
||||
{% render_model article "lead_in" %} |
||||
</div> |
||||
{% endif %} |
||||
{% endblock newsblog_meta %} |
||||
|
||||
{% block newsblog_content %} |
||||
{% if detail_view %} |
||||
<div class="content"> |
||||
{% render_placeholder article.content language placeholder_language %} |
||||
</div> |
||||
{% endif %} |
||||
{% endblock newsblog_content %} |
||||
</article> |
||||
|
||||
{% addtoblock "css" %}<link rel="stylesheet" href="{% static 'css/aldryn-newsblog/article.css' %}">{% endaddtoblock %} |
||||
@ -0,0 +1,16 @@ |
||||
{% extends "aldryn_newsblog/base.html" %} |
||||
{% load i18n cms_tags %} |
||||
|
||||
{% block content_safe %} |
||||
|
||||
{% if view.show_header %} |
||||
{% render_placeholder view.config.placeholder_base_top %} |
||||
{% endif %} |
||||
<div class="aldryn aldryn-newsblog"> |
||||
{% block newsblog_title %}{% endblock %} |
||||
{% block newsblog_content %}{% endblock %} |
||||
{% block newsblog_footer %}{% endblock %} |
||||
</div> |
||||
|
||||
|
||||
{% endblock content_safe %} |
||||
@ -0,0 +1,5 @@ |
||||
{% for ance in ancestors %} |
||||
<li> |
||||
<a href="{{ ance.get_absolute_url }}">{{ ance.get_menu_title }}</a> |
||||
</li> |
||||
{% endfor %} |
||||
@ -1,17 +1,16 @@ |
||||
{% load aldryn_people_tags i18n thumbnail %} |
||||
{% load menu_tags aldryn_people_tags i18n thumbnail %} |
||||
|
||||
<div class="people-item"> |
||||
<h2>{{ person.name }} <span>{{ person.function }}</span></h2> |
||||
{% if person.visual %}<p class="people-visual"> |
||||
{% if instance.show_links %}<a href="{{ person.get_absolute_url }}">{% endif %} |
||||
<img src="{% thumbnail person.visual 120x150 crop subject_location=person.visual.subject_location %}" alt="{{ person.name }}" /> |
||||
{% if instance.show_links %}</a>{% endif %} |
||||
</p>{% endif %} |
||||
<p class="people-meta"> |
||||
{% if person.phone %}{% trans "Phone:" %} <span>{{ person.phone|phoneformat }}</span><br />{% endif %} |
||||
{% if person.mobile %}{% trans "Mobile:" %} <span>{{ person.mobile|phoneformat }}</span><br />{% endif %} |
||||
{% if person.email %}{% trans "E-Mail:" %} <a href="mailto:{{ person.email }}">{{ person.email }}</a>{% endif %} |
||||
{% if instance.show_vcard and person.vcard_enabled %}<br /><a href="{% url 'download_vcard' person.slug %}" class="btn-download">{% trans "Download vCard" %}</a>{% endif %} |
||||
</p> |
||||
{% if person.description %}<div class="people-desc">{{ person.description|safe }}</div>{% endif %} |
||||
{% show_breadcrumb 2 %} |
||||
|
||||
<div class="plugin-people row"> |
||||
<div class="col-sm-4"> |
||||
{% if person.visual %}<p class="people-detail-visual"> |
||||
<img src="{% thumbnail person.visual 250x375 crop subject_location=person.visual.subject_location %}" alt="{{ person.name }}" /> |
||||
{% endif %} |
||||
</div> |
||||
<div class="col-sm-8"> |
||||
<h2>{{ person.name }}</h2> |
||||
<h5><em>{{ person.function }}</em></h5> |
||||
{% if person.description %}<div class="people-desc">{{ person.description|safe }}</div>{% endif %} |
||||
</div> |
||||
</div> |
||||
@ -1,16 +1,17 @@ |
||||
{% load i18n thumbnail %} |
||||
|
||||
<ul class="people-items list-unsltyled list-inline"> |
||||
<ul class="plugin-people people-items list-unsltyled list-inline"> |
||||
{% for person in people %} |
||||
<li class="people-item"> |
||||
{% if instance.show_links %}<a href="{{ person.get_absolute_url }}">{% endif %} |
||||
{% if person.visual %} |
||||
<p class="people-visual"> |
||||
{% if instance.show_links %}<a href="{{ person.get_absolute_url }}">{% endif %} |
||||
<img src="{% thumbnail person.visual 120x150 crop subject_location=person.visual.subject_location quality=100 %}" alt="{{ person.name }}" /> |
||||
{% if instance.show_links %}</a>{% endif %} |
||||
|
||||
</p> |
||||
{% endif %} |
||||
<h5>{{ person.name }}</h5> |
||||
{% if instance.show_links %}</a>{% endif %} |
||||
<h6>{{ person.function }}</h6> |
||||
</li> |
||||
{% endfor %} |
||||
|
||||
@ -1,9 +1,13 @@ |
||||
{% extends "base.html" %} |
||||
{% extends CMS_TEMPLATE %} |
||||
{% load cms_tags menu_tags %} |
||||
|
||||
{% block content %} |
||||
<div class="plugin plugin-people"> |
||||
<div class="people-detail"> |
||||
{% include "aldryn_people/includes/people_item.html" with person=person %} |
||||
</div> |
||||
</div> |
||||
{% endblock content %} |
||||
{% block breadcrumb %} |
||||
<ul class="list-unstyled list-inline breadcrumb"> |
||||
{% show_breadcrumb 0 "aldryn_people/includes/breadcrumb.html" 0 %} |
||||
<li><span>{{ person.name }}</span></li> |
||||
</ul> |
||||
{% endblock breadcrumb %} |
||||
|
||||
{% block content_safe %} |
||||
{% include "aldryn_people/includes/people_item.html" with person=person %} |
||||
{% endblock content_safe %} |
||||
@ -0,0 +1,9 @@ |
||||
{% for ance in ancestors %} |
||||
<li> |
||||
{% if not forloop.last or link_all %} |
||||
<a href="{{ ance.get_absolute_url }}">{{ ance.get_menu_title }}</a> |
||||
{% else %} |
||||
<span class="active">{{ ance.get_menu_title }}</span> |
||||
{% endif %} |
||||
</li> |
||||
{% endfor %} |
||||
@ -1 +1 @@ |
||||
{{ ancestors.1.title }} |
||||
<a href="{{ ancestors.1.get_absolute_url }}">{{ ancestors.1.title }}</a> |
||||
Loading…
Reference in new issue