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.

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