闭社主体 forked from https://github.com/tootsuite/mastodon
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.

55 lines
1.6 KiB

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