user_panel.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <script type="text/javascript" charset="utf-8">
  2. $(document).ready(function(){
  3. $('a#confirm_email').click(function(){
  4. $.post("{{ url_for('auth.confirm_email') }}",
  5. function(data) {
  6. alert(data)
  7. });
  8. });
  9. });
  10. </script>
  11. {% if not current_user.is_confirmed %}
  12. <div class="alert alert-info" style="font-size:12px;padding:6px">
  13. <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  14. <span aria-hidden="true">&times;</span>
  15. </button>
  16. 你的账户未验证,请尽快验证
  17. <a href="javascript:void(0)" id="confirm_email" class="btn btn-info btn-sm">验证账户</a>
  18. </div>
  19. {% endif %}
  20. <div class="list-group" style="margin-bottom:10px;">
  21. <div class="list-group-item">
  22. <h4 class="list-group-item-heading text-center">{{ current_user.name }}</h4>
  23. {% if not current_user.is_confirmed %}
  24. <div class="text-center" style="font-size:12px;color:#999;">账户未验证</div>
  25. {% endif %}
  26. <table class="list-group-item-text" style="font-size:12px;color:#999;width:100%" align="center">
  27. <tr>
  28. {% set topic,all_topic,collect = current_user.id | load_user_count %}
  29. <td align="center" style="border-right:1px solid #AACCEE;padding-right:10px;">
  30. <p style="font-size:16px;">{{ topic }}</p>主题</td>
  31. <td align="center" style="border-right:1px solid #AACCEE;padding:0 10px;">
  32. <p style="font-size:16px;">{{ all_topic }}</p>帖子</td>
  33. <td align="center" style="padding-left:10px;">
  34. <p style="font-size:16px;">{{ collect }}</p>收藏</td>
  35. </tr>
  36. </table>
  37. </div>
  38. <div class="list-group-item">
  39. </div>
  40. <div class="list-group-item" style="font-size:12px;color:#999;">
  41. {% set notice = current_user.id | judge('notice') %}
  42. <a href="{{ url_for('user.notice',user_url=current_user.name) }}">{{ notice }}条未读提醒</a>
  43. <span style="float:right;">积分:{{ current_user.score }}</span>
  44. </div>
  45. </div>
  46. <div class="list-group" style="font-size:12px;color:#999;margin-bottom:10px;">
  47. <div class="list-group-item">
  48. {% set daily = current_user.id | judge('daily') %}
  49. {% if daily %}
  50. <span>今日已签到</span>
  51. {% else %}
  52. <a href="{{ url_for('user.daily',user_url=current_user.name) }}">签到</a>
  53. {% endif %}
  54. </div>
  55. </div>