Merge branch 'master' into 5151/gdpr_modal
This commit is contained in:
commit
16b5f1e5a4
12 changed files with 131 additions and 9 deletions
14
Changelog
14
Changelog
|
@ -1,4 +1,16 @@
|
|||
Next:
|
||||
2.4.7: 2019-01-30
|
||||
* #6213: [cms] Make ungleich product items equal heights and add option to animate or not animate the contents (MR!682 by Aatish)
|
||||
2.4.6: 2019-01-09
|
||||
* #6261: Add ungleich black logo to blog template for mobile view (MR!685)
|
||||
2.4.5: 2019-01-07
|
||||
* bugfix: [blog] Fix DE language option not being shown in the blog (MR!684) and revert back the RSS URL to the old one
|
||||
2.4.4: 2019-01-02
|
||||
* bugfix: [blog] Create blog config for ungleich.ch and change RSS URL accordingly
|
||||
2.4.3: 2018-12-24
|
||||
* #6260: Add viewport and other missing meta tags (MR!683)
|
||||
2.4.2: 2018-12-23
|
||||
* Update djangcocms-blog version (0.7.0 -> 0.9.0)
|
||||
* #6038: Change datacenterlight.ch message form to send email to support@ungleich.ch (MR!679)
|
||||
* bugfix: Use correct version of django-multisite (MR #676)
|
||||
2.4.1: 2018-10-18
|
||||
* bugfix: Update pycryptodome module from 3.4 to 3.6.6 (PR #674)
|
||||
|
|
|
@ -64,7 +64,7 @@ class ContactUsView(FormView):
|
|||
sender=form.cleaned_data.get('email')
|
||||
),
|
||||
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
|
||||
'to': [from_emails.get(from_page, 'info@ungleich.ch')],
|
||||
'to': [from_emails.get(from_page, 'support@ungleich.ch')],
|
||||
'body': "\n".join(
|
||||
["%s=%s" % (k, v) for (k, v) in form.cleaned_data.items()]),
|
||||
'reply_to': [form.cleaned_data.get('email')],
|
||||
|
|
|
@ -402,4 +402,24 @@ body {
|
|||
|
||||
.blog-content img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#logoBlack {
|
||||
display: none;
|
||||
}
|
||||
#logoWhite {
|
||||
display: block;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
#logoBlack {
|
||||
display: block;
|
||||
}
|
||||
|
||||
#logoWhite {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.custom-black-logo {
|
||||
padding: 8px 15px;
|
||||
}
|
50
digitalglarus/static/blog.ungleich.ch/img/logo_black.svg
Normal file
50
digitalglarus/static/blog.ungleich.ch/img/logo_black.svg
Normal file
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="130px" height="40px" viewBox="0 0 130 40" enable-background="new 0 0 130 40" xml:space="preserve">
|
||||
<g>
|
||||
<path d="M36.4,29.9c0-0.5,0.2-1,0.5-1.5c0.4-0.5,0.9-0.9,1.6-1.3V27c-0.4-0.2-0.7-0.5-0.9-0.8c-0.3-0.3-0.4-0.8-0.4-1.3
|
||||
c0-0.4,0.1-0.9,0.4-1.3c0.3-0.4,0.7-0.8,1.2-1.2v-0.1c-0.5-0.3-0.9-0.8-1.2-1.4c-0.3-0.6-0.5-1.2-0.5-2c0-0.7,0.1-1.4,0.4-2
|
||||
c0.3-0.6,0.7-1.1,1.1-1.5c0.5-0.4,1-0.7,1.7-0.9c0.6-0.2,1.3-0.3,2-0.3c0.7,0,1.4,0.1,2,0.3h5.3v2h-3.2c0.3,0.3,0.5,0.6,0.7,1.1
|
||||
c0.2,0.4,0.3,0.9,0.3,1.4c0,0.7-0.1,1.3-0.4,1.9c-0.3,0.6-0.6,1-1.1,1.4c-0.5,0.4-1,0.7-1.6,0.9c-0.6,0.2-1.3,0.3-2,0.3
|
||||
c-0.3,0-0.7,0-1-0.1c-0.4-0.1-0.7-0.2-1.1-0.3c-0.6,0.4-0.9,0.8-0.9,1.4c0,0.5,0.2,0.8,0.7,1c0.4,0.2,1.1,0.3,1.9,0.3h2.8
|
||||
c1.7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<polygon points="119.1,11.2 124.4,0 126.4,0 121.2,11.2 "/>
|
||||
</g>
|
||||
<g>
|
||||
<path d="M56.6,23.6c0,0.9,0.2,1.6,0.7,2c0.5,0.4,1,0.6,1.8,0.6c0.4,0,0.7,0,1.1-0.1c0.4-0.1,0.8-0.2,1.2-0.4l0.6,2
|
||||
c-0.3,0.1-0.6,0.2-0.9,0.3c-0.3,0.1-0.6,0.2-0.8,0.2c-0.3,0.1-0.6,0.1-0.9,0.2c-0.3,0-0.7,0.1-1,0.1c-1.5,0-2.6-0.4-3.3-1.3
|
||||
c-0.8-0.8-1.1-2-1.1-3.6V5.7h-4.3l6.9-4.9"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 4.3 KiB |
|
@ -56,7 +56,9 @@ dotenv.read_dotenv("{0}/.env".format(PROJECT_DIR))
|
|||
|
||||
from multisite import SiteID
|
||||
|
||||
SITE_ID = SiteID(default=1)
|
||||
UNGLEICH_BLOG_SITE_ID = int_env("UNGLEICH_BLOG_SITE_ID")
|
||||
SITE_ID = SiteID(default=(UNGLEICH_BLOG_SITE_ID if
|
||||
UNGLEICH_BLOG_SITE_ID > 0 else 1))
|
||||
|
||||
APP_ROOT_ENDPOINT = "/"
|
||||
APPEND_SLASH = True
|
||||
|
|
|
@ -50,7 +50,7 @@ django-templatetag-sugar==1.0
|
|||
django-treebeard==4.0.1
|
||||
djangocms-admin-style==1.1.1
|
||||
djangocms-apphook-setup==0.1.2
|
||||
djangocms-blog==0.7.0
|
||||
djangocms-blog==0.9.0
|
||||
djangocms-file==1.0
|
||||
djangocms-flash==0.3.0
|
||||
djangocms-googlemap==0.4.0
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://blog.ungleich.ch/en-us/cms/blog/feed/">
|
||||
<a href="https://ungleich.ch/en-us/cms/blog/feed/">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
|
||||
|
|
|
@ -10,9 +10,8 @@
|
|||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="https://www.ungleich.ch">
|
||||
<img src="{% static "blog.ungleich.ch/img/logo_white.svg" %}" />
|
||||
</a>
|
||||
<a href="/" id="logoBlack" class="navbar-brand custom-black-logo"><img src="{% static "blog.ungleich.ch/img/logo_black.svg" %}"></a>
|
||||
<a href="/" id="logoWhite" class="navbar-brand"><img src="{% static "blog.ungleich.ch/img/logo_white.svg" %}"></a>
|
||||
</div>
|
||||
|
||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="Affordable VM hosting in Glarus, Switzerland, operated by 100% hydropower. Devuan, debian, freebsd, ubuntu, centos. Our tech stack is fully open source.">
|
||||
<meta name="author" content="ungleich glarus ag">
|
||||
<title>
|
||||
{% block title %}
|
||||
{% page_attribute "page_title" %}
|
||||
|
|
20
ungleich_page/migrations/0021_ungleichproduct_animate.py
Normal file
20
ungleich_page/migrations/0021_ungleichproduct_animate.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.4 on 2018-12-09 15:06
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('ungleich_page', '0020_auto_20180320_0216'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='ungleichproduct',
|
||||
name='animate',
|
||||
field=models.BooleanField(default=True),
|
||||
),
|
||||
]
|
|
@ -144,6 +144,7 @@ class UngleichProductItem(ServiceItem):
|
|||
|
||||
class UngleichProduct(Service):
|
||||
section_class = models.CharField(max_length=100, default="", blank=True)
|
||||
animate = models.BooleanField(default=True)
|
||||
|
||||
|
||||
class UngleichCustomer(Service):
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
{% for plugin in product_instance.child_plugin_instances %}
|
||||
<div class="col-md-4 col-sm-6 portfolio-item wow fadeInUp" data-wow-delay="{{ forloop.counter|multiply:0.25 }}s" style="visibility: visible; animation-delay: {{ forloop.counter|multiply:0.25 }}s; animation-name: fadeInUp;">
|
||||
<div class="col-md-4 col-sm-6 portfolio-item sameheight-{{product_instance.pk}} {% if product_instance.animate %}wow fadeInUp{%endif%}" data-wow-delay="{{ forloop.counter|multiply:0.25 }}s" style="visibility: visible; animation-delay: {{ forloop.counter|multiply:0.25 }}s; animation-name: fadeInUp;">
|
||||
{% render_plugin plugin %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
@ -16,3 +16,16 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
var equalizer = ".sameheight-{{product_instance.pk}}"
|
||||
var heights = $(equalizer).map(function() {
|
||||
return $(this).height();
|
||||
}).get(),
|
||||
|
||||
maxHeight = Math.max.apply(null, heights);
|
||||
$(equalizer).height(maxHeight);
|
||||
});
|
||||
</script>
|
Loading…
Reference in a new issue