Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Adds div around pagetitle block
Browse files Browse the repository at this point in the history
  • Loading branch information
evildmp committed Nov 27, 2014
1 parent 7456057 commit 727d582
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 21 deletions.
8 changes: 5 additions & 3 deletions arkestra_utilities/templates/arkestra.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@
{% block menu %}<ul class= "menu">{% show_menu 0 100 100 100 "cms/arkestra_menu.html" "" "" %}</ul>{% endblock menu %}

{% block pagetitle %}
{% if not current_page.flags.no_page_title %}
{% filter typogrify %}<h{{PAGE_TITLE_HEADING_LEVEL}}>{% page_attribute title %}</h{{PAGE_TITLE_HEADING_LEVEL}}>{% endfilter %}
{% endif %}
<div id="pagetitle">
{% if not current_page.flags.no_page_title %}
{% filter typogrify %}<h{{PAGE_TITLE_HEADING_LEVEL}}>{% page_attribute title %}</h{{PAGE_TITLE_HEADING_LEVEL}}>{% endfilter %}
{% endif %}
</div>
{% endblock pagetitle %}

{% block summary %}{% endblock summary %}
Expand Down
4 changes: 3 additions & 1 deletion arkestra_utilities/templates/arkestra/generic_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
{% block nav_local %}{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ item.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ item.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block summary %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% block title %}
<title>{{ title }}</title>
{% endblock %}

{% block col_class %}
{% with is_menu_node="True" %}
{{ block.super }}
Expand All @@ -21,7 +21,9 @@

{% if pagetitle %}
{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ pagetitle|typogrify }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ pagetitle|typogrify }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}
{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

{% if pagetitle %}
{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ pagetitle|typogrify }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ pagetitle|typogrify }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}
{% endif %}

Expand All @@ -35,7 +37,7 @@
{% render_placeholder intro_page_placeholder %}

<div class="column firstcolumn">
<div class = "">
<div>
<h{{ IN_BODY_HEADING_LEVEL }}>Contact information</h{{ IN_BODY_HEADING_LEVEL }}>
<dl class="not-indented">
{% include "includes/key_contacts.html" %}
Expand Down
16 changes: 9 additions & 7 deletions contacts_and_people/templates/contacts_and_people/person.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}} class="name">
{{ person}}
</h{{PAGE_TITLE_HEADING_LEVEL}}>
{% if home_role %}
<p><span class="home-role">{{ home_role.role }}</span>
{% if MULTIPLE_ENTITY_MODE %}, {{ entity }}{% endif %}</p>
{% endif %}
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}} class="name">
{{ person}}
</h{{PAGE_TITLE_HEADING_LEVEL}}>
{% if home_role %}
<p><span class="home-role">{{ home_role.role }}</span>
{% if MULTIPLE_ENTITY_MODE %}, {{ entity }}{% endif %}</p>
{% endif %}
</div>
{% endblock pagetitle %}

{% block main_page_body %}
Expand Down
4 changes: 3 additions & 1 deletion contacts_and_people/templates/contacts_and_people/place.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}} class="name">{{ place.identifier }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}} class="name">{{ place.identifier }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block main_page_body %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}} class="name">{{ place }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}} class="name">{{ place }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block place_information %}
Expand Down
4 changes: 3 additions & 1 deletion news_and_events/templates/news_and_events/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
{% block nav_local %}{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ event.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ event.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block summary %}
Expand Down
4 changes: 3 additions & 1 deletion news_and_events/templates/news_and_events/newsarticle.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ newsarticle.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>{{ newsarticle.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block summary %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>Studentship ({{ studentship.hosted_by.short_name }}): {{ studentship.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>Studentship ({{ studentship.hosted_by.short_name }}): {{ studentship.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block summary %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
{% endblock nav_local %}

{% block pagetitle %}
<h{{PAGE_TITLE_HEADING_LEVEL}}>Vacancy: {{ vacancy.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
<div id="pagetitle">
<h{{PAGE_TITLE_HEADING_LEVEL}}>Vacancy: {{ vacancy.title }}</h{{PAGE_TITLE_HEADING_LEVEL}}>
</div>
{% endblock pagetitle %}

{% block summary %}
Expand Down

0 comments on commit 727d582

Please sign in to comment.