Shivam Mishra | 87a7438 | 2019-05-21 12:05:19 +0530 | [diff] [blame^] | 1 | {% macro hero(title, description) %} |
| 2 | <div class='container pb-5'> |
| 3 | <h1>{{ title}}</h1> |
| 4 | <p class='lead' style="max-width: 100%;">{{ description }}</p> |
| 5 | <p class="mt-4"> |
| 6 | <a id="signup" class="btn btn-primary btn-lg" style="width: 170px;" href="/login#signup" hidden=true>Sign Up</a> |
| 7 | </p> |
| 8 | </div> |
| 9 | |
| 10 | {% block script %} |
| 11 | <script type="text/javascript"> |
| 12 | frappe.ready(() => { |
| 13 | btn = document.getElementById('signup') |
| 14 | if(frappe.session.user == 'Guest') { |
| 15 | btn.hidden = false; |
| 16 | } |
| 17 | }) |
| 18 | </script> |
| 19 | {% endblock %} |
| 20 | {% endmacro %} |