Properly indent all templates

This commit is contained in:
Mark Veidemanis 2022-07-21 13:46:05 +01:00
parent 4bd2bb2f1a
commit ef22f9165e
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
10 changed files with 184 additions and 218 deletions

View File

@ -21,3 +21,4 @@ repos:
rev: v0.13.1 rev: v0.13.1
hooks: hooks:
- id: curlylint - id: curlylint
files: \.(html|sls)$

View File

@ -1,8 +1,7 @@
{% load static %} {% load static %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en-GB">
<head>
<head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">s <meta http-equiv="X-UA-Compatible" content="IE=edge">s
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
@ -10,23 +9,19 @@
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link rel="stylesheet" href="{% static 'style.css' %}" /> <link rel="stylesheet" href="{% static 'style.css' %}" />
<script src="https://js.stripe.com/v3/"></script> <script src="https://js.stripe.com/v3/"></script>
</head>
</head> <body>
<body>
<section class="hero is-primary is-fullheight"> <section class="hero is-primary is-fullheight">
<div class="hero-head"> <div class="hero-head">
<nav class="navbar navbar-default navbar-static-top"> <nav class="navbar navbar-default navbar-static-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<a class="navbar-brand" href="{% url 'home' %}">Pathogen</a> <a class="navbar-brand" href="{% url 'home' %}">Pathogen</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<sapn class="icon-bar"></sapn> <span class="icon-bar"></span>
</button> </button>
</div> </div>
<ul class="nav navbar-nav navbar-right collapse navbar-collapse"> <ul class="nav navbar-nav navbar-right collapse navbar-collapse">
@ -45,9 +40,8 @@
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</nav> </nav>
</div> </div>
<div class="hero-body"> <div class="hero-body">
<div class="container has-text-centered"> <div class="container has-text-centered">
{% block content %} {% block content %}
@ -55,6 +49,6 @@
</div> </div>
</div> </div>
</section> </section>
</body> </body>
</html> </html>

View File

@ -1,37 +1,28 @@
<head> <head>
<script src="https://js.stripe.com/v3/"></script> <script src="https://js.stripe.com/v3/"></script>
</head> </head>
<div class="product-container"> <div class="product-container">
<a href="order?product=drilldown"> <a href="order?product=drilldown">
<div class="product"> <div class="product">
<img <img src="{{ url_for('static', filename='weekly.jpg') }}" alt="Data image"/>
src="{{ url_for('static', filename='weekly.jpg') }}"
alt="Data image"
/>
<div class="description"> <div class="description">
<h3>Drilldown</h3> <h3>Drilldown</h3>
<h5>200.00</h5> <h5>200.00</h5>
</div> </div>
</div> </div>
</a> </a>
<a href="order?product=sentiment"> <a href="order?product=sentiment">
<div class="product"> <div class="product">
<img <img src="{{ url_for('static', filename='weekly.jpg') }}" alt="Data image"/>
src="{{ url_for('static', filename='weekly.jpg') }}"
alt="Data image"
/>
<div class="description"> <div class="description">
<h3>Sentiment</h3> <h3>Sentiment</h3>
<h5>45.00</h5> <h5>45.00</h5>
</div> </div>
</div> </div>
</a> </a>
</div>
<script type="text/javascript">
</div>
<script type="text/javascript">
// Create an instance of the Stripe object with your publishable API key // Create an instance of the Stripe object with your publishable API key
var stripe = Stripe("pk_test_51HbqYzAKLUD9ELc0KSyiQ9YohsfiUCeBpAfpflAIg2Uu2RFecx3sfWYXzM1xDtI5XlQihqHMnaPKd45JzDuqXdGP00pYWvRvRe"); var stripe = Stripe("pk_test_51HbqYzAKLUD9ELc0KSyiQ9YohsfiUCeBpAfpflAIg2Uu2RFecx3sfWYXzM1xDtI5XlQihqHMnaPKd45JzDuqXdGP00pYWvRvRe");
var setupButton = document.getElementById('setup-button'); var setupButton = document.getElementById('setup-button');
@ -57,4 +48,4 @@
console.error("Error:", error); console.error("Error:", error);
}); });
}); });
</script> </script>

