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.

130 lines
6.3 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="//cdnjs.cloudflare.com/ajax/libs/uikit/2.4.0/css/uikit.gradient.min.css" />
  12. <link rel="stylesheet" href="{{ url_for('static', filename='css/app.css') }}" />
  13. <!-- Javascript includes -->
  14. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  15. <script src="//cdnjs.cloudflare.com/ajax/libs/uikit/2.4.0/js/uikit.min.js"></script>
  16. <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.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. {% if g.user.admin %}
  34. <li><a href="{{ url_for('event_edit') }}">Add Event</a></li>
  35. {% endif %}
  36. <li class="uk-nav-divider"></li>
  37. <li><a href="{{ url_for('user_settings') }}">Settings</a></li>
  38. <li><a href="{{ url_for('logout') }}">Logout</a></li>
  39. </ul>
  40. </div>
  41. </ul>
  42. {% else %}
  43. <a class="uk-navbar-flip uk-navbar-content" href="{{ url_for('login') }}"><img src="http://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_large_border.png" /></a>
  44. {% endif %}
  45. <div class="uk-navbar-content uk-navbar-center uk-hidden-small uk-text-bold">DotaNoobs</div>
  46. </nav>
  47. <!-- Flash Error Messages -->
  48. {% with messages = get_flashed_messages(with_categories=true) %}
  49. {% if messages %}
  50. <ul class="uk-list flashes uk-width-2-3 uk-container-center">
  51. {% for category, message in messages %}
  52. <li class="uk-alert uk-alert-{{ category }}">{{ message }} <a href="#" class="uk-alert-close uk-close"></a> </li>
  53. {% endfor %}
  54. </ul>
  55. {% endif %}
  56. {% endwith %}
  57. <!-- Start Main Container -->
  58. <div id="container" class="uk-grid">
  59. <!-- Big top logo -->
  60. {% if not g.user.logo %}
  61. <div class="uk-width-1-1"><img class="uk-align-center" id="biglogo" src="{{ url_for('static', filename='img/biglogo.png') }}"></div>
  62. {% endif %}
  63. <!-- Side navigation -->
  64. <div class="uk-visible-large uk-width-1-5 uk-panel">
  65. {% if g.doob%}
  66. <h3 class="uk-panel-title">{{ g.doob.name }}</h3>
  67. <hr class="uk-nav-divider" />
  68. {% endif %}
  69. <ul class="uk-nav uk-nav-side uk-text-right uk-nav-parent-icon" data-uk-nav>
  70. {% include 'sidenav.html' %}
  71. </ul>
  72. </div>
  73. <div id="offcanvas" class="uk-offcanvas">
  74. <div class="uk-offcanvas-bar">
  75. {% if g.doob%}
  76. <h3 class="uk-panel-title">{{ g.doob.name }}</h3>
  77. {% endif %}
  78. <ul class="uk-nav uk-nav-offcanvas" data-uk-nav>
  79. {% include 'sidenav.html' %}
  80. </ul>
  81. </div>
  82. </div>
  83. <!-- Main content area -->
  84. <div class="uk-width-large-4-5 uk-width-medium-5-5">
  85. {% block content %}
  86. {% endblock %}
  87. </div>
  88. </div>
  89. <!-- Footer section -->
  90. <footer class="uk-clearfix uk-align-center">
  91. {% cache 60*5 %}
  92. <div class="uk-float-left uk-visible-large">
  93. <a href="http://flask.pocoo.org/"><img src="{{ url_for('static', filename='img/powered-by-flask-s.png') }}" alt="Flask"></a> &amp;
  94. <a href="http://store.steampowered.com/"><img src="{{ url_for('static', filename='img/steam.png') }}" alt="Steam"></a>
  95. </div>
  96. &copy; Coypright 2013 by <a href="http://www.dotanoobs.com/"><img src="{{ url_for('static',filename='img/navlogo.png') }}" alt="DotaNoobs" /></a>
  97. <div class="uk-float-right uk-visible-large">
  98. <a href="http://www.twitch.tv/dotanoobs"><img src="{{ url_for('static', filename='img/twitchicon.png') }}" width="32" alt="Twitch.tv" /></a>
  99. <a href="http://www.youtube.com/user/DotaNoobsVods"><img src="{{ url_for('static', filename='img/youtube.png') }}" alt="YouTube" /></a>
  100. <a href="emailto:admin@dotanoobs.com"><img src="{{ url_for('static', filename='img/email.png') }}" /></a>
  101. </div>
  102. {% endcache %}
  103. </footer>
  104. <!-- Page-specific javascript here -->
  105. {% block pagescripts %}
  106. {% endblock %}
  107. <script type='text/javascript'>
  108. $(document).ready(function() {
  109. $("li.uk-alert > a.uk-alert-close").on('click', function(){
  110. $(this).parent().hide();
  111. });
  112. $(document).ready(function() {
  113. $('.date').each(function (index) {
  114. var d = moment.utc($(this).text()+" UTC");
  115. $(this).html(d.local().format("h:mm A on MMM Do"));
  116. });
  117. });
  118. });
  119. </script>
  120. </body>
  121. </html>