diff --git a/hasjob/templates/403.html b/hasjob/templates/403.html.jinja2 similarity index 94% rename from hasjob/templates/403.html rename to hasjob/templates/403.html.jinja2 index b44b60de1..44e38d639 100644 --- a/hasjob/templates/403.html +++ b/hasjob/templates/403.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "layout.html" %} +{% extends "layout.html.jinja2" %} {% block title %}403 Forbidden{% endblock %} {% block pageheaders %} {% endblock %} diff --git a/hasjob/templates/404.html b/hasjob/templates/404.html.jinja2 similarity index 92% rename from hasjob/templates/404.html rename to hasjob/templates/404.html.jinja2 index 151c55e65..3f3e11829 100644 --- a/hasjob/templates/404.html +++ b/hasjob/templates/404.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "layout.html" %} +{% extends "layout.html.jinja2" %} {% block title %}404 Not Found{% endblock %} {% block pageheaders %} {% endblock %} diff --git a/hasjob/templates/410.html b/hasjob/templates/410.html.jinja2 similarity index 92% rename from hasjob/templates/410.html rename to hasjob/templates/410.html.jinja2 index b413fe095..a7c98ec1e 100644 --- a/hasjob/templates/410.html +++ b/hasjob/templates/410.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "layout.html" %} +{% extends "layout.html.jinja2" %} {% block title %}410 Gone{% endblock %} {% block pageheaders %} {% endblock %} diff --git a/hasjob/templates/500.html b/hasjob/templates/500.html.jinja2 similarity index 94% rename from hasjob/templates/500.html rename to hasjob/templates/500.html.jinja2 index 2be6ad1c0..cb7a940b5 100644 --- a/hasjob/templates/500.html +++ b/hasjob/templates/500.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "layout.html" %} +{% extends "layout.html.jinja2" %} {% block title %}500 Internal Server Error{% endblock %} {% block pageheaders %} {% endblock %} diff --git a/hasjob/templates/admin_dashboard.html b/hasjob/templates/admin_dashboard.html.jinja2 similarity index 97% rename from hasjob/templates/admin_dashboard.html rename to hasjob/templates/admin_dashboard.html.jinja2 index 04577362e..39dca6f51 100644 --- a/hasjob/templates/admin_dashboard.html +++ b/hasjob/templates/admin_dashboard.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "dashlayout.html" %} +{% extends "dashlayout.html.jinja2" %} {% block title %}Admin dashboard{% endblock %} {% block tabcontent %} diff --git a/hasjob/templates/admin_historical.html b/hasjob/templates/admin_historical.html.jinja2 similarity index 98% rename from hasjob/templates/admin_historical.html rename to hasjob/templates/admin_historical.html.jinja2 index b23a38467..93e044a83 100644 --- a/hasjob/templates/admin_historical.html +++ b/hasjob/templates/admin_historical.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "dashlayout.html" %} +{% extends "dashlayout.html.jinja2" %} {% block title %}Historical trend{% endblock %} {% block tabcontent %} diff --git a/hasjob/templates/application.html b/hasjob/templates/application.html.jinja2 similarity index 97% rename from hasjob/templates/application.html rename to hasjob/templates/application.html.jinja2 index 9c55f2b48..ea8dea10d 100644 --- a/hasjob/templates/application.html +++ b/hasjob/templates/application.html.jinja2 @@ -1,6 +1,6 @@ -{% extends "sheet.html" %} -{% from "baseframe/forms.html" import ajaxform, widgetscripts %} -{% from "macros.html" import jobheader %} +{% extends "sheet.html.jinja2" %} +{% from "baseframe/forms.html.jinja2" import ajaxform, widgetscripts %} +{% from "macros.html.jinja2" import jobheader %} {% block title %}{{ job_application.fullname }} — {{ post.headline }}{% endblock %} {% block metareferrer %}origin{% endblock %} @@ -91,7 +91,7 @@

{{ job_application.fullname }}

- {% include "inc/replyform.html" %} + {% include "inc/replyform.html.jinja2" %}
@@ -144,7 +144,7 @@

{{ job_application.fullname }}

// This doesn't work. We don't know why. tinymce.execCommand('mceFocus', false, 'response_message'); } - }); + }); $("#response_form").find('button').prop('disabled', true); $("#appl-options").slideUp(); $("#appl-send").val('reject'); diff --git a/hasjob/templates/apply_email.html b/hasjob/templates/apply_email.html.jinja2 similarity index 95% rename from hasjob/templates/apply_email.html rename to hasjob/templates/apply_email.html.jinja2 index c442d31c2..2fc5f60f3 100644 --- a/hasjob/templates/apply_email.html +++ b/hasjob/templates/apply_email.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "inc/email_layout_lite.html" %} +{% extends "inc/email_layout_lite.html.jinja2" %} {% block content %}
@@ -9,7 +9,7 @@
-
+

