summaryrefslogtreecommitdiff
path: root/workshop_app/templates
diff options
context:
space:
mode:
authorankitjavalkar2019-09-26 15:54:41 +0530
committerGitHub2019-09-26 15:54:41 +0530
commitb103cbfc8a01317a991b995668eb481dfa670aa1 (patch)
treeffd92d3a253ce1f99abae96a706d9253d4fa144e /workshop_app/templates
parent0a862f665ae5bb373ffac47888915a140beb53a8 (diff)
parentb0c2a45920a0ae7c0c2054ad403cb7d326bc39eb (diff)
downloadworkshop_booking-b103cbfc8a01317a991b995668eb481dfa670aa1.tar.gz
workshop_booking-b103cbfc8a01317a991b995668eb481dfa670aa1.tar.bz2
workshop_booking-b103cbfc8a01317a991b995668eb481dfa670aa1.zip
Merge pull request #101 from FOSSEE/add-banner
Add banner management system to workshop website
Diffstat (limited to 'workshop_app/templates')
-rw-r--r--workshop_app/templates/workshop_app/index.html24
1 files changed, 17 insertions, 7 deletions
diff --git a/workshop_app/templates/workshop_app/index.html b/workshop_app/templates/workshop_app/index.html
index 12a6562..4880a2a 100644
--- a/workshop_app/templates/workshop_app/index.html
+++ b/workshop_app/templates/workshop_app/index.html
@@ -67,13 +67,23 @@ $(document).ready(function(){
</head>
<body>
- <!--
- <center>
- <a href="https://fossee.in/fellowship/2019"><img
- src="https://static.fossee.in/fossee/banners/fellowship_2019_3.gif"/>
- </a>
- </center>
- -->
+ <div>
+ {% if banners %}
+ {% for banner in banners %}
+ {% if banner.active %}
+ {{ banner.html | safe}}
+ {% endif %}
+
+ <!--
+ <center>
+ <a href="https://fossee.in/fellowship/2019"><img
+ src="https://static.fossee.in/fossee/banners/fellowship_2019_3.gif"/>
+ </a>
+ </center>
+ -->
+ {% endfor %}
+ {% endif %}
+ </div>
<nav class="navbar navbar-expand-sm navbar-custom">
<a class="navbar-brand">FOSSEE Python Workshops</a>
<ul class=" nav navbar-nav ml-auto">