Skip to content

Conversation

@Nehemiah60
Copy link
Contributor

Closes #1405

Description

Implemented Django templating syntax for all the templates in the core app

Copy link
Contributor

@brylie brylie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure there is only one {% block content %} in each template HTML file.

Any Backbone.js template needs to be converted to Django template syntax.

Copy link
Contributor

@brylie brylie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a template doesn't extend base.htm, we don't need to add the block content. Please remove block content and endblock content from all files that don't extend base.html.

{% extends "base.html" %}
{% load static %}
{% load i18n %}
{% block content %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this block definition to line 12, after the page_title block

{% block page_title %}{% trans "About Us" %}{% endblock page_title %}

{% block backbone_template %}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% block content %}

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit fb7e2d1 and detected 0 issues on this pull request.

View more on Code Climate.

@brylie brylie merged commit ce2efa0 into CiviWiki:develop Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port all core templates to Django template syntax

2 participants