user-profile.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {% extends "base.html" %}
  2. {% block head %}
  3. <title>Profile: {{ user.id }}</title>
  4. {% endblock %}
  5. {% block content %}
  6. <div class="w-100">
  7. {% if twitter_user %}
  8. {% include "partial/user-card.html" %}
  9. <div class="w-100" style="height: 80px;">
  10. <p class="w-100" style="text-align: right">
  11. {% if page_nav %}
  12. {% for nav_item in page_nav|sort(attribute='order') %}
  13. | <a href="{{ nav_item.href }}">{{ nav_item.label }}</a>
  14. {% endfor %}
  15. {% endif %}
  16. </p>
  17. <div class="w-100">
  18. <form action="{{ url_for('.get_profile_html', user_id=user.id) }}" method="GET">
  19. <input type="hidden" name="me" value="{{ me }}">
  20. <input type="hidden" name="user_id" value="{{ user.id }}">
  21. <input type="checkbox" name="exclude_replies" value="1" {% if request.args.exclude_replies %}checked{% endif %}> No replies
  22. |
  23. <input type="checkbox" name="only_media" value="1" {%if request.args.only_media %}checked{% endif %}> Only media
  24. <br>
  25. <button type="submit">Filter</button>
  26. </form>
  27. </div>
  28. </div>
  29. {% endif %}
  30. {% block tab_content %}
  31. {% if tab == "media" %}
  32. media
  33. {% else %}
  34. {% with show_thread_controls=True %}
  35. {% include "partial/tweets-timeline.html" %}
  36. {% endwith %}
  37. {% endif %}
  38. {% endblock %}
  39. </div>
  40. {% endblock %}