You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/06/18 19:38:36 UTC

[airavata-django-portal] 19/20: AIRAVATA-3453 Convenience base template for working with custom application templates

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch airavata-3453
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit a8aaa96ecb22b178b1711d8a3bbe4787646681f5
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Fri May 21 16:30:07 2021 -0400

    AIRAVATA-3453 Convenience base template for working with custom application templates
---
 .../django_airavata_workspace/wc-base.html         | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/django_airavata/apps/workspace/templates/django_airavata_workspace/wc-base.html b/django_airavata/apps/workspace/templates/django_airavata_workspace/wc-base.html
new file mode 100644
index 0000000..3111030
--- /dev/null
+++ b/django_airavata/apps/workspace/templates/django_airavata_workspace/wc-base.html
@@ -0,0 +1,27 @@
+{% extends 'base.html' %}
+
+{% load static %}
+
+{% block css %}
+  {% block custom-css %}
+  {% endblock %}
+{% endblock css %}
+
+{% block content %}
+<div class="main-content-wrapper">
+    <main class="main-content">
+        <div class="container-fluid">
+          {% block custom-content %}
+
+          {% endblock custom-content %}
+        </div>
+    </main>
+</div>
+{% endblock content %}
+
+{% block scripts %}
+<script src="{% static 'django_airavata_workspace/wc/adpf.chunk-vendors.js' %}"></script>
+<script src="{% static 'django_airavata_workspace/wc/adpf.min.js' %}"></script>
+  {% block custom-scripts %}
+  {% endblock custom-scripts %}
+{% endblock scripts %}