All Stacks
+List all stacks for deploy
+{{ stack.stack_name }}
+Some quick example text to build on the card title and make up the bulk of the card's content.
+ Go somewhere + +From 3e1060b32aa128c7d691270493294f491825a301 Mon Sep 17 00:00:00 2001
From: d10s <79284025+D10S0VSkY-OSS@users.noreply.github.com>
Date: Sat, 23 Dec 2023 17:01:49 +0100
Subject: [PATCH 01/14] =?UTF-8?q?=F0=9F=94=A5feat:=20Add=20stacks=20cards?=
=?UTF-8?q?=20draft?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../app/base/static/assets/css/volt.css | 29 +++++++
.../app/home/templates/stacks-cards.html | 83 +++++++++++++++++++
2 files changed, 112 insertions(+)
create mode 100644 sld-dashboard/app/home/templates/stacks-cards.html
diff --git a/sld-dashboard/app/base/static/assets/css/volt.css b/sld-dashboard/app/base/static/assets/css/volt.css
index c8487a4f..09718f09 100644
--- a/sld-dashboard/app/base/static/assets/css/volt.css
+++ b/sld-dashboard/app/base/static/assets/css/volt.css
@@ -41866,3 +41866,32 @@ pre {
background-size: contain;
background-repeat: no-repeat;
}
+
+.card-row {
+ display: flex;
+ justify-content: space-around;
+ flex-wrap: wrap;
+ padding-top: 20px;
+
+}
+
+.card-header {
+ display: flex;
+ align-items: center;
+ gap: 10px;
+}
+
+.card-header img {
+ display: flex;
+
+}
+
+.card-header .title {
+ display: flex;
+
+}
+
+.card-columns {
+ display: flex;
+ justify-content: start;
+}
\ No newline at end of file
diff --git a/sld-dashboard/app/home/templates/stacks-cards.html b/sld-dashboard/app/home/templates/stacks-cards.html
new file mode 100644
index 00000000..4f00f4ff
--- /dev/null
+++ b/sld-dashboard/app/home/templates/stacks-cards.html
@@ -0,0 +1,83 @@
+{% extends "layouts/base.html" %}
+
+{% block title %} Stacks {% endblock %}
+
+
+{% block stylesheets %}
+
+{% endblock stylesheets %}
+
+{% block content %}
+
+ List all stacks for deploy Some quick example text to build on the card title and make up the bulk of the card's content.All Stacks
+ {{ stack.stack_name }}
+
Some quick example text to build on the card title and make up the bulk of the card's content.
- Go somewhere + + {{ stack.description}} + +{{stack.description}}
Error al cargar el README.md
" + + # When user push data with POST verb + if request.method == "POST": + # Data dend to deploy + squad_acces_form = form.squad_access_edit.data + squad_acces_form_to_list = squad_acces_form.split(",") + update_stack = { + "stack_name": form.name.data.replace(" ",""), + "git_repo": form.git.data.replace(" ",""), + "branch": form.branch.data.replace(" ",""), + "squad_access": squad_acces_form_to_list, + "iac_type": form.iac_type.data, + "tf_version": form.tf_version.data.replace(" ",""), + "project_path": form.project_path.data.replace(" ",""), + "description": form.description.data, + "icon_path": request.form.get("icon_path"), + } + # Deploy + response = request_url( + verb="PATCH", + uri=f"{endpoint}", + headers={"Authorization": f"Bearer {token}"}, + json=update_stack, + ) + if response.get("status_code") == 200: + flash("Updating Stack") + else: + flash(response.get("json").get("detail"), "error") + return redirect( + url_for("home_blueprint.route_template", template="stacks-list") + ) + + return render_template( + "stack-details.html", name="Edit Stack", form=form, stack=stack, icons=icons, readme_html=readme_html + ) + except ValueError: + return redirect(url_for("base_blueprint.logout")) + @blueprint.route("/stack/delete/
+
+
+ {{stack.name}}
+ {{stack.description}}
+ {{stack.git_repo}}
+ {{stack.branch}}
+ {{ stack.iac_type }}
+ {{ stack.tf_version }}
+ {{ stack.squads }}
+ {{ readme_html | safe }}
+
+
+
+
+
+
+
+
+
+ {% include 'includes/footer.html' %}
+
+
-
+
+
+
+ {{stack.stack_name}}
+ {{stack.description}}
+
+
+
+
+ {{stack.git_repo}}
+ {{stack.branch}}
+
+
+
+
+ {{stack.iac_type}}
+ {{stack.tf_version}}
+ {{stack.squads}}
+
+
+
- {{stack.name}}
- {{stack.description}}
- {{stack.git_repo}}
- {{stack.branch}}
- {{ stack.iac_type }}
- {{ stack.tf_version }}
- {{ stack.squads }}
+
{{ readme_html | safe }}
diff --git a/sld-dashboard/app/home/templates/stacks-cards.html b/sld-dashboard/app/home/templates/stacks-cards.html
index b394786c..d918cd8d 100644
--- a/sld-dashboard/app/home/templates/stacks-cards.html
+++ b/sld-dashboard/app/home/templates/stacks-cards.html
@@ -31,6 +31,11 @@ All Stacks