github.com/Azareal/Gosora@v0.0.0-20210729070923-553e66b59003/templates/guilds_view_guild.html (about)

     1  {{template "header.html" . }}
     2  {{/** TODO: Move this into a CSS file **/}}
     3  {{template "socialgroups_css.html" . }}
     4  
     5  {{/** TODO: Port the page template functions to the template interpreter **/}}
     6  {{if gt .Page 1}}<div id="prevFloat" class="prev_button"><a class="prev_link" href="/guild/{{.Guild.ID}}?page={{subtract .Page 1}}">&lt;</a></div>{{end}}
     7  {{if ne .LastPage .Page}}<link rel="prerender" href="/guild/{{.Guild.ID}}?page={{add .Page 1}}" />
     8  <div id="nextFloat" class="next_button"><a class="next_link" href="/guild/{{.Guild.ID}}?page={{add .Page 1}}">&gt;</a></div>{{end}}
     9  
    10  <div class="sgBackdrop">
    11  	<nav class="miniMenu">
    12  		<div class="menuItem"><a href="/guild/{{.Guild.ID}}">{{.Guild.Name}}</a></div>
    13  		<div class="menuItem"><a href="#">About</a></div>
    14  		<div class="menuItem"><a href="/guild/members/{{.Guild.ID}}">Members</a></div>
    15  		<div class="menuItem rightMenu"><a href="#">Edit</a></div>
    16  		<div class="menuItem rightMenu"><a href="/topics/create/{{.Forum.ID}}">Reply</a></div>
    17  		<div class="menuItem rightMenu"><a href="/guild/join/{{.Guild.ID}}">Join</a></div>
    18  	</nav>
    19  	<div style="clear: both;"></div>
    20  </div>
    21  <main id="forum_topic_list" class="rowblock topic_list" style="position:relative;z-index:50;">
    22  	{{range .ItemList}}<div class="rowitem topic_left passive datarow" style="background-image:url({{.Creator.Avatar}});background-position:left;background-repeat:no-repeat;background-size:64px;padding-left:72px;{{if .Sticky}}background-color:#FFFFCC;{{else if .IsClosed}}background-color:#eaeaea;{{end}}">
    23  		<span class="topic_inner_right rowsmall" style="float:right;">
    24  			<span class="replyCount">{{.PostCount}} replies</span><br>
    25  			<span class="lastReplyAt">{{.LastReplyAt}}</span>
    26  		</span>
    27  		<span>
    28  			<a class="rowtopic" href="{{.Link}}">{{.Title}}</a>
    29  			<br><a class="rowsmall" href="{{.Creator.Link}}">Starter: {{.Creator.Name}}</a>
    30  			{{if .IsClosed}}<span class="rowsmall topic_status_e topic_status_closed" title="{{lang "status.closed_tooltip"}}"> | &#x1F512;&#xFE0E{{end}}</span>
    31  		</span>
    32  	</div>
    33  	<div class="rowitem topic_right passive datarow" style="background-image:url({{.LastUser.Avatar}});background-position:left;background-repeat:no-repeat;background-size:64px;padding-left:72px;">
    34  		<span>
    35  			<a href="{{.LastUser.Link}}" class="lastName" style="font-size:14px;">{{.LastUser.Name}}</a><br>
    36  			<span class="rowsmall lastReplyAt">Last: {{.LastReplyAt}}</span>
    37  		</span>
    38  	</div>
    39  	{{else}}<div class="rowitem passive">There aren't any topics in here yet.{{if .CurrentUser.Perms.CreateTopic}} <a href="/topics/create/{{.Forum.ID}}">Start one?</a>{{end}}</div>{{end}}
    40  </main>
    41  {{template "footer.html" . }}