Skip to content

Commit

Permalink
Regularize names of headings classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebader committed Jan 21, 2022
1 parent a4a7776 commit c233293
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions cv/templates/cv/_cite_warning.html
@@ -0,0 +1 @@
<span class="cv-citation-warning"><span class="cv-citation-warning-text">Citation not available.</span><span class="cv-citation-warning-msg">{{cslerr}}</span></span>
2 changes: 1 addition & 1 deletion cv/templates/cv/_list.html
@@ -1,7 +1,7 @@
{% load cv %}

{% if object_list or user.is_authenticated %}
<h2 id="{{model_name}}" class="cv-section-title">{{section_name|title}}</h2>
<h2 id="{{model_name}}" class="cv-section-heading">{{section_name|title}}</h2>

{% include section_template %}

Expand Down
6 changes: 3 additions & 3 deletions cv/templates/cv/_list_publication.html
Expand Up @@ -3,18 +3,18 @@
{% if object_list.total or user.is_authenticated %}
{% if object_list.published %}{% with 'published' as status %}
{% if object_list.revise or object_list.inprep %}
<h3 class="cv-subsection cv-subsection-{{model_name}} cv-published cv-published-{{model_name}}">Published</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-{{model_name}} cv-published cv-published-{{model_name}}">Published</h3>
{% endif %}
{% publication_entries object_list.published %}
{% endwith %}{% endif %}

{% if object_list.revise and user.is_authenticated %}
<h3 class="cv-subsection cv-subsection-{{model_name}} cv-revise cv-revise-{{model_name}}">Under Review</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-{{model_name}} cv-revise cv-revise-{{model_name}}">Under Review</h3>
{% publication_entries object_list.revise %}
{% endif %}

{% if object_list.inprep %}
<h3 class="cv-subsection cv-subsection-{{model_name}} cv-inprep cv-inprep-{{model_name}}">In Preparation</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-{{model_name}} cv-inprep cv-inprep-{{model_name}}">In Preparation</h3>
{% publication_entries object_list.inprep %}
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion cv/templates/cv/details/book.html
Expand Up @@ -9,7 +9,7 @@
{% block type-specific-info %}
{%if book.editions.all|length > 1 %}
<div class="cv-detail-editions col-12 col-sm-10 editions">
<h3 class="cv-detail cv-detail-editions-header">Other editions</h3>
<h3 class="cv-detail cv-detail-subheading cv-detail-editions-header">Other editions</h3>
<ul>
{% for edition in book.editions.all|slice:"1:" %}
<li class="cv-detail-edition-details"><span class="cv-detail-edition-edition">{{edition.edition}} edition</em> ({{edition.pub_date|date:"Y"}}){% if edition.publisher %} <span class="cv-detail-edition-publisher">{{edition.publisher}}</span>.{% endif %}{% if edition.isbn %} <span class="cv-detail-edition-isbn">ISBN: {{edition.isbn}}</span>{% endif %}{% if edition.description %} <span class="cv-detail-edition-description">{{edition.description}}</span>{% endif %}</li>
Expand Down
4 changes: 2 additions & 2 deletions cv/templates/cv/details/cv_detail.html
Expand Up @@ -16,7 +16,7 @@ <h2 class="cv-detail cv-detail-heading cv-detail-heading-{{model_name}} col-12">
{% block abstract %}
{% if object.abstract %}
<div class="cv-detail-abstract col-12 col-sm-10">
<h3 class="mt-4 cv-detail-abstract-name">{% block abstract_name %}Abstract{% endblock abstract_name %}</h3>
<h3 class="mt-4 cv-detail-subheading cv-detail-abstract-name">{% block abstract_name %}Abstract{% endblock abstract_name %}</h3>
<div id="abstract" class="cv-detail-abstract-text">
{{object.abstract_html|safe}}
</div>
Expand All @@ -43,7 +43,7 @@ <h3 class="mt-4 cv-detail-abstract-name">{% block abstract_name %}Abstract{% end
{% block files %}
{% if object.files.all or user.is_authenticated %}
<div class="cv-detail-files cv-detail-files-{{model_name}} col-12 col-sm-10 files">
<h3 class="cv-detail cv-detail-files-header cv-detail-files-header-{{model_name}} mt-4">Files</h3>
<h3 class="cv-detail cv-detail-subheading cv-detail-files-header cv-detail-files-header-{{model_name}} mt-4">Files</h3>
{% with object.files.all as files %}
<ul class="cv-detail-file-list cv-detail-file-list-{{model_name}}">
{% if files %}
Expand Down
4 changes: 2 additions & 2 deletions cv/templates/cv/sections/grant.html
Expand Up @@ -3,7 +3,7 @@
{% if object_list.total_grants or user.is_authenticated %}
{% with object_list as grants %}
{% if grants.internal_grants %}
<h3 class="cv-subsection cv-subsection-grant cv-grant-internal">Internal</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-grant cv-grant-internal">Internal</h3>
<ul class="cv-entries cv-entries-grant">
{% with grants.internal_grants as grants %}
{% include 'cv/_entries_grant.html' %}
Expand All @@ -12,7 +12,7 @@ <h3 class="cv-subsection cv-subsection-grant cv-grant-internal">Internal</h3>
{% endif %}

{% if grants.external_grants %}
<h3 class="cv-subsection cv-subsection-grant cv-grant-external">External</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-grant cv-grant-external">External</h3>
<ul class="cv-entries cv-entries-grant">
{% with grants.external_grants as grants %}
{% include 'cv/_entries_grant.html' %}
Expand Down
6 changes: 3 additions & 3 deletions cv/templates/cv/sections/service.html
Expand Up @@ -3,7 +3,7 @@
{% if object_list.total or user.is_authenticated %}
{% with object_list as service %}
{% if service.discipline %}
<h3 class="cv-subsection cv-subsection-service cv-service-professional">Professional Service</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-service cv-service-professional">Professional Service</h3>
<ul class="cv-entries cv-entries-service cv-entries-service-professional">
{% with service.discipline as services %}
{% include 'cv/_entries_service.html' %}
Expand All @@ -12,7 +12,7 @@ <h3 class="cv-subsection cv-subsection-service cv-service-professional">Professi
{% endif %}

{% if service.university %}
<h3 class="cv-subsection cv-subsection-service cv-service-university">University Service</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-service cv-service-university">University Service</h3>
<ul class="cv-entries cv-entries-service cv-entries-service-university">
{% with service.university as services %}
{% include 'cv/_entries_service.html' %}
Expand All @@ -21,7 +21,7 @@ <h3 class="cv-subsection cv-subsection-service cv-service-university">University
{% endif %}

{% if service.department %}
<h3 class="cv-subsection cv-subsection-service cv-service-department">Department Service</h3>
<h3 class="cv-subsection-heading cv-subsection-heading-service cv-service-department">Department Service</h3>
<ul class="cv-entries cv-entries-service cv-entries-service-department">
{% with service.department as services %}
{% include 'cv/_entries_service.html' %}
Expand Down

0 comments on commit c233293

Please sign in to comment.