diff options
author | r <r@freesoftwareextremist.com> | 2019-12-29 11:32:24 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-29 11:32:24 +0000 |
commit | 9e556721c507f5cfbafa32afbfa80b70c6f0eca1 (patch) | |
tree | 20f00fa29a6425279359b34e6613f60d5fa315f6 /templates | |
parent | ede1bb42758d31e2537ba8545b3a403fc94f6cdb (diff) | |
download | bloat-9e556721c507f5cfbafa32afbfa80b70c6f0eca1.tar.gz bloat-9e556721c507f5cfbafa32afbfa80b70c6f0eca1.zip |
Add default settings
Diffstat (limited to 'templates')
-rw-r--r-- | templates/settings.tmpl | 4 | ||||
-rw-r--r-- | templates/status.tmpl | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/settings.tmpl b/templates/settings.tmpl index e2fd778..df04cb1 100644 --- a/templates/settings.tmpl +++ b/templates/settings.tmpl @@ -16,6 +16,10 @@ <input id="copy-scope" name="copy_scope" type="checkbox" value="true" {{if .Settings.CopyScope}}checked{{end}}> <label for="copy-scope"> Copy scope when replying </label> </div> + <div class="settings-form-field"> + <input id="thread-tab" name="thread_in_new_tab" type="checkbox" value="true" {{if .Settings.ThreadInNewTab}}checked{{end}}> + <label for="thread-tab"> Open threads in new tab from timeline </label> + </div> <button type="submit"> Save </button> </form> diff --git a/templates/status.tmpl b/templates/status.tmpl index 4e975ad..4c94062 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -90,7 +90,7 @@ <a class="status-you" href="/thread/{{.ID}}?reply=true#status-{{.ID}}" title="reply"> <i class="fa fa-reply"></i> </a> - <a class="status-action-count" href="/thread/{{.ID}}#status-{{.ID}}"> + <a class="status-action-count" href="/thread/{{.ID}}#status-{{.ID}}" {{if .ThreadInNewTab}}target="_blank"{{end}}> <span> {{DisplayInteractionCount .RepliesCount}} </span> </a> </div> @@ -129,7 +129,7 @@ </a> </div> <div class="status-action"> - <a class="status-time" href="/thread/{{.ID}}#status-{{.ID}}"> + <a class="status-time" href="/thread/{{.ID}}#status-{{.ID}}" {{if .ThreadInNewTab}}target="_blank"{{end}}> <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{.CreatedAt}}"> {{TimeSince .CreatedAt}} </time> </a> </div> |