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.

52 lines
2.4 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}Profile - {{ user.nickname }}{% endblock %}
  3. {% block content %}
  4. <div class="uk-grid" data-uk-grid-margin>
  5. <div class="uk-width-2-3">
  6. <h2 class="uk-float-left"><img class="" src="{{ user.avatar }}" />&nbsp;{{ user.nickname }}</h2>
  7. </div>
  8. <div id="profile_links" class="uk-width-1-3 uk-text-center">
  9. <div class="uk-panel">
  10. {% if user.public %}
  11. <a href="http://steamcommunity.com/profiles/{{ user.steam_id | safe }}">Steam</a> |
  12. <a href="http://board.dotanoobs.com/?page=profile&id={{ user.id | safe }}">Forum Profile</a> |
  13. <a href="http://dotabuff.com/search?q={{ user.steam_id }}">Dotabuff</a>
  14. {% endif %}
  15. </div>
  16. </div>
  17. <!--Main content area -->
  18. <div class="uk-width-large-2-3 uk-width-medium-1-1 uk-panel">
  19. {% if user.public %}
  20. {% if user.bio_text == None %}
  21. <em class="uk-text-danger">This user's profile bio is empty!</em>
  22. {% else %}
  23. <em class="uk-text-bold">{{ user.bio_text }}</em>
  24. {% endif %}
  25. {% else %}
  26. <em class="uk-text-danger">This user profile is set to private</em>
  27. {% endif %}
  28. {% if user.id == g.user.id %}&nbsp;<a href="{{ url_for('user_settings')}}"><i class="uk-icon-edit"></i></a>{% endif %}
  29. </div>
  30. <!-- Side bar -->
  31. <div class="uk-width-large-1-3 uk-width-medium-1-1 uk-panel uk-panel-box uk-panel-box-secondary">
  32. {% if user.public %}
  33. <div class="uk-container-center uk-text-center">
  34. <span class="uk-text-bold">Current Hero</span><br/>
  35. <span>{{ user.random_hero['localized_name'] }}</span><br/>
  36. <a href={{ url_for('user_random_hero', userid=user.id) }}>
  37. <img src="{{ url_for('static', filename=hero_image_large(user.random_hero)) }}" class="dn-hero-icon" /><br/>
  38. <span>View A-Z Progress</span>
  39. </a>
  40. </div>
  41. <ul class="uk-list uk-list-space uk-list-striped uk-text-center uk-text-small">
  42. <li>Completed <span id='rands'>{{ user.random_heroes.completed | length }}</span> heroes in A-Z</li>
  43. <li>Has <span id='points_total'>0</span> doobs points</li>
  44. <li>Last seen at <span class='date'> {{ user.last_seen | js_datetime }}</span></li>
  45. <li>Doob since <span class='date'> {{ user.created | js_datetime }}</span></li>
  46. </ul>
  47. {% endif %}
  48. </div>
  49. </div>
  50. {% endblock %}