save bytes
This commit is contained in:
parent
e19e478e32
commit
c7c3dcead2
|
@ -6,7 +6,7 @@
|
|||
{{range .ItemList}}
|
||||
<div class="rowitem{{if not .Success}} bg_red{{end}}">
|
||||
<span class="to_left">
|
||||
<span>{{if .Success}}{{lang "account_logins_success"}}{{else}}{{lang "account_logins_failure"}}"{{end}}</span><br />
|
||||
<span>{{if .Success}}{{lang "account_logins_success"}}{{else}}{{lang "account_logins_failure"}}"{{end}}</span><br>
|
||||
<small title="{{.IP}}">{{.IP}}</small>
|
||||
</span>
|
||||
<span class="to_right">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="rowitem"><h1>{{lang "areyousure_head"}}</h1></div>
|
||||
</div>
|
||||
<div class="rowblock">
|
||||
<div class="rowitem passive rowmsg">{{.Something.Message}}<br /><br />
|
||||
<div class="rowitem passive rowmsg">{{.Something.Message}}<br><br>
|
||||
<a class="username" href="{{.Something.URL}}?s={{.CurrentUser.Session}}">{{lang "areyousure_continue"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}" height=64 alt="Avatar"title="{{.Creator.Name}}'s Avatar"aria-hidden="true"/></a>
|
||||
<span class="topic_inner_left">
|
||||
<a class="rowtopic" href="{{.Link}}" itemprop="itemListElement" title="{{.Title}}"><span>{{.Title}}</span></a>
|
||||
<br /><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
||||
<br><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
||||
{{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}}
|
||||
{{if .IsClosed}}<span class="rowsmall topic_status_e topic_status_closed" title="{{lang "status.closed_tooltip"}}"> | 🔒︎</span>{{end}}
|
||||
{{if .Sticky}}<span class="rowsmall topic_status_e topic_status_sticky" title="{{lang "status.pinned_tooltip"}}"> | 📍︎</span>{{end}}
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<a href="{{.Creator.Link}}"><img src="{{.Creator.MicroAvatar}}" height=64 alt="Avatar" title="{{.Creator.Name}}'s Avatar" aria-hidden="true"/></a>
|
||||
<span class="topic_inner_left">
|
||||
<a class="rowtopic" href="{{.Link}}" itemprop="itemListElement" title="{{.Title}}"><span>{{.Title}}</span></a>
|
||||
<br /><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
||||
<br><a class="rowsmall starter" href="{{.Creator.Link}}" title="{{.Creator.Name}}">{{.Creator.Name}}</a>
|
||||
</span>
|
||||
</div>-->
|
||||
<!--<div class="topic_middle">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{{range .ItemList}}<div id="forum_{{.ID}}" class="rowitem{{if (.Desc) or (.LastTopic.Title)}} datarow{{end}}" itemprop="itemListElement" itemscope
|
||||
itemtype="http://schema.org/ListItem">
|
||||
<span class="forum_left shift_left">
|
||||
<a href="{{.Link}}" itemprop="item">{{.Name}}</a><br />
|
||||
<a href="{{.Link}}"itemprop="item">{{.Name}}</a><br>
|
||||
{{if .Desc}}
|
||||
<span class="rowsmall" itemprop="description">{{.Desc}}</span>
|
||||
{{else}}
|
||||
|
@ -19,10 +19,9 @@
|
|||
{{if .LastReplyer.MicroAvatar}}<img class="extra_little_row_avatar" src="{{.LastReplyer.MicroAvatar}}" height=64 width=64 alt="Avatar" title="{{.LastReplyer.Name}}'s Avatar" aria-hidden="true"/>{{end}}
|
||||
<span>
|
||||
<a {{if .LastTopic.Link}}href="{{.LastTopic.Link}}"{{else}}class="forum_no_poster"{{end}}>{{if .LastTopic.Title}}{{.LastTopic.Title}}{{else}}{{lang "forums_none"}}{{end}}</a>
|
||||
{{if .LastTopicTime}}<br /><span class="rowsmall" title="{{abstime .LastTopic.LastReplyAt}}">{{.LastTopicTime}}</span>{{end}}
|
||||
{{if .LastTopicTime}}<br><span class="rowsmall" title="{{abstime .LastTopic.LastReplyAt}}">{{.LastTopicTime}}</span>{{end}}
|
||||
</span>
|
||||
</span>
|
||||
<div style="clear:both;"></div>
|
||||
</span><div style="clear:both;"></div>
|
||||
</div>
|
||||
{{else}}<div class="rowitem passive rowmsg">{{lang "forums_no_forums"}}</div>{{end}}
|
||||
</div>
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
{{range .GuildList}}<div class="rowitem datarow">
|
||||
<span style="float:left;">
|
||||
<a href="{{.Link}}" style="">{{.Name}}</a>
|
||||
<br /><span class="rowsmall">{{.Desc}}</span>
|
||||
<br><span class="rowsmall">{{.Desc}}</span>
|
||||
</span>
|
||||
<span style="float:right;">
|
||||
<span style="float:right;font-size:14px;">{{.MemberCount}} members</span>
|
||||
<br /><span class="rowsmall">{{.LastUpdateTime}}</span>
|
||||
<br><span class="rowsmall">{{.LastUpdateTime}}</span>
|
||||
</span>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
<main id="socialgroups_member_list" class="rowblock member_list" style="position:relative;z-index:50;">
|
||||
{{range .ItemList}}<div class="rowitem passive datarow" style="background-image:url({{.User.Avatar}});background-position:left;background-repeat:no-repeat;background-size:64px;padding-left:78px;{{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="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? Guild Titles? **/}}
|
||||
<br /><span class="rowsmall postCount">{{.PostCount}} posts</span>
|
||||
<br><span class="rowsmall postCount">{{.PostCount}} posts</span>
|
||||
</span>
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
|
@ -21,12 +21,12 @@
|
|||
<main id="forum_topic_list" class="rowblock topic_list" style="position:relative;z-index:50;">
|
||||
{{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}}">
|
||||
<span class="topic_inner_right rowsmall" style="float:right;">
|
||||
<span class="replyCount">{{.PostCount}} replies</span><br />
|
||||
<span class="replyCount">{{.PostCount}} replies</span><br>
|
||||
<span class="lastReplyAt">{{.LastReplyAt}}</span>
|
||||
</span>
|
||||
<span>
|
||||
<a class="rowtopic" href="{{.Link}}">{{.Title}}</a>
|
||||
<br /><a class="rowsmall" href="{{.Creator.Link}}">Starter: {{.Creator.Name}}</a>
|
||||
<br><a class="rowsmall" href="{{.Creator.Link}}">Starter: {{.Creator.Name}}</a>
|
||||
{{if .IsClosed}}<span class="rowsmall topic_status_e topic_status_closed" title="{{lang "status.closed_tooltip"}}"> | 🔒︎{{end}}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div class="rowitem panel_compactrow">
|
||||
<span class="to_left">
|
||||
<span>{{.Action}}</span>
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small title="{{.IP}}">{{.IP}}</small>{{end}}
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br><small title="{{.IP}}">{{.IP}}</small>{{end}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<div class="rowitem"><h1>{{lang "areyousure_head"}}</h1></div>
|
||||
</div>
|
||||
<div class="colstack_item">
|
||||
<div class="rowitem passive rowmsg">{{.Something.Message}}<br /><br />
|
||||
<div class="rowitem passive rowmsg">{{.Something.Message}}<br><br>
|
||||
<a class="username" href="{{.Something.URL}}?s={{.CurrentUser.Session}}">{{lang "areyousure_continue"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<span id="panel_forums_left_box">
|
||||
{{/** TODO: Make sure the forum_active_name class is set and unset when the activity status of this forum is changed **/}}
|
||||
<a data-field="forum_name" data-type="text" class="editable_block forum_name{{if not .Active}} forum_active_name{{end}}">{{.Name}}</a>
|
||||
<br /><span data-field="forum_desc" data-type="text" class="editable_block forum_desc rowsmall">{{.Desc}}</span>
|
||||
<br><span data-field="forum_desc" data-type="text" class="editable_block forum_desc rowsmall">{{.Desc}}</span>
|
||||
</span>
|
||||
<span class="panel_floater">
|
||||
<span data-field="forum_active" data-type="list" class="panel_tag editable_block forum_active forum_active_{{if .Active}}Show" data-value="1{{else}}Hide" data-value="0{{end}}" title="{{lang "panel.forums_hidden"}}"></span>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<div class="rowitem panel_compactrow">
|
||||
<span class="to_left">
|
||||
<span>{{.Action}}</span>
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br /><small title="{{.IP}}">{{.IP}}</small>{{end}}
|
||||
{{if $.CurrentUser.Perms.ViewIPs}}<br><small title="{{.IP}}">{{.IP}}</small>{{end}}
|
||||
</span>
|
||||
<span class="to_right">
|
||||
<span title="{{.DoneAt}}">{{.DoneAt}}</span>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{range .ItemList}}
|
||||
<div class="rowitem editable_parent">
|
||||
<span class="panel_plugin_meta">
|
||||
<a{{if .URL}} href="{{.URL}}" {{end}}class="editable_block" class="panel_upshift">{{.Name}}</a><br />
|
||||
<a{{if .URL}} href="{{.URL}}" {{end}}class="editable_block" class="panel_upshift">{{.Name}}</a><br>
|
||||
<small style="margin-left:2px;">{{lang "panel_plugins_author_prefix"}}{{.Author}}</small>
|
||||
</span>
|
||||
<span class="to_right">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{{range .PrimaryThemes}}
|
||||
<div class="theme_row rowitem editable_parent"{{if .FullImage}} style="background-image:url('/s/{{.FullImage}}');background-position:center;background-size:50%;background-repeat:no-repeat;"{{end}}>
|
||||
<span style="float:left;">
|
||||
<a href="/panel/themes/{{.Name}}" class="editable_block" style="font-size:17px;">{{.FriendlyName}}</a><br />
|
||||
<a href="/panel/themes/{{.Name}}" class="editable_block" style="font-size:17px;">{{.FriendlyName}}</a><br>
|
||||
<small class="panel_theme_author" style="margin-left:2px;">{{lang "panel_themes_author_prefix"}}<a href="//{{.URL}}">{{.Creator}}</a></small>
|
||||
</span>
|
||||
<span class="panel_floater">
|
||||
|
@ -24,7 +24,7 @@
|
|||
{{range .VariantThemes}}
|
||||
<div class="theme_row rowitem editable_parent"{{if .FullImage}} style="background-image:url('/s/{{.FullImage}}');background-position:center;background-size:50%;background-repeat:no-repeat;"{{end}}>
|
||||
<span style="float:left;">
|
||||
<a href="/panel/themes/{{.Name}}" class="editable_block" style="font-size:17px;">{{.FriendlyName}}</a><br />
|
||||
<a href="/panel/themes/{{.Name}}" class="editable_block" style="font-size:17px;">{{.FriendlyName}}</a><br>
|
||||
<small class="panel_theme_author" style="margin-left:2px;">{{lang "panel_themes_author_prefix"}}<a href="//{{.URL}}">{{.Creator}}</a></small>
|
||||
</span>
|
||||
<span class="panel_floater">
|
||||
|
|
Loading…
Reference in New Issue