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
1.6 KiB

  1. - content_for :page_title do
  2. = '我的'
  3. .grid
  4. .column-0
  5. .box-widget
  6. .rich-formatting
  7. %h2= "#{@year_text}在闭社:"
  8. %p
  9. 我总共发布了
  10. %strong
  11. #{@total}
  12. 嘟文
  13. - if @total > 0
  14. %p
  15. 我发得最多的一天是
  16. %strong
  17. #{@most_times[0][:date]}
  18. ,一下子发了
  19. %strong
  20. #{@most_times[0][:num]}
  21. - if @most_fav&.favourites_count or 0 > 0
  22. %p
  23. 其中最高赞是“
  24. =link_to @most_fav.text[0..8]+'...', @most_fav.uri
  25. ”,收获了
  26. %strong
  27. #{@most_fav.favourites_count}
  28. - if @like_me_most.size > 0
  29. %p
  30. 给我点赞最多的是他们:
  31. %ul
  32. - @like_me_most.each do |a|
  33. %li= account_link_to(a[:account], a[:num], full: a == @like_me_most.first)
  34. - if @i_like_most.size > 0
  35. %p
  36. 收到我的赞最多的是他们:
  37. %ul
  38. - @i_like_most.each do |a|
  39. %li= account_link_to(a[:account], a[:num], full: a == @i_like_most.first)
  40. - if @communi_most.size > 0
  41. %p
  42. 和我互相交流最频繁的是:
  43. %ul
  44. - @communi_most.each do |a|
  45. %li= account_link_to(a[:account], a[:num], full: a == @communi_most.first)
  46. %br
  47. %br
  48. %p= '感谢陪伴,新的一年,祝平安喜乐'
  49. .column-1
  50. = render 'application/sidebar'