View File

@ -1,18 +1,14 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1 class="title"> <h1 class="title">Access denied</h1>
Access denied <h2 class="subtitle">Sorry, you do not have the necessary permissions to view this page.</h2>
</h1> <div class="col">
<h2 class="subtitle">
Sorry, you do not have the necessary permissions to view this page.
</h2>
<div class="col">
{% if user.subscription_active %} {% if user.subscription_active %}
{% include 'checkout.html' %} {% include 'checkout.html' %}
{% else %} {% else %}
<h2> Please setup a payment mandate in the profile page to view products </h2> <h2> Please setup a payment mandate in the profile page to view products </h2>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,18 +1,12 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1 class="title"> <h1 class="title">Pathogen Products Panel</h1>
Pathogen Products Panel <h2 class="subtitle">Billing and subscription management</h2>
</h1> <div class="col">
<h2 class="subtitle">
Billing and subscription management
</h2>
<div class="col">
{% if user.subscription_active %} {% if user.subscription_active %}
{% include 'checkout.html' %} {% include 'checkout.html' %}
{% else %} {% else %}
<h2> Please setup a payment mandate in the profile page to view products </h2> <h2> Please setup a payment mandate in the profile page to view products </h2>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,10 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1 class="title"> <h1 class="title">Welcome, {{ user.first_name }}!</h1>
Welcome, {{ user.first_name }}! <div class="container">
</h1>
<div class="container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="profile-info"> <div class="profile-info">
@ -17,7 +14,6 @@
<p>Creation date: {{ user.creationDate }}</p> <p>Creation date: {{ user.creationDate }}</p>
<p>Paid: {{ user.paid }}</p> <p>Paid: {{ user.paid }}</p>
</div> </div>
<div class="update-info"> <div class="update-info">
{% if user.seti %} {% if user.seti %}
{% if user.plan == None %} {% if user.plan == None %}
@ -31,10 +27,9 @@
<button id="setup-button">Setup payment mandate</button> <button id="setup-button">Setup payment mandate</button>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
// Create an instance of the Stripe object with your publishable API key // Create an instance of the Stripe object with your publishable API key

View File

@ -3,7 +3,7 @@
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}
<div class="container"> <div class="container">
<div class="row vertical-offset-100"> <div class="row vertical-offset-100">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="panel panel-default"> <div class="panel panel-default">
@ -27,5 +27,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -3,7 +3,7 @@
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}
<div class="container"> <div class="container">
<div class="row vertical-offset-100"> <div class="row vertical-offset-100">
<div class="col-md-4 col-md-offset-4"> <div class="col-md-4 col-md-offset-4">
<div class="panel panel-default"> <div class="panel panel-default">
@ -23,5 +23,5 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,10 +1,10 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<head> <head>
<title>Thanks for your order!</title> <title>Thanks for your order!</title>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
</head> </head>
<section> <section>
<p>We appreciate your business!</p> <p>We appreciate your business!</p>
<p>Download details will be available <a href="{{ url_for('main.profile') }} ">in your profile</a> shortly.</p> <p>Download details will be available <a href="{{ url_for('main.profile') }} ">in your profile</a> shortly.</p>

View File

@ -1,17 +1,13 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block content %}
<h1 class="title"> <h1 class="title">Welcome to search, {{ name }}!</h1>
Welcome to search, {{ name }}!
</h1>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<div class="profile-info"> <div class="profile-info">
<p>PROFILE INFO</p> <p>PROFILE INFO</p>
</div> </div>
<div class="update-info"> <div class="update-info">
{% if user.seti %} {% if user.seti %}
{% if user.plan == None %} {% if user.plan == None %}
@ -25,10 +21,9 @@
<button id="setup-button">Setup payment mandate</button> <button id="setup-button">Setup payment mandate</button>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}