Skip to content

Commit

Permalink
Switch to .html.jinja2 templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibhas authored and jace committed Oct 13, 2017
1 parent 0bf3592 commit 5acf6b5
Show file tree
Hide file tree
Showing 45 changed files with 111 additions and 111 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block title %}403 Forbidden{% endblock %}
{% block pageheaders %}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block title %}404 Not Found{% endblock %}
{% block pageheaders %}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block title %}410 Gone{% endblock %}
{% block pageheaders %}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block title %}500 Internal Server Error{% endblock %}
{% block pageheaders %}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "dashlayout.html" %}
{% extends "dashlayout.html.jinja2" %}
{% block title %}Admin dashboard{% endblock %}

{% block tabcontent %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "dashlayout.html" %}
{% extends "dashlayout.html.jinja2" %}
{% block title %}Historical trend{% endblock %}

{% block tabcontent %}
Expand Down
Original file line number Diff line number Diff line change
@@ -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 %}

Expand Down Expand Up @@ -91,7 +91,7 @@ <h2>{{ job_application.fullname }}</h2>
<p class="appl-msg-reject hidden">
<em>{{ g.user.fullname if post.admin_is(g.user) else post.fullname or post.company_name }} has declined your application for {{ post.headline }}:</em>
</p>
{% include "inc/replyform.html" %}
{% include "inc/replyform.html.jinja2" %}
</div>
</div>
<div class="col-md-3">
Expand Down Expand Up @@ -144,7 +144,7 @@ <h2>{{ job_application.fullname }}</h2>
// 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');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}
{% block content %}
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
Expand All @@ -9,7 +9,7 @@
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="{{ config['SITE_TITLE'] }}"/>
<link itemprop="url" href="{{ url_for('index', subdomain=none, _external=true) }}"/>
</div>
</div>
</div>
<p>
<em>{{ job_application.fullname }}</strong> has applied for <a href="{{ post.url_for(_external=true) }}" target="_blank">{{ post.headline }}</a>:</em>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "sheet.html" %}
{% extends "sheet.html.jinja2" %}
{% block title %}Archive{% endblock %}

{% block content %}
Expand All @@ -7,7 +7,7 @@
<h1>{{ self.title() }}</h1>
<p>All jobs ever posted on the board.</p>
<div id="archive_table">
{% include "archive_inner.html" %}
{% include "archive_inner.html.jinja2" %}
</div>
</div>
</div>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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() }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "sheet.html" %}
{% extends "sheet.html.jinja2" %}
{% block title %}{{ campaign.title }}{% endblock %}

{% block pageheaders %}
Expand All @@ -21,7 +21,7 @@ <h1>{{ self.title() }}</h1>
<time datetime="{{ campaign.end_at.isoformat() }}Z">{{ campaign.end_at|longdate }}</time>
</p>
</div>
</div>
</div>
</div>
<div class="section">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "sheet.html" %}
{% extends "sheet.html.jinja2" %}
{% block title %}Campaign archive{% endblock %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -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 %}
<div class="sheet">
Expand Down
Original file line number Diff line number Diff line change
@@ -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 %}
Expand All @@ -8,7 +8,7 @@
<div class="page-header">
<h1>Terms of service</h1>
</div>
{% include "inc/tos.html" %}
{% include "inc/tos.html.jinja2" %}
<form method="POST" class="form-horizontal">
<input type="hidden" name="_charset_"/>
<input type="hidden" name="form.id" value="confirmjob"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}
{% block content %}
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction">
Expand All @@ -7,11 +7,11 @@
<link itemprop="url" href="{{ post.url_for('confirm-link', _external=true) }}"/>
</div>
</div>
<meta itemprop="description" content="This is a confirmation email for the job you listed."/>
<meta itemprop="description" content="This is a confirmation email for the job you listed."/>
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="{{ config['SITE_TITLE'] }}"/>
<link itemprop="url" href="{{ url_for('index', subdomain=none, _external=true) }}"/>
</div>
</div>
</div>
<p>Hello,</p>
<p>This is a confirmation email for the job you listed at {% if g.board -%} {{ g.board.title }} {%- else -%} {{ config['SITE_TITLE'] }} {%- endif %}:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}

