search_user.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {% extends 'themes/wayback/base.html' %}
  2. {% block head %}
  3. <title>搜索 - MikuInvidious</title>
  4. <meta name="referrer" content="never">
  5. <link rel="stylesheet" href="/static/themes/wayback/css/search.css">
  6. {% endblock %}
  7. {% block content %}
  8. <div class="h-box">
  9. 搜索类别:
  10. <a href="/search?q={{q}}&t=video">[视频]</a>
  11. <a href="/search?q={{q}}&t=article">[专栏]</a>
  12. <a href="/search?q={{q}}&t=user">[UP主]</a>
  13. </div>
  14. <div class="h-box">
  15. 排序方式:
  16. <a href="/search?q={{q}}&t=user&sort=fans">[最多粉丝]</a>
  17. <a href="/search?q={{q}}&t=user&sort=level">[最高等级]</a>
  18. </div>
  19. <div class="pure-g h-box v-box">
  20. <div class="pure-u-1 pure-u-lg-1-5">
  21. {% if sinfo['page'] > 1 %}
  22. <a href="/search?q={{q}}&i={{sinfo['page']-1}}&t=user&sort={{ sort or 'fans' }}">上一页</a>
  23. {% endif %}
  24. </div>
  25. <div class="pure-u-1 pure-u-lg-3-5"></div>
  26. <div class="pure-u-1 pure-u-lg-1-5" style="text-align:right">
  27. {% if sinfo['numPages'] > sinfo['page'] %}
  28. <a href="/search?q={{q}}&i={{sinfo['page']+1}}&t=user&{{ sort or 'fans' }}">下一页</a>
  29. {% endif %}
  30. </div>
  31. </div>
  32. {% if sinfo['numResults'] == 0 %}
  33. <div class="h-box no-results-error">
  34. <div>
  35. 没有搜索到相关用户
  36. </div>
  37. </div>
  38. {% else %}
  39. <div class="pure-g">
  40. {% for u in rs %}
  41. <a href="/space/{{ u['mid'] }}" style="margin-bottom: 1em;" class="pure-u-1 pure-u-sm-1-2 pure-u-md-1-3">
  42. <div class="channel-profile">
  43. <img src="{{ u['upic']|pic }}" alt="">
  44. <span>{{ u['uname'] }}</span>
  45. </div>
  46. </a>
  47. {% endfor %}
  48. </div>
  49. {% endif %}
  50. {% endblock %}