Merge branch 'master' into task/5690/generic-payment-page
This commit is contained in:
commit
9ff20491bd
4 changed files with 36 additions and 9 deletions
|
@ -1,4 +1,5 @@
|
||||||
Next:
|
2.2.1: 2018-09-25
|
||||||
|
* feature: Change DCLNavbarPlugin to show login option only if set (PR #665)
|
||||||
* bugfix: Log opennebula errors and send proper message when vm terminate is not completed in the stipulated time (PR #648)
|
* bugfix: Log opennebula errors and send proper message when vm terminate is not completed in the stipulated time (PR #648)
|
||||||
2.2: 2018-09-06
|
2.2: 2018-09-06
|
||||||
* bugfix: Include price in the Stripe plan name to make it distinct and to correct pricing since version 1.9
|
* bugfix: Include price in the Stripe plan name to make it distinct and to correct pricing since version 1.9
|
||||||
|
|
|
@ -180,6 +180,10 @@ class DCLNavbarPluginModel(CMSPlugin):
|
||||||
default=True,
|
default=True,
|
||||||
help_text='Select to include the language selection dropdown.'
|
help_text='Select to include the language selection dropdown.'
|
||||||
)
|
)
|
||||||
|
show_login_option = models.BooleanField(
|
||||||
|
default=True,
|
||||||
|
help_text='Uncheck this if you do not want to show login/dashboard.'
|
||||||
|
)
|
||||||
|
|
||||||
def get_logo_dark(self):
|
def get_logo_dark(self):
|
||||||
# used only if atleast one logo exists
|
# used only if atleast one logo exists
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.9.4 on 2018-09-25 20:27
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('datacenterlight', '0024_dclcalculatorpluginmodel_vm_templates_to_show'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='dclnavbarpluginmodel',
|
||||||
|
name='show_login_option',
|
||||||
|
field=models.BooleanField(default=True, help_text='Uncheck this if you do not want to show login/dashboard.'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -35,6 +35,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if instance.show_login_option %}
|
||||||
{% if not request.user.is_authenticated %}
|
{% if not request.user.is_authenticated %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'hosting:login' %}">{% trans "Login" %} <span class="fa fa-sign-in"></span></a>
|
<a href="{% url 'hosting:login' %}">{% trans "Login" %} <span class="fa fa-sign-in"></span></a>
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
<a href="{% url 'hosting:dashboard' %}">{% trans "Dashboard" %}</a>
|
<a href="{% url 'hosting:dashboard' %}">{% trans "Dashboard" %}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
<!-- to be used when more than one option for language -->
|
<!-- to be used when more than one option for language -->
|
||||||
<li class="nav-language">
|
<li class="nav-language">
|
||||||
|
|
Loading…
Reference in a new issue