You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.3 KiB

  1. {% extends "bootstrap/base.html" %}
  2. {% block title %}Flasky{% endblock %}
  3. {% block head %}
  4. {{ super() }}
  5. <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
  6. <link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
  7. {% endblock %}
  8. {% block navbar %}
  9. <div class="navbar navbar-inverse" role="navigation">
  10. <div class="container">
  11. <div class="navbar-header">
  12. <button type="button" class="navbar-toggle"
  13. data-toggle="collapse" data-target=".navbar-collapse">
  14. <span class="sr-only">Toggle navigation</span>
  15. <span class="icon-bar"></span>
  16. <span class="icon-bar"></span>
  17. <span class="icon-bar"></span>
  18. </button>
  19. <a class="navbar-brand" href="{{ url_for('main.index') }}">Flasky</a>
  20. </div>
  21. <div class="navbar-collapse collapse">
  22. <ul class="nav navbar-nav">
  23. <li><a href="{{ url_for('main.index') }}">Home</a></li>
  24. </ul>
  25. <ul class="nav navbar-nav navbar-right">
  26. {% if current_user.is_authenticated %}
  27. <li class="dropdown">
  28. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Account <b class="caret"></b></a>
  29. <ul class="dropdown-menu">
  30. <li><a href="{{ url_for('auth.change_password') }}">Change Password</a></li>
  31. <li><a href="{{ url_for('auth.change_email_request') }}">Change Email</a></li>
  32. <li><a href="{{ url_for('auth.logout') }}">Log Out</a></li>
  33. </ul>
  34. </li>
  35. {% else %}
  36. <li><a href="{{ url_for('auth.login') }}">Log in</a></li>
  37. {% endif %}
  38. </ul>
  39. </div>
  40. </div>
  41. </div>
  42. {% endblock %}
  43. {% block content %}
  44. <div class="container">
  45. {% for message in get_flashed_messages() %}
  46. <div class="alert alert-warning">
  47. <button type="button" class="close" data-dismiss="alert">&times;</button>
  48. {{ message }}
  49. </div>
  50. {% endfor %}
  51. {% block page_content %}{% endblock %}
  52. </div>
  53. {% endblock %}
  54. {% block scripts %}
  55. {{ super() }}
  56. {{ moment.include_moment() }}
  57. {% endblock %}