diff options
author | anomalous69 <81135357+anomalous69@users.noreply.github.com> | 2021-10-12 17:02:27 +1300 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 65e79e6a743f447f320595dafec530212a568b9d (patch) | |
tree | 2a48657731b3be3a64e6e5c7f50a59e83dd42aca /static | |
parent | aa4ee29c36ebb876afafc9aaf4803cd052206585 (diff) |
Move square brackets out of <a>v0.0.16
Diffstat (limited to 'static')
-rw-r--r-- | static/archive.html | 8 | ||||
-rw-r--r-- | static/manage.html | 14 | ||||
-rw-r--r-- | static/nadmin.html | 8 | ||||
-rw-r--r-- | static/ncatalog.html | 6 | ||||
-rw-r--r-- | static/posts.html | 16 | ||||
-rw-r--r-- | static/top.html | 8 |
6 files changed, 30 insertions, 30 deletions
diff --git a/static/archive.html b/static/archive.html index e5476ea..8420b97 100644 --- a/static/archive.html +++ b/static/archive.html @@ -50,20 +50,20 @@ {{ if mod $i 2 }} <tr class="box-alt"> {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <td><a href="/poparchive?id={{ $e.Id }}&board={{ $board.Name }}">[Pop]</a></td> + <td>[<a href="/poparchive?id={{ $e.Id }}&board={{ $board.Name }}">Pop</a>]</td> {{ end }} <td>{{ short $board.Actor.Outbox $e.Id }}</td> <td style="overflow: hidden; word-wrap: break-word; text-overflow: ellipsis;">{{ shortExcerpt $e }}</td> - <td style="text-align: center;"><a href="/{{ $board.Actor.Name }}/{{ short $board.Actor.Outbox $e.Id }}">[View]</a></td> + <td style="text-align: center;">[<a href="/{{ $board.Actor.Name }}/{{ short $board.Actor.Outbox $e.Id }}">View</a>]</td> </tr> {{ else }} <tr class="box"> {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <td><a href="/poparchive?id={{ $e.Id }}">[Pop]</a></td> + <td>[<a href="/poparchive?id={{ $e.Id }}">Pop</a>]</td> {{ end }} <td>{{ short $board.Actor.Outbox $e.Id }}</td> <td style="overflow: hidden; word-wrap: break-word; text-overflow: ellipsis;">{{ shortExcerpt $e }}</td> - <td style="text-align: center;"><a href="/{{ $board.Actor.Name }}/{{ short $board.Actor.Outbox $e.Id }}">[View]</a></td> + <td style="text-align: center;">[<a href="/{{ $board.Actor.Name }}/{{ short $board.Actor.Outbox $e.Id }}">View</a>]</td> </tr> {{ end }} {{ end }} diff --git a/static/manage.html b/static/manage.html index dc25468..c3d818c 100644 --- a/static/manage.html +++ b/static/manage.html @@ -9,20 +9,20 @@ <!-- <div><a href="/{{ .Key }}/deleteboard?name={{ .Board.Name }}">[Delete Board]</a></div> --> <ul style="display: inline-block; padding: 0;"> {{ if .IsLocal }} - <li style="display: inline-block;"><a href="#following">[ Subscribed ]</a></li> - <li style="display: inline-block;"><a href="#followers">[ Subscribers ]</a></li> + <li style="display: inline-block;">[<a href="#following"> Subscribed </a>]</li> + <li style="display: inline-block;">[<a href="#followers"> Subscribers </a>]</li> {{ end }} - <li style="display: inline-block;"><a href="#reported">[ Reported ]</a></li> + <li style="display: inline-block;">[<a href="#reported"> Reported </a>]</li> </ul> </div> -<a href="/{{ .Board.Name }}">[Return]</a> +[<a href="/{{ .Board.Name }}">Return</a>] {{ $actor := .Board.Actor.Id }} {{ $board := .Board }} {{ $key := .Key }} {{ if .IsLocal }} <div id="following" class="box2" style="margin-bottom: 25px; margin-top: 5px; padding: 12px;"> <h4 style="margin: 0; margin-bottom: 5px;">Following</h4> - {{ if .AutoSubscribe }}<a title="Auto Follow is On" href="/autosubscribe?board={{ .Board.Name }}">[Toggle Auto Follow Off]{{ else }}<a title="Auto Follow is Off" href="/autosubscribe?board={{ .Board.Name }}">[Toggle Auto Follow On]{{ end }}</a> + [{{ if .AutoSubscribe }}<a title="Auto Follow is On" href="/autosubscribe?board={{ .Board.Name }}">Toggle Auto Follow Off{{ else }}<a title="Auto Follow is Off" href="/autosubscribe?board={{ .Board.Name }}">Toggle Auto Follow On{{ end }}</a>] <form id="follow-form" action="/{{ .Key }}/{{ .Board.Name }}/follow" method="post" enctype="application/x-www-form-urlencoded" style="margin-top: 5px;"> <input id="follow" name="follow" style="margin-bottom: 5px;" size="35" placeholder="https://fchan.xyz/g"></input> <input type="submit" value="Follow"><br> @@ -31,7 +31,7 @@ <div style="margin-bottom: 12px; color: grey;">also https://fchan.xyz/g/following or https://fchan.xyz/g/followers</div> <ul style="display: inline-block; padding: 0; margin: 0; list-style-type: none;"> {{ range .Following }} - <li><a href="/{{ $key }}/{{ $board.Name }}/follow?follow={{ . }}&actor={{ $actor }}">[Unsubscribe]</a><a href="{{ . }}">{{ . }}</a></li> + <li>[<a href="/{{ $key }}/{{ $board.Name }}/follow?follow={{ . }}&actor={{ $actor }}">Unsubscribe</a>]<a href="{{ . }}">{{ . }}</a></li> {{ end }} </ul> </div> @@ -51,7 +51,7 @@ <ul style="display: inline-block; padding: 0; margin: 0; list-style-type: none;"> {{ $domain := .Domain }} {{ range .Reported }} - <li><a id="rpost" post="{{ .ID }}" href=""></a> - <b>{{ .Count }}</b><span> "{{ .Reason }}" </span> <a href="/delete?id={{ .ID }}&board={{ $board.Name }}&manage=t">[Remove Post]</a> <a href="/deleteattach?id={{ .ID }}&board={{ $board.Name }}&manage=t">[Remove Attachment]</a> <a href="/report?id={{ .ID }}&close=1&board={{ $board.Name }}">[Close]</a></li> + <li><a id="rpost" post="{{ .ID }}" href=""></a> - <b>{{ .Count }}</b><span> "{{ .Reason }}" </span> [<a href="/delete?id={{ .ID }}&board={{ $board.Name }}&manage=t">Remove Post</a>] [<a href="/deleteattach?id={{ .ID }}&board={{ $board.Name }}&manage=t">Remove Attachment</a>] [<a href="/report?id={{ .ID }}&close=1&board={{ $board.Name }}">Close</a>]</li> {{ end }} </ul> </div> diff --git a/static/nadmin.html b/static/nadmin.html index e8fbc36..8ee4800 100644 --- a/static/nadmin.html +++ b/static/nadmin.html @@ -18,8 +18,8 @@ </select> </form> <ul style="display: inline-block; padding: 0;"> - <li style="display: inline-block;"><a href="#news">[Create News]</a></li> - <li style="display: inline-block;"><a href="#regex">[Post Blacklist]</a></li> + <li style="display: inline-block;">[<a href="#news">Create News</a>]</li> + <li style="display: inline-block;">[<a href="#regex">Post Blacklist</a>]</li> <!-- <li style="display: inline-block;"><a href="javascript:show('followers')">Followers</a></li> --> <!-- <li style="display: inline-block;"><a href="#reported">Reported</a></li> --> </ul> @@ -36,7 +36,7 @@ {{ $actor := .Actor }} {{ $key := .Key }} {{ range .Following }} - <li><a href="/{{ $key }}/follow?follow={{ . }}&actor={{ $actor }}">[Unfollow]</a><a href="{{ . }}">{{ . }}</a></li> + <li>[<a href="/{{ $key }}/follow?follow={{ . }}&actor={{ $actor }}">Unfollow</a>]<a href="{{ . }}">{{ . }}</a></li> {{ end }} </ul> </div> @@ -71,7 +71,7 @@ {{ if .PostBlacklist }} <ul style="display: inline-block; padding: 0; margin: 0; margin-top: 25px; list-style-type: none;"> {{ range .PostBlacklist }} - <li>{{ .Regex }} <a href="/blacklist?remove={{ .Id }}">[remove]</a></li> + <li>{{ .Regex }} [<a href="/blacklist?remove={{ .Id }}">remove</a>]</li> {{ end }} </ul> {{ end }} diff --git a/static/ncatalog.html b/static/ncatalog.html index 6a830d0..8039c5b 100644 --- a/static/ncatalog.html +++ b/static/ncatalog.html @@ -33,12 +33,12 @@ {{ range .Posts }} <div style="overflow: hidden; vertical-align: top; padding-right: 24px; padding-bottom: 24px; display: inline-block; width: 180px; max-height: 320px; margin-bottom: 10px;"> {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Post]</a> + [<a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">Delete Post</a>] {{ end }} {{ if .Attachment }} {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Attachment]</a> - <a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a> + [<a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">Delete Attachment</a>] + [<a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">Mark Sensitive</a>] {{ end }} <div id="hide-{{ .Id }}" style="display: none;">[Hide]</div> <div id="sensitive-{{ .Id }}" style="display: none;"> diff --git a/static/posts.html b/static/posts.html index 76db0cf..936ed58 100644 --- a/static/posts.html +++ b/static/posts.html @@ -10,13 +10,13 @@ <div style="overflow: auto;"> <div id="{{ short $board.Actor.Outbox .Id }}" style="overflow: visible; margin-bottom: 12px;"> {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Post]</a> + [<a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">Delete Post</a>] {{ end }} {{ if .Attachment }} {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <a href="/banmedia?id={{ .Id }}&board={{ $board.Actor.Name }}">[Ban Media]</a> - <a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Attachment]</a> - <a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a> + [<a href="/banmedia?id={{ .Id }}&board={{ $board.Actor.Name }}">Ban Media</a>] + [<a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">Delete Attachment</a>] + [<a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">Mark Sensitive</a>] {{ end }} <span style="display: block;">File: <a id="{{ .Id }}-img" href="{{ proxy (index .Attachment 0).Href}}">{{ shortImg (index .Attachment 0).Name }}</a><span id="{{ .Id }}-size"> ({{ convertSize (index .Attachment 0).Size }})</span></span> <div id="hide-{{ .Id }}" style="display: none;">[Hide]</div> @@ -63,13 +63,13 @@ <div style="float: left; display: block; margin-right: 5px;">>></div> <div class="post" style="overflow: auto; padding: 5px; margin-bottom: 2px;"> {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Post]</a> + [<a href="/delete?id={{ .Id }}&board={{ $board.Actor.Name }}">Delete Post</a>] {{ end }} {{ if .Attachment }} {{ if eq $board.ModCred $board.Domain $board.Actor.Id }} - <a href="/banmedia?id={{ .Id }}&board={{ $board.Actor.Name }}">[Ban Media]</a> - <a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">[Delete Attachment]</a> - <a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">[Mark Sensitive]</a> + [<a href="/banmedia?id={{ .Id }}&board={{ $board.Actor.Name }}">Ban Media</a>] + [<a href="/deleteattach?id={{ .Id }}&board={{ $board.Actor.Name }}">Delete Attachment</a>] + [<a href="/marksensitive?id={{ .Id }}&board={{ $board.Actor.Name }}">Mark Sensitive</a>] {{ end }} <span style="display: block;">File <a id="{{ .Id }}-img" href="{{ proxy (index .Attachment 0).Href}}">{{ shortImg (index .Attachment 0).Name }}</a> <span id="{{ .Id }}-size">({{ convertSize (index .Attachment 0).Size }})</span></span> <div id="hide-{{ .Id }}" style="display: none;">[Hide]</div> diff --git a/static/top.html b/static/top.html index 0e265d8..8a1af95 100644 --- a/static/top.html +++ b/static/top.html @@ -5,9 +5,9 @@ {{ $len := len .Posts }} {{ if eq $len 0 }} {{ if .Board.InReplyTo }} - <h3 id="newpostbtn" state="0" style="display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Post a Reply]</a></h3> + <h3 id="newpostbtn" state="0" style="display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Post a Reply</a>]</h3> {{ else }} - <h3 id="newpostbtn" state="0" style="display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Start a New Thread]</a></h3> + <h3 id="newpostbtn" state="0" style="display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Start a New Thread</a>]</h3> {{ end }} <!-- end if inreplyto--> <div id="newpost"> <form onsubmit="sessionStorage.setItem('element-closed-reply', true)" id="new-post" action="/post" method="post" enctype="multipart/form-data"> @@ -61,9 +61,9 @@ {{ if eq (index .Posts 0).Type "Note" }} {{ if .Board.InReplyTo }} - <h3 id="newpostbtn" state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Post a Reply]</a></h3> + <h3 id="newpostbtn" state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Post a Reply</a>]</h3> {{ else }} - <h3 id="newpostbtn" state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;"><a href="javascript:startNewPost()">[Start a New Thread]</a></h3> + <h3 id="newpostbtn" state="0" style="text-align: center; margin-top: 80px; display: none; margin-bottom:100px;">[<a href="javascript:startNewPost()">Start a New Thread</a>]</h3> {{ end }} <!-- end if inreplyto--> {{ $len := len .Posts }} <div id="newpost"> |