Skip to content

Commit

Permalink
Merge pull request #153 from colab/title_refactor
Browse files Browse the repository at this point in the history
Added possibility to override full title
  • Loading branch information
chocoelho committed Jan 25, 2016
2 parents 0f5bb53 + 945d6c6 commit 64a1720
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion colab/accounts/templates/accounts/user_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ block.super }}
{% endblock %}

{% block title %}Perfil{% endblock %}
{% block pagetitle %}Perfil{% endblock %}

{% block head_js %}
{% for widget in widgets_charts %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block title %}Password reset complete{% endblock %}
{% block pagetitle %}Password reset complete{% endblock %}

{% block main-content %}
<p>Your password has been set. You may go ahead and log in now.</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% load i18n %}
{% block title %}{% trans "Setting New password" %}{% endblock %}
{% block pagetitle %}{% trans "Setting New password" %}{% endblock %}
{% block main-content %}
{% if validlink %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block title %}Password reset successful{% endblock %}
{% block pagetitle %}Password reset successful{% endblock %}

{% block main-content %}
<p>We've e-mailed you instructions for setting your password to the e-mail address you submitted.</p>
Expand Down
2 changes: 1 addition & 1 deletion colab/search/templates/search/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load i18n tz highlight superarchives search_preview_templates %}
{% load static from staticfiles %}

{% block title %}{% trans 'search'|title %}{% endblock %}
{% block pagetitle %}{% trans 'search'|title %}{% endblock %}

{% block head_js %}
<script type="text/javascript" src="{% static 'third-party/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js' %}"></script>
Expand Down
2 changes: 1 addition & 1 deletion colab/super_archives/templates/message-thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% trans "Anonymous" as anonymous %}

{% block title %}{{ first_msg.subject_clean }}{% endblock %}
{% block pagetitle %}{{ first_msg.subject_clean }}{% endblock %}

{% block head_js %}

Expand Down
2 changes: 1 addition & 1 deletion colab/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endif %}
{% endblock %}

<title>{% block title %}Colab{% endblock %} - Colab</title>
<title>{%block title %}{% block pagetitle %}Colab{% endblock %} - Colab {% endblock %}</title>

<link rel="shortcut icon" type="image/x-icon" href="{% static 'img/fav.ico' %}">

Expand Down
2 changes: 1 addition & 1 deletion colab/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{block.super}}
{% endblock %}

{% block title %}Home{% endblock %}
{% block pagetitle %}Home{% endblock %}

{% block head_js %}
{% for widget in widgets_dashboard %}
Expand Down

0 comments on commit 64a1720

Please sign in to comment.