{{ job_application.fullname }} has applied for {{ post.headline }}: diff --git a/hasjob/templates/archive.html b/hasjob/templates/archive.html.jinja2 similarity index 76% rename from hasjob/templates/archive.html rename to hasjob/templates/archive.html.jinja2 index adad8170b..5f3ec9139 100644 --- a/hasjob/templates/archive.html +++ b/hasjob/templates/archive.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "sheet.html" %} +{% extends "sheet.html.jinja2" %} {% block title %}Archive{% endblock %} {% block content %} @@ -7,7 +7,7 @@

{{ self.title() }}

All jobs ever posted on the board.

- {% include "archive_inner.html" %} + {% include "archive_inner.html.jinja2" %}
diff --git a/hasjob/templates/archive_inner.html b/hasjob/templates/archive_inner.html.jinja2 similarity index 100% rename from hasjob/templates/archive_inner.html rename to hasjob/templates/archive_inner.html.jinja2 diff --git a/hasjob/templates/campaign_action_response.html b/hasjob/templates/campaign_action_response.html.jinja2 similarity index 57% rename from hasjob/templates/campaign_action_response.html rename to hasjob/templates/campaign_action_response.html.jinja2 index 882dc90ad..e0eeef897 100644 --- a/hasjob/templates/campaign_action_response.html +++ b/hasjob/templates/campaign_action_response.html.jinja2 @@ -1,3 +1,3 @@ -{% from "macros.html" import campaign_action_form, campaign_header_postscript -%} +{% from "macros.html.jinja2" import campaign_action_form, campaign_header_postscript -%} {{ campaign_action_form(campaign, g.user, g.anon_user, message, redirect, dismiss) }} {{ campaign_header_postscript() }} diff --git a/hasjob/templates/campaign_info.html b/hasjob/templates/campaign_info.html.jinja2 similarity index 99% rename from hasjob/templates/campaign_info.html rename to hasjob/templates/campaign_info.html.jinja2 index 581598c90..6e22f8713 100644 --- a/hasjob/templates/campaign_info.html +++ b/hasjob/templates/campaign_info.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "sheet.html" %} +{% extends "sheet.html.jinja2" %} {% block title %}{{ campaign.title }}{% endblock %} {% block pageheaders %} @@ -21,7 +21,7 @@

{{ self.title() }}

- +
diff --git a/hasjob/templates/campaign_list.html b/hasjob/templates/campaign_list.html.jinja2 similarity index 96% rename from hasjob/templates/campaign_list.html rename to hasjob/templates/campaign_list.html.jinja2 index a29f5e78c..d68e36aec 100644 --- a/hasjob/templates/campaign_list.html +++ b/hasjob/templates/campaign_list.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "sheet.html" %} +{% extends "sheet.html.jinja2" %} {% block title %}Campaign archive{% endblock %} {% block content %} diff --git a/hasjob/templates/close.html b/hasjob/templates/close.html.jinja2 similarity index 88% rename from hasjob/templates/close.html rename to hasjob/templates/close.html.jinja2 index d9b3db691..64f19b293 100644 --- a/hasjob/templates/close.html +++ b/hasjob/templates/close.html.jinja2 @@ -1,5 +1,5 @@ -{% extends "sheet.html" %} -{% from "baseframe/forms.html" import renderfield %} +{% extends "sheet.html.jinja2" %} +{% from "baseframe/forms.html.jinja2" import renderfield %} {% block title %}{{ post.headline|e }}{% endblock %} {% block content %}
diff --git a/hasjob/templates/confirm.html b/hasjob/templates/confirm.html.jinja2 similarity index 85% rename from hasjob/templates/confirm.html rename to hasjob/templates/confirm.html.jinja2 index f0ca9ec0a..b3736322c 100644 --- a/hasjob/templates/confirm.html +++ b/hasjob/templates/confirm.html.jinja2 @@ -1,5 +1,5 @@ -{% extends "sheet.html" %} -{% from "baseframe/forms.html" import renderfield %} +{% extends "sheet.html.jinja2" %} +{% from "baseframe/forms.html.jinja2" import renderfield %} {% block title %}{{ post.headline|e }}{% endblock %} {% block content %} {% if post.is_draft %} @@ -8,7 +8,7 @@ - {% include "inc/tos.html" %} + {% include "inc/tos.html.jinja2" %}
diff --git a/hasjob/templates/confirm_email.html b/hasjob/templates/confirm_email.html.jinja2 similarity index 95% rename from hasjob/templates/confirm_email.html rename to hasjob/templates/confirm_email.html.jinja2 index 50bcb341c..e8c7c7692 100644 --- a/hasjob/templates/confirm_email.html +++ b/hasjob/templates/confirm_email.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "inc/email_layout_lite.html" %} +{% extends "inc/email_layout_lite.html.jinja2" %} {% block content %}
@@ -7,11 +7,11 @@
- +
-
+

Hello,

