summaryrefslogtreecommitdiff
path: root/cms/templates/cms_base.html
diff options
context:
space:
mode:
Diffstat (limited to 'cms/templates/cms_base.html')
-rw-r--r--cms/templates/cms_base.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/cms/templates/cms_base.html b/cms/templates/cms_base.html
new file mode 100644
index 0000000..c2683f3
--- /dev/null
+++ b/cms/templates/cms_base.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>{{ page.title }}</title>
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
+ integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
+
+ <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
+ integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
+ crossorigin="anonymous"></script>
+ <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
+ integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
+ crossorigin="anonymous"></script>
+ {{ page.imports | safe }}
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
+ integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
+ crossorigin="anonymous"></script>
+ <link rel="stylesheet" href="{{ URL_ROOT }}/static/workshop_app/css/base.css" type="text/css"/>
+</head>
+<body>
+
+<nav class=" navbar-custom navbar navbar-expand-lg bg-light">
+ <a class="navbar-brand" href="/">FOSSEE Python Workshops</a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon"></span>
+ </button>
+
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
+ <ul class="navbar-nav mr-auto">
+ </ul>
+ <div class="my-2 my-lg-0">
+ <ul class="navbar-nav mr-auto">
+ {% for nav in navs %}
+ <li class="nav-item">
+ {% if nav.subnavs %}
+ <ul class="navbar-nav mr-auto">
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
+ data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span
+ class="material-icons" style="vertical-align: middle">{{ nav.name }}</span>
+ </a>
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ {% for subnav in nav.subnavs %}
+ <a class="dropdown-item" href="{{ subnav.link }}">{{ subnav.name }}</a>
+ {% endfor %}
+ </div>
+ </li>
+ </ul>
+ {% else %}
+ <a class="nav-link" href="{{ nav.link }}">{{ nav.name }}</a>
+ {% endif %}
+ </li>
+ {% endfor %}
+
+ </ul>
+ </div>
+ </div>
+</nav>
+{{ page.content | safe }}
+</body>
+</html> \ No newline at end of file