-
Notifications
You must be signed in to change notification settings - Fork 351
Port templates in core to Django templating syntax #1494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
project/core/templates/partials/notifications/notification_base.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_base.html
Outdated
Show resolved
Hide resolved
brylie
left a comment
There was a problem hiding this 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.
project/core/templates/partials/notifications/notification_base.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_base.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_item.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_item.html
Outdated
Show resolved
Hide resolved
brylie
left a comment
There was a problem hiding this 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.
project/core/templates/partials/notifications/notification_base.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_item.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_base.html
Outdated
Show resolved
Hide resolved
project/core/templates/partials/notifications/notification_item.html
Outdated
Show resolved
Hide resolved
project/core/templates/about.html
Outdated
| {% extends "base.html" %} | ||
| {% load static %} | ||
| {% load i18n %} | ||
| {% block content %} |
There was a problem hiding this comment.
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
project/core/templates/about.html
Outdated
| {% block page_title %}{% trans "About Us" %}{% endblock page_title %} | ||
|
|
||
| {% block backbone_template %} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {% block content %} |
|
Code Climate has analyzed commit fb7e2d1 and detected 0 issues on this pull request. View more on Code Climate. |
Closes #1405
Description
Implemented Django templating syntax for all the templates in the core app