diff options
author | ankitjavalkar | 2019-09-26 15:54:41 +0530 |
---|---|---|
committer | GitHub | 2019-09-26 15:54:41 +0530 |
commit | b103cbfc8a01317a991b995668eb481dfa670aa1 (patch) | |
tree | ffd92d3a253ce1f99abae96a706d9253d4fa144e /workshop_app/templates | |
parent | 0a862f665ae5bb373ffac47888915a140beb53a8 (diff) | |
parent | b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb (diff) | |
download | workshop_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.html | 24 |
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"> |