{% block content -%}
<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "sheet.html" %}
{% extends "sheet.html.jinja2" %}
{% block pageheaders %}
<link href="//cdnjs.cloudflare.com/ajax/libs/c3/0.4.14/c3.min.css" rel="stylesheet"/>
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
@@ -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 %}
Expand Down Expand Up @@ -138,7 +138,7 @@ <h2>Job Perks</h2>
<a class="close-popup" href="#">&#10005;</a>
{%- if g.user %}
<h2>What’s wrong with it?</h2>
{% include "inc/reportform.html" %}
{% include "inc/reportform.html.jinja2" %}
{%- else %}
<p>You need to be logged in to report a post</p>
<p><a class="btn btn-primary btn-sm" href="{{ url_for('login') }}">Login with Twitter or Google</a></p>
Expand Down Expand Up @@ -176,7 +176,7 @@ <h2>What’s wrong with it?</h2>
<div class="popup-box" id="reject">
<a class="close-popup" href="#">&#10005;</a>
<h2>What’s wrong with it?</h2>
{% include "inc/rejectform.html" %}
{% include "inc/rejectform.html.jinja2" %}
</div>
</div>
<div class="list-group-item">
Expand All @@ -186,7 +186,7 @@ <h2>What’s wrong with it?</h2>
<div class="popup-box" id="moderate">
<a class="close-popup" href="#">&#10005;</a>
<h2>What’s wrong with it?</h2>
{% include "inc/moderateform.html" %}
{% include "inc/moderateform.html.jinja2" %}
</div>
</div>
{%- endif %}
Expand All @@ -197,7 +197,7 @@ <h2>What’s wrong with it?</h2>
</a>
<div class="popup-box" id="makepinned">
<a class="close-popup" href="#">&#10005;</a>
{% include "inc/pinnedform.html" %}
{% include "inc/pinnedform.html.jinja2" %}
</div>
</div>
{%- endif %}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" -%}
{% extends "layout.html.jinja2" -%}
{% block messages %}{% endblock %}
{% block basecontent %}
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -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 -%}
<title>{% block title %}{{ pagetitle() }}{% endblock %}</title>
<meta name="DC.title" content="{{ self.title() }}" />
Expand Down Expand Up @@ -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) %}
<div class="flash info">
Expand Down Expand Up @@ -179,7 +179,7 @@ <h2>What these jobs pay per annum</h2>
});
</script>
{%- 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) }}
<script type="text/javascript">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "baseframe/forms.html" import ajaxform -%}
{% from "baseframe/forms.html.jinja2" import ajaxform -%}
<p id="apply-info-para">{{ instructions }}</p>
{%- if job_application %}
<h3>You have applied for this position</h3>
Expand All @@ -10,6 +10,6 @@ <h3>You have applied for this position</h3>
{{ job_application.message|safe }}
{%- else %}
{%- if applyform %}
{% include "inc/applyform.html" %}
{% include "inc/applyform.html.jinja2" %}
{% endif %}
{%- endif %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "baseframe.html" -%}
{% from "baseframe/components.html" import hgnav %}
{% from "macros.html" import campaign_header, campaign_script, filters_setup_script %}
{% extends "baseframe.html.jinja2" -%}
{% from "baseframe/components.html.jinja2" import hgnav %}
{% from "macros.html.jinja2" import campaign_header, campaign_script, filters_setup_script %}

{% block doctypehtml -%}
<!DOCTYPE html>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "sheet.html" %}
{%- from "macros.html" import campaign_header, campaign_header_postscript %}
{% extends "sheet.html.jinja2" %}
{%- from "macros.html.jinja2" import campaign_header, campaign_header_postscript %}
{% block title %}One last step…{% endblock %}
{% block content %}
<div class="sheet">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}

{% block content %}
<div itemscope itemtype="http://schema.org/EmailMessage">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block title %}Not Implemented{% endblock %}
{% block pageheaders %}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "sheet.html" %}
{% from "baseframe/forms.html" import renderfield, rendersubmit, widgetscripts %}
{% extends "sheet.html.jinja2" %}
{% from "baseframe/forms.html.jinja2" import renderfield, rendersubmit, widgetscripts %}
{% block title %}Post a job{% endblock %}
{% block content %}
{%- if archived_post %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}

{% block content %}
<p>Hi {% if post.user %}{{ post.user.fullname }}{% else %}{{ post.company_name }}{% endif %},</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}

{% block content %}
<p>Hi {{ post.company_name }},</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- from "macros.html" import stickie %}
{%- from "macros.html.jinja2" import stickie %}
{%- if related_posts %}
{%- for post in related_posts -%}
<li class="col-xs-12 col-md-3 col-sm-4">
Expand Down
Original file line number Diff line number Diff line change
@@ -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 %}
<div class="sheet">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "inc/email_layout_lite.html" %}
{% extends "inc/email_layout_lite.html.jinja2" %}

{% block content -%}
<div itemscope itemtype="http://schema.org/EmailMessage">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "layout.html" -%}
{% from "macros.html" import campaign_header, campaign_script %}
{% extends "layout.html.jinja2" -%}
{% from "macros.html.jinja2" import campaign_header, campaign_script %}
{% block messages %}{% endblock %}
{% block basecontent %}
{%- if header_campaign %}<div id="header-campaign"></div>{% endif %}
Expand Down
Original file line number Diff line number Diff line change
@@ -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 %}Job post statistics{% endblock %}
{% block content %}
<div class="sheet">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "layout.html" %}
{% extends "layout.html.jinja2" %}
{% block title %}Top tags{% endblock %}
{% block content %}
<ul id="stickie-area" class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "sheet.html" %}
{% extends "sheet.html.jinja2" %}
{% block title %}Terms of Service{% endblock %}
{% block canonical_url %}
<link rel="canonical" href="{{ url_for('terms_of_service', subdomain=none) }}" />
Expand All @@ -9,7 +9,7 @@
<div class="section first">
<h1>{{ self.title()|e }}</h1>
<h2>You must agree to these terms to list a job</h2>
{% include "inc/tos.html" %}
{% include "inc/tos.html.jinja2" %}
</div>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -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 %}
<div class="sheet">
Expand Down
Loading

0 comments on commit 5acf6b5

Please sign in to comment.