91f70d2a4a
Added basic support for server sync. Re-added a few missing defers. Renamed TO-DO to TODO across the entire codebase. Renamed StaticForumStore to MemoryForumStore. The ForumStore is now built on a sync.Map with a view slice for generating /forums rather than a slice. Renamed many more functions and variables to satisfy the linter. increase_post_user_stats() and decrease_post_user_stats() are now methods on the User struct. We also fix a bug where they take the moderator's score rather than the target user's into account when recalculating their level after a post / topic is deleted. Transitioned the topic list to CSS Grid for Tempra Simple, with a float fallback. Cosmo and Cosmo Conflux are now hidden from the theme list. Fixed more data races. Added more debug data to the template compiler logs.
35 lines
1.9 KiB
HTML
35 lines
1.9 KiB
HTML
{{template "header.html" . }}
|
|
{{/** TODO: Move this into a CSS file **/}}
|
|
{{template "socialgroups_css.html" . }}
|
|
|
|
{{/** TODO: Port the page template functions to the template interpreter **/}}
|
|
{{if gt .Page 1}}<div id="prevFloat" class="prev_button"><a class="prev_link" href="/group/members/{{.SocialGroup.ID}}?page={{subtract .Page 1}}"><</a></div>{{end}}
|
|
{{if ne .LastPage .Page}}<link rel="prerender" href="/group/members/{{.SocialGroup.ID}}?page={{add .Page 1}}" />
|
|
<div id="nextFloat" class="next_button"><a class="next_link" href="/group/members/{{.SocialGroup.ID}}?page={{add .Page 1}}">></a></div>{{end}}
|
|
|
|
<div class="sgBackdrop">
|
|
<nav class="miniMenu">
|
|
<div class="menuItem"><a href="/group/{{.SocialGroup.ID}}">{{.SocialGroup.Name}}</a></div>
|
|
<div class="menuItem"><a href="#">About</a></div>
|
|
<div class="menuItem"><a href="/group/members/{{.SocialGroup.ID}}">Members</a></div>
|
|
<div class="menuItem rightMenu"><a href="#">Edit</a></div>
|
|
<div class="menuItem rightMenu"><a href="/group/join/{{.SocialGroup.ID}}">Join</a></div>
|
|
</nav>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
<main id="socialgroups_member_list" class="rowblock member_list" style="position: relative;z-index: 50;">
|
|
{{range .ItemList}}<div class="rowitem passive datarow" style="{{if .User.Avatar}}background-image: url({{.User.Avatar}});background-position: left;background-repeat: no-repeat;background-size: 64px;padding-left: 78px;{{end}}{{if .Offline}}background-color: #eaeaea;{{else if gt .Rank 0}}background-color: #e6f3ff;{{end}}">
|
|
<span style="float: right;">
|
|
<span class="rank" style="font-size: 15px;">{{.RankString}}</span><br />
|
|
<span class="joinedAt rowsmall">{{.JoinedAt}}</span>
|
|
</span>
|
|
<span>
|
|
<a class="rowtopic" href="{{.Link}}">{{.User.Name}}</a>
|
|
{{/** Use this for badges instead of rank? Both? Group Titles? **/}}
|
|
<br /><span class="rowsmall postCount">{{.PostCount}} posts</span>
|
|
</span>
|
|
</div>
|
|
{{end}}
|
|
</main>
|
|
{{template "footer.html" . }}
|