Fix tests
This commit is contained in:
parent
866f6c8083
commit
d88745f46b
11 changed files with 35 additions and 116 deletions
|
@ -1,11 +0,0 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %}{{ block.super }} - {% translate "Welcome" %}{% endblock title %}
|
||||
{% block page_title %}{% translate "Welcome to our customer self service" %}{% endblock page_title %}
|
||||
{% block content %}
|
||||
<p>{% url 'customer_dashboard' slug=user.username as dashboard_url %}
|
||||
{% blocktranslate with full_name=user.get_full_name trimmed %}
|
||||
Hello {{ full_name }},<br/>
|
||||
You can visit your <a href="{{ dashboard_url }}">Dashboard</a> to view and modify your hosting options.
|
||||
{% endblocktranslate %}</p>
|
||||
{% endblock content %}
|
|
@ -1,9 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% load i18n %}
|
||||
{% block title %}{{ block.super }} - {% blocktranslate with full_name=dashboard_user.get_full_name trimmed %}
|
||||
{% block title %}{{ block.super }} - {% blocktranslate with full_name=request.user.get_full_name trimmed %}
|
||||
Dashboard for {{ full_name }}
|
||||
{% endblocktranslate %}{% endblock title %}
|
||||
{% block page_title %}{% blocktranslate with full_name=dashboard_user.get_full_name trimmed %}
|
||||
{% block page_title %}{% blocktranslate with full_name=request.user.get_full_name trimmed %}
|
||||
Dashboard for {{ full_name }}
|
||||
{% endblocktranslate %}{% endblock page_title %}
|
||||
{% block content %}
|
||||
|
@ -39,7 +39,7 @@
|
|||
{% translate "This user has no hosting packages assigned yet." %}{% endif %}</p>
|
||||
{% endif %}
|
||||
{% if user.is_staff %}
|
||||
<a href="{% url "create_customer_hosting_package" user=object.username %}"
|
||||
<a href="{% url "create_customer_hosting_package" user=request.user.username %}"
|
||||
class="btn btn-primary">{% translate "Add hosting package" %}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue