Add COMMON_PROJECT_TITLE as a setting option to customize the title string.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
{% load static %}
|
||||
|
||||
{% load common_tags %}
|
||||
{% load smart_settings_tags %}
|
||||
|
||||
{% block title %}{% trans 'About' %}{% endblock %}
|
||||
|
||||
@@ -55,8 +56,20 @@
|
||||
|
||||
{% block content %}
|
||||
{% build as build_number %}
|
||||
{% smart_setting 'COMMON_PROJECT_TITLE' as setting_project_title %}
|
||||
{% project_information '__title__' as project_title %}
|
||||
|
||||
<div class="well">
|
||||
<h3 class="text-center">{% project_information '__title__' %} ({% trans 'Version' %} {% project_information '__version__' %})</h3>
|
||||
<h3 class="text-center">{{ setting_project_title }}</h3>
|
||||
{% if project_title != setting_project_title %}
|
||||
<br>
|
||||
<p class="text-center">
|
||||
{% blocktrans with setting_project_title as setting_project_title and project_title as project_title %}
|
||||
{{ setting_project_title }} is based on {{ project_title }}
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<p class="text-center">{% trans 'Version' %} {% project_information '__version__' %}</p>
|
||||
{% if build_number %}
|
||||
<p class='text-center'>{% blocktrans with build_number as build_number %}Build number: {{ build_number }}{% endblocktrans %}</p>
|
||||
{% endif %}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
{% load common_tags %}
|
||||
{% load navigation_tags %}
|
||||
{% load smart_settings_tags %}
|
||||
|
||||
<script>
|
||||
if (typeof partialNavigation === 'undefined') {
|
||||
@@ -112,6 +113,6 @@
|
||||
{% block javascript %}{% endblock %}
|
||||
|
||||
<script>
|
||||
document.title = '{% filter escapejs %}{% spaceless %}{% block title %}{% endblock %} :: {% block project_name %}{% project_information '__title__' %}{% endblock %}{% endspaceless %}{% endfilter %}';
|
||||
document.title = '{% filter escapejs %}{% spaceless %}{% block title %}{% endblock %} :: {% block project_name %}{% smart_setting "COMMON_PROJECT_TITLE" %}{% endblock %}{% endspaceless %}{% endfilter %}';
|
||||
afterBaseLoad();
|
||||
</script>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
{% load common_tags %}
|
||||
{% load navigation_tags %}
|
||||
{% load smart_settings_tags %}
|
||||
|
||||
{% spaceless %}
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
@@ -15,7 +16,7 @@
|
||||
<meta http-equiv="Content-Language" content="{{ LANGUAGE_CODE }}" />
|
||||
<title>
|
||||
{% block base_title %}
|
||||
{% block title %}{% endblock %} :: {% block project_name %}{% project_information '__title__' %}{% endblock %}
|
||||
{% block title %}{% endblock %} :: {% block project_name %}{% smart_setting 'COMMON_PROJECT_TITLE' %}{% endblock %}
|
||||
{% endblock base_title %}
|
||||
</title>
|
||||
|
||||
@@ -41,7 +42,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="{% url home_view %}">{% project_information '__title__' %}</a>
|
||||
<a class="navbar-brand" href="{% url home_view %}">{% smart_setting 'COMMON_PROJECT_TITLE' %}</a>
|
||||
</div>
|
||||
<div id="navbar" class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
{% load autoadmin_tags %}
|
||||
{% load common_tags %}
|
||||
{% load motd_tags %}
|
||||
{% load smart_settings_tags %}
|
||||
|
||||
{% block base_title %}{% trans 'Login' %}{% endblock %}
|
||||
|
||||
@@ -21,7 +22,7 @@
|
||||
<h3 class="panel-title">{% trans "First time login" %}</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
{% project_information '__title__' as project_title %}
|
||||
{% smart_setting 'COMMON_PROJECT_TITLE' as project_title %}
|
||||
<p>{% blocktrans %}You have just finished installing <strong>{{ project_title }}</strong>, congratulations!{% endblocktrans %}</p>
|
||||
<p>{% trans 'Login using the following credentials:' %}</p>
|
||||
<p>{% blocktrans with autoadmin_properties.account as account %}Username: <strong>{{ account }}</strong>{% endblocktrans %}</p>
|
||||
|
||||
Reference in New Issue
Block a user