This is a confirmation email for the job you listed at {% if g.board -%} {{ g.board.title }} {%- else -%} {{ config['SITE_TITLE'] }} {%- endif %}: diff --git a/hasjob/templates/connect_email.html b/hasjob/templates/connect_email.html.jinja2 similarity index 86% rename from hasjob/templates/connect_email.html rename to hasjob/templates/connect_email.html.jinja2 index 670fa0044..5fe2a3b33 100644 --- a/hasjob/templates/connect_email.html +++ b/hasjob/templates/connect_email.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "inc/email_layout_lite.html" %} +{% extends "inc/email_layout_lite.html.jinja2" %} {% block content -%}

diff --git a/hasjob/templates/dashlayout.html b/hasjob/templates/dashlayout.html.jinja2 similarity index 96% rename from hasjob/templates/dashlayout.html rename to hasjob/templates/dashlayout.html.jinja2 index 54aad6525..a7b43afca 100644 --- a/hasjob/templates/dashlayout.html +++ b/hasjob/templates/dashlayout.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "sheet.html" %} +{% extends "sheet.html.jinja2" %} {% block pageheaders %} {% endblock %} diff --git a/hasjob/templates/detail.html b/hasjob/templates/detail.html.jinja2 similarity index 98% rename from hasjob/templates/detail.html rename to hasjob/templates/detail.html.jinja2 index 8e3996de6..3866cfcda 100644 --- a/hasjob/templates/detail.html +++ b/hasjob/templates/detail.html.jinja2 @@ -1,6 +1,6 @@ -{% extends "sheet.html" %} -{%- from "baseframe/forms.html" import ajaxform %} -{%- from "macros.html" import jobheader, stickie %} +{% extends "sheet.html.jinja2" %} +{%- from "baseframe/forms.html.jinja2" import ajaxform %} +{%- from "macros.html.jinja2" import jobheader, stickie %} {% block title %}{{ headline }} / {{ post.company_name }} / {{ post.location }}{% endblock %} {% block description %}{{ post.company_name }}, {{ post.location }}, {{ post.type.title }}, {{ post.category.title }}{% endblock %} {% block canonical_url %} @@ -138,7 +138,7 @@

Job Perks

{%- if g.user %}

What’s wrong with it?

- {% include "inc/reportform.html" %} + {% include "inc/reportform.html.jinja2" %} {%- else %}

You need to be logged in to report a post

Login with Twitter or Google

@@ -176,7 +176,7 @@

What’s wrong with it?

@@ -186,7 +186,7 @@

What’s wrong with it?

{%- endif %} @@ -197,7 +197,7 @@

What’s wrong with it?

{%- endif %} diff --git a/hasjob/templates/domain.html b/hasjob/templates/domain.html.jinja2 similarity index 100% rename from hasjob/templates/domain.html rename to hasjob/templates/domain.html.jinja2 diff --git a/hasjob/templates/formlayout.html b/hasjob/templates/formlayout.html.jinja2 similarity index 95% rename from hasjob/templates/formlayout.html rename to hasjob/templates/formlayout.html.jinja2 index 44efd0ce4..41792a2e6 100644 --- a/hasjob/templates/formlayout.html +++ b/hasjob/templates/formlayout.html.jinja2 @@ -1,4 +1,4 @@ -{% extends "layout.html" -%} +{% extends "layout.html.jinja2" -%} {% block messages %}{% endblock %} {% block basecontent %}
diff --git a/hasjob/templates/index.html b/hasjob/templates/index.html.jinja2 similarity index 97% rename from hasjob/templates/index.html rename to hasjob/templates/index.html.jinja2 index 222486953..3a40b3db1 100644 --- a/hasjob/templates/index.html +++ b/hasjob/templates/index.html.jinja2 @@ -1,8 +1,8 @@ -{%- from "domain.html" import org_profile, user_profile with context %} -{% from "baseframe/forms.html" import renderfield, widgetscripts %} +{%- from "domain.html.jinja2" import org_profile, user_profile with context %} +{% from "baseframe/forms.html.jinja2" import renderfield, widgetscripts %} {%- macro pagetitle() %}{% if title %}{% if domain %}Jobs at {% endif%}{{ title }} | {% endif %}{% if g.board %}{{ g.board.title }}{% if g.board.not_root %} ({{ config['SITE_TITLE'] }}){% endif %}{% else %}{{ config['SITE_TITLE'] }}{% endif %}{%- endmacro %} {%- if not request.is_xhr -%} - {% extends "layout.html" %} + {% extends "layout.html.jinja2" %} {% block titletags -%} {% block title %}{{ pagetitle() }}{% endblock %} @@ -52,7 +52,7 @@ {% endblock %} {% endif %} {% block content %} - {%- from "macros.html" import stickie %} + {%- from "macros.html.jinja2" import stickie %} {% with gkiosk=g.kiosk, gboard=g.board, guser=g.user, gstarred_ids=g.starred_ids %} {%- if gboard and gboard.not_root and not paginated and not (domain or md5sum or location or tag) %}
@@ -179,7 +179,7 @@

What these jobs pay per annum

}); {%- if not paginated -%} - {% from "macros.html" import filters_setup_script %} + {% from "macros.html.jinja2" import filters_setup_script %} {%- if request.is_xhr -%} {{ filters_setup_script(job_filters) }}