success.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {# This simple template derives from ``base.html``. See ``base.html`` for
  2. more information about template inheritance. #}
  3. {%- extends "base.html" %}
  4. {# Loads some of the macros included with Flask-Bootstrap. We are using the
  5. utils module here to automatically render Flask's flashed messages in a
  6. bootstrap friendly manner #}
  7. {% import "bootstrap/utils.html" as utils %}
  8. {# Inside the ``content`` is where you should place most of your own stuff.
  9. This will keep scripts at the page end and a navbar you add on later
  10. intact. #}
  11. {% block content %}
  12. <div class="container">
  13. {%- with messages = get_flashed_messages(with_categories=True) %}
  14. {%- if messages %}
  15. <div class="row">
  16. <div class="col-md-12">
  17. {{utils.flashed_messages(messages)}}
  18. </div>
  19. </div>
  20. {%- endif %}
  21. {%- endwith %}
  22. <section class="form-elegant">
  23. <div class="row">
  24. <div class="col-md-12">
  25. <a href="/{{ token }}"><button type="submit" class="btn blue-gradient btn-block btn-rounded z-depth-1a">Share this link to share your secret</button></a>
  26. </div>
  27. </div>
  28. </section>
  29. </div>
  30. {%- endblock %}