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.

53 lines
2.2 KiB

11 years ago
  1. {% extends "layout.html" %}
  2. {% block title %}Event - {{ event.name }}{% endblock %}
  3. {% block content %}
  4. <div class="uk-grid" data-uk-grid-margin>
  5. <div class="uk-width-2-3">
  6. <div class="uk-panel">
  7. <h2 class="uk-float-left uk-width-1-1">{{ event.name }}</h2>
  8. Event Type: &nbsp;{{ event.type | event_badge | safe }}
  9. </div>
  10. </div>
  11. <div class="uk-width-1-3 uk-text-center">
  12. {% if g.user.admin %}
  13. <a class="uk-button" href="{{ url_for('event_edit', eventid=event.id) }}">Edit</a>
  14. <a class="uk-button" href="{{ url_for('event_delete', eventid=event.id) }}">Delete</a>
  15. {% endif %}
  16. </div>
  17. <!--Main content area -->
  18. <div class="uk-width-large-2-3 uk-width-medium-1-1 uk-panel">
  19. {% if event.desc == None %}
  20. <em class="uk-text-danger">This event has no description.</em>
  21. {% else %}
  22. <em class="uk-text-bold">{{ event.desc }}</em>
  23. {% endif %}
  24. {% if g.user.admin %}&nbsp;<a href="{{ url_for('user_settings')}}"><i class="uk-icon-edit"></i></a>{% endif %}
  25. </div>
  26. <!-- Side bar -->
  27. <div class="uk-width-large-1-3 uk-width-medium-1-1 uk-panel">
  28. <table class="uk-table uk-table-striped uk-table-hover uk-text-right">
  29. <h2 class="uk-text-center">Information</h2>
  30. <tbody>
  31. <tr>
  32. <td>This event is worth <span id='points'>{{ event.points }}</span> points a tick. </td>
  33. <td><i class="uk-icon-money"></i></td>
  34. </tr>
  35. <tr>
  36. <td>Payout every <span id='reward'>{{ event.reward_threshold }}</span> minutes (1 tick). </td>
  37. <td><i class="uk-icon-clock-o"></i></td>
  38. </tr>
  39. <tr>
  40. <td>Starting at <span class='date'>{{ event.start_time | js_datetime }}</span></td>
  41. <td><i class="uk-icon-calendar"></i></td>
  42. </tr>
  43. <tr>
  44. <td>Ending at <span class='date'>{{ event.end_time | js_datetime }}</span></td>
  45. <td><i class="uk-icon-warning"></i></td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. {% endblock %}