gruser.htm 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html>
  2. <html>
  3. {{template "head" . }}
  4. <main>
  5. <header>
  6. <h1>
  7. <a href="{{.BasePath}}">HOME</a>
  8. | <a href="{{.BasePath}}dd">DD</a>
  9. {{if ne .Type 'f'}}
  10. | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type={{if eq .Type 'a'}}gallery">Gallery{{else}}about">About{{end}}</a>
  11. | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">Favourites</a>
  12. {{else}}
  13. | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=about">About</a>
  14. | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery">Gallery</a>
  15. | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=favourites">Favourites</a>
  16. {{end}}
  17. | <a href="group_user?q={{.Templates.GroupUser.GR.Owner.Username}}&type=gallery&atom=true">RSS</a>
  18. </h1>
  19. <form method="get" action="{{.BasePath}}search">
  20. <input type="gallery" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
  21. <input type="hidden" name="usr" value="{{.Templates.GroupUser.GR.Owner.Username}}">
  22. <select name="type">
  23. <option value="gallery">Gallery</option>
  24. <option value="folders">Folders</option>
  25. <option value="all">All</option>
  26. <option value="tag">Tag</option>
  27. <option value="r">Groups</option>
  28. </select>
  29. <button type="submit">Search!</button>
  30. </form> <h1>| {{.Templates.GroupUser.GR.Owner.Username}}</h1>
  31. </header>
  32. {{if eq .Type 'a'}}
  33. {{if ne .Templates.GroupUser.About.BG ""}}
  34. <a href="{{.Templates.GroupUser.About.BGMeta.Url}}" class="ubg"><img title="{{if ne .Templates.GroupUser.GR.Owner.Username .Templates.GroupUser.About.BGMeta.Author.Username}}
  35. {{.Templates.GroupUser.About.BGMeta.Author.Username}} - {{end}}{{.Templates.GroupUser.About.BGMeta.Title}}" src="{{.Templates.GroupUser.About.BG}}"></a>
  36. {{end}}
  37. <img src="{{.BasePath}}media/emojitar/{{.Templates.GroupUser.GR.Owner.Username}}?type=a" width="30px" height="30px"> <b>{{.Templates.GroupUser.GR.Owner.Username}}</b>
  38. {{if (eq .Templates.GroupUser.About.A.Gender "male")}}
  39. ♂️
  40. {{end}}
  41. {{if (eq .Templates.GroupUser.About.A.Gender "female")}}
  42. ♀️
  43. {{end}}
  44. [<span title="UID">{{.Templates.GroupUser.GR.Gruser.ID}}</span>]
  45. [<span title="Registration date">{{.Templates.GroupUser.CreationDate}}</span>]
  46. {{if ne .Templates.GroupUser.GR.Extra.Tag ""}}
  47. <i title="User's Tag">"{{.Templates.GroupUser.GR.Extra.Tag}}"</i>{{end}} {{if ne .Templates.GroupUser.About.A.Country ""}}
  48. (<b>{{.Templates.GroupUser.About.A.Country}}</b>)
  49. {{end}}
  50. {{if .Templates.GroupUser.Group}}
  51. <h3 id="stats"><a href="#stats">#</a> Statistics</h3>
  52. <p>Watchers: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watchers}}</b>; Pageviews: <b>{{.Templates.GroupUser.GR.Extra.Stats.Pageviews}}</b></b>
  53. {{else}}
  54. <h3 id="stats"><a href="#stats">#</a> Statistics</h3>
  55. <p>Favourites: <b>{{.Templates.GroupUser.GR.Extra.Stats.Favourites}}</b>; Deviations: <b>{{.Templates.GroupUser.GR.Extra.Stats.Deviations}}</b>; Watchers: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watchers}}</b>
  56. <p>Watching: <b>{{.Templates.GroupUser.GR.Extra.Stats.Watching}}</b>; Pageviews: <b>{{.Templates.GroupUser.GR.Extra.Stats.Pageviews}}</b>; Comments Made: <b>{{.Templates.GroupUser.GR.Extra.Stats.CommentsMade}}</b>; Friends: <b>{{.Templates.GroupUser.GR.Extra.Stats.Friends}}</b></p>
  57. {{end}}
  58. {{if ne .Templates.GroupUser.Admins ""}}
  59. <h3 id="admins"><a href="#admins">#</a> Group admins</h3>
  60. <div class="plates admins">
  61. {{.Templates.GroupUser.Admins}}
  62. </div>
  63. {{end}}
  64. {{if ne .Templates.GroupUser.About.Interests ""}}
  65. <h3 id="interests"><a href="#interests">#</a> Interests</h3>
  66. {{.Templates.GroupUser.About.Interests}}
  67. {{end}}
  68. {{if ne .Templates.GroupUser.About.Social ""}}
  69. <h3 id="social"><a href="#social">#</a> Social Links</h3>
  70. {{.Templates.GroupUser.About.Social}}
  71. {{end}}
  72. {{if ne .Templates.GroupUser.About.DescriptionFormatted ""}}
  73. <h3 id="about"><a href="#about">#</a> About me</h3>
  74. {{.Templates.GroupUser.About.DescriptionFormatted}}
  75. {{end}}
  76. {{if ne .Templates.GroupUser.About.Comments ""}}
  77. <br>
  78. <h3 id="comments"><a href="#comments">#</a> Comments</h3>
  79. {{.Templates.GroupUser.About.Comments}}
  80. {{end}}
  81. {{else}}
  82. {{.Templates.GroupUser.Gallery.Folders}}
  83. {{.Templates.GroupUser.Gallery.List}}
  84. {{end}}
  85. </main>
  86. </html>