Skip to content

Commit

Permalink
jinja2 templates: changes the block name page_class -> layout_class i…
Browse files Browse the repository at this point in the history
…n 6 templates where this change was not implemented as in commit ccd906c
  • Loading branch information
evgenyfadeev committed May 26, 2024
1 parent 8627b02 commit 11bec93
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion askbot/jinja2/404.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "one_column_body.html" %}
<!-- template 404.jinja.html -->
{% block title %}{% filter trim %}{% trans %}Page not found{% endtrans %}{% endfilter %}{% endblock %}
{% block page_class %}error-page error-404-page{% endblock %}
{% block layout_class %}error-page error-404-page{% endblock %}
{% block content %}
<h1>{% trans %}Page not found{% endtrans %}</h1>
<p class="row">
Expand Down
2 changes: 1 addition & 1 deletion askbot/jinja2/authopenid/complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#}
{% block head %}{% endblock %}
{% block title %}{% filter trim %}{% trans %}Complete registration{% endtrans %}{% endfilter %}{% endblock %}
{% block page_class %}registration-page{% endblock %}
{% block layout_class %}registration-page{% endblock %}
{% block content %}
<div class="flip-tabs">
<div class="login complete-registration flip-content flip-content-active">
Expand Down
2 changes: 1 addition & 1 deletion askbot/jinja2/authopenid/logout.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "one_column_body.html" %}
<!-- template logout.html -->
{% block title %}{% filter trim %}{% trans %}Logout{% endtrans %}{% endfilter %}{% endblock %}
{% block page_class %}logout-page{% endblock %}
{% block layout_class %}logout-page{% endblock %}
{% block content %}
<h1>{% trans %}You have successfully logged out{% endtrans %}</h1>
{% if have_federated_login_methods %}
Expand Down
2 changes: 1 addition & 1 deletion askbot/jinja2/authopenid/recover_account.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "one_column_body.html" %}
{% block title %}{% trans %}Recover account{% endtrans %}{% endblock %}
{% block page_class %}account-recovery-page{% endblock %}
{% block layout_class %}account-recovery-page{% endblock %}
{% block content %}
<h1 class="section-title">
{% if message %}
Expand Down
2 changes: 1 addition & 1 deletion askbot/jinja2/flatpages/default.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "one_column_body.html" %}
{% block title %}{{ flatpage.title }}{% endblock %}
{% block page_class %}flat-page{% endblock %}
{% block layout_class %}flat-page{% endblock %}
{% block content %}
<h1>{{ flatpage.title }}</h1>
{{ flatpage.content }}
Expand Down
2 changes: 1 addition & 1 deletion askbot/jinja2/list_suggested_tags.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% import "macros.html" as macros %}
<!-- tags.html -->
{% block title %}{{ page_title }}{% endblock %}
{% block page_class %}moderated-tags-page{% endblock %}
{% block layout_class %}moderated-tags-page{% endblock %}
{% block content %}
{% include "tags/header.html" %}
{% if tags %}
Expand Down

0 comments on commit 11bec93

Please sign in to comment.