From 4b5ca4a89c525db2fc69c832927e5e529f52f11c Mon Sep 17 00:00:00 2001 From: forest Date: Thu, 27 Aug 2020 20:47:47 -0500 Subject: [PATCH] add supported operating systems to pricing page --- capsulflask/landing.py | 8 +++++++- capsulflask/templates/pricing.html | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/capsulflask/landing.py b/capsulflask/landing.py index dbdcfbb..0724225 100644 --- a/capsulflask/landing.py +++ b/capsulflask/landing.py @@ -2,6 +2,8 @@ from flask import Blueprint from flask import render_template from flask import current_app +from capsulflask.db import get_model + bp = Blueprint("landing", __name__, url_prefix="/") @bp.route("/") @@ -10,7 +12,11 @@ def index(): @bp.route("/pricing") def pricing(): - return render_template("pricing.html") + operating_systems = get_model().operating_systems_dict() + return render_template( + "pricing.html", + operating_systems=operating_systems + ) @bp.route("/faq") def faq(): diff --git a/capsulflask/templates/pricing.html b/capsulflask/templates/pricing.html index 3184f4c..b985e67 100644 --- a/capsulflask/templates/pricing.html +++ b/capsulflask/templates/pricing.html @@ -19,6 +19,14 @@ * net is calculated as a per-month average * vms are billed for a minimum of 24 hours upon creation - * all VMs come standard with one public IPv4 address + * all VMs come standard with one public IPv4 address + + + SUPPORTED OPERATING SYSTEMS: + + + {% for os_id, os in operating_systems.items() %} - {{ os.description }} + {% endfor %} + {% endblock %}