2020-05-11 02:43:06 +00:00
|
|
|
from flask import Blueprint
|
|
|
|
from flask import render_template
|
2020-05-16 04:19:01 +00:00
|
|
|
from flask import current_app
|
2020-05-11 02:43:06 +00:00
|
|
|
|
2020-08-28 01:47:47 +00:00
|
|
|
from capsulflask.db import get_model
|
2021-07-27 19:28:42 +00:00
|
|
|
from capsulflask.shared import *
|
2020-08-28 01:47:47 +00:00
|
|
|
|
2020-05-11 02:43:06 +00:00
|
|
|
bp = Blueprint("landing", __name__, url_prefix="/")
|
|
|
|
|
2020-05-11 03:55:16 +00:00
|
|
|
@bp.route("/")
|
|
|
|
def index():
|
|
|
|
return render_template("index.html")
|
|
|
|
|
2020-06-08 23:27:13 +00:00
|
|
|
@bp.route("/pricing")
|
|
|
|
def pricing():
|
2021-07-21 10:19:28 +00:00
|
|
|
vm_sizes = get_model().vm_sizes_dict()
|
2020-08-28 01:47:47 +00:00
|
|
|
operating_systems = get_model().operating_systems_dict()
|
|
|
|
return render_template(
|
|
|
|
"pricing.html",
|
2021-07-21 10:19:28 +00:00
|
|
|
vm_sizes=vm_sizes,
|
2020-08-28 01:47:47 +00:00
|
|
|
operating_systems=operating_systems
|
|
|
|
)
|
2020-06-08 23:27:13 +00:00
|
|
|
|
2020-05-11 03:55:16 +00:00
|
|
|
@bp.route("/faq")
|
|
|
|
def faq():
|
2021-08-09 21:23:12 +00:00
|
|
|
return render_template("faq.html", ssh_username=current_app.config['SSH_USERNAME'])
|
2020-05-11 03:55:16 +00:00
|
|
|
|
2021-01-31 04:14:04 +00:00
|
|
|
@bp.route("/about-ssh")
|
|
|
|
def about_ssh():
|
|
|
|
return render_template("about-ssh.html")
|
|
|
|
|
2020-05-11 03:55:16 +00:00
|
|
|
@bp.route("/changelog")
|
|
|
|
def changelog():
|
|
|
|
return render_template("changelog.html")
|
|
|
|
|
|
|
|
@bp.route("/support")
|
|
|
|
def support():
|
2020-06-08 23:27:13 +00:00
|
|
|
return render_template("support.html")
|