DotaNoobs main site.
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.

110 lines
5.5 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {% block head %}
  5. <title>{% block title %}{% endblock %}</title>
  6. {% endblock %}
  7. <!-- Meta-tags -->
  8. <meta name="viewport" content="initial-scale=1">
  9. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  10. <!-- CSS includes -->
  11. <!--<link rel="stylesheet" href="{{ url_for('static', filename='css/uikit.min.css') }}" />-->
  12. <link rel="stylesheet" href="{{ url_for('static', filename='css/uikit.gradient.min.css') }}" />
  13. <link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}" />
  14. <!-- Javascript includes -->
  15. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  16. <script src="{{ url_for('static', filename='js/uikit.min.js') }}"></script>
  17. </head>
  18. <body>
  19. <!-- Navigation bar -->
  20. <nav class="uk-navbar uk-navbar-attached" data-uk-navbar>
  21. <a href="#offcanvas" class="uk-navbar-brand uk-hidden-large" data-uk-offcanvas><img src="{{ url_for('static', filename='img/navlogo.png') }}" /><i class="uk-icon-double-angle-down"></i></a>
  22. <a href="" class="uk-navbar-brand uk-visible-large" data-uk-offcanvas><img src="{{ url_for('static', filename='img/navlogo.png') }}" /></a>
  23. <!-- Check if user is logged in -->
  24. {% if g.user %}
  25. <ul class="uk-navbar-nav uk-navbar-flip">
  26. <li data-uk-dropdown="" class="uk-parent">
  27. <a href="#"><img class="uk-responsive-height" src="{{ g.user.avatar }}" /> {{ g.user.nickname }} </a>
  28. <div class="uk-dropdown uk-dropdown-navbar">
  29. <ul class="uk-nav uk-nav-navbar">
  30. <li><a href="{{ url_for('user_profile', userid=g.user.id) }}">Profile</a></li>
  31. <li><a href="{{ url_for('user_random_hero', userid=g.user.id) }}">A-Z Challenge</a></li>
  32. <li><a href="http://board.dotanoobs.com/?page=lastposts">Latest Posts</a></li>
  33. <li class="uk-nav-divider"></li>
  34. <li><a href="{{ url_for('user_settings', userid=g.user.id) }}">Settings</a></li>
  35. <li><a href="{{ url_for('logout') }}">Logout</a></li>
  36. </ul>
  37. </div>
  38. </ul>
  39. {% else %}
  40. <a class="uk-navbar-flip uk-navbar-content" href="{{ url_for('login') }}"><img src="http://cdn.steamcommunity.com/public/images/signinthroughsteam/sits_large_border.png" /></a>
  41. {% endif %}
  42. <div class="uk-navbar-content uk-navbar-center uk-hidden-small uk-text-bold">DotaNoobs</div>
  43. </nav>
  44. <!-- Flash Error Messages -->
  45. {% with messages = get_flashed_messages() %}
  46. {% if messages %}
  47. <ul class="flashes uk-width-1-3 uk-container-center">
  48. <a href="" class="uk-alert-close uk-close"></a>
  49. {% for message in messages %}
  50. <li class="uk-alert uk-alert-danger">{{ message }}</li>
  51. {% endfor %}
  52. </ul>
  53. {% endif %}
  54. {% endwith %}
  55. <!-- Start Main Container -->
  56. <div id="container" class="uk-grid">
  57. <!-- Big top logo -->
  58. <div class="uk-width-1-1"><img class="uk-align-center" id="biglogo" src="{{ url_for('static', filename='img/biglogo.png') }}"></div>
  59. <!-- Side navigation -->
  60. <div class="uk-visible-large uk-width-1-5 uk-panel">
  61. {% if g.doob%}
  62. <h3 class="uk-panel-title">{{ g.doob.name }}</h3>
  63. <hr class="uk-nav-divider" />
  64. {% endif %}
  65. <ul class="uk-nav uk-nav-side uk-text-right uk-nav-parent-icon" data-uk-nav>
  66. {% include 'sidenav.html' %}
  67. </ul>
  68. </div>
  69. <div id="offcanvas" class="uk-offcanvas">
  70. <div class="uk-offcanvas-bar">
  71. {% if g.doob%}
  72. <h3 class="uk-panel-title">{{ g.doob.name }}</h3>
  73. {% endif %}
  74. <ul class="uk-nav uk-nav-offcanvas" data-uk-nav>
  75. {% include 'sidenav.html' %}
  76. </ul>
  77. </div>
  78. </div>
  79. <!-- Main content area -->
  80. <div class="uk-width-large-4-5 uk-width-medium-5-5">
  81. {% block content %}
  82. {% endblock %}
  83. </div>
  84. </div>
  85. <!-- Footer section -->
  86. <footer class="uk-clearfix uk-align-center">
  87. <div class="uk-float-left uk-visible-large">
  88. <a href="http://flask.pocoo.org/"><img src="{{ url_for('static', filename='img/powered-by-flask-s.png') }}" alt="Flask"></a> &amp;
  89. <a href="http://store.steampowered.com/"><img src="{{ url_for('static', filename='img/steam.png') }}" alt="Steam"></a>
  90. </div>
  91. &copy; Coypright 2013 by <a href="http://www.dotanoobs.com/"><img src="{{ url_for('static',filename='img/navlogo.png') }}" alt="DotaNoobs" /></a>
  92. <div class="uk-float-right uk-visible-large">
  93. <a href="http://www.twitch.tv/dotanoobs"><img src="{{ url_for('static', filename='img/twitchicon.png') }}" width="32" alt="Twitch.tv" /></a>
  94. <a href="http://www.youtube.com/user/DotaNoobsVods"><img src="{{ url_for('static', filename='img/youtube.png') }}" alt="YouTube" /></a>
  95. <a href="emailto:admin@dotanoobs.com"><img src="{{ url_for('static', filename='img/email.png') }}" /></a>
  96. </div>
  97. </footer>
  98. <!-- Page-specific javascript here -->
  99. {% block pagescripts %}
  100. {% endblock %}
  101. </body>
  102. </html>