mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 22:08:45 +00:00
Added pin\unpin statuses; Status ID in code tag
This commit is contained in:
parent
9a6e1324d5
commit
4df1f096be
4 changed files with 48 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
</a>
|
||||
<div class="more-container">
|
||||
<div class="remote-link">
|
||||
{{if .IDNumbers}}#{{index .IDNumbers .ID}}{{end}} {{.Visibility}} {{.ID}}
|
||||
{{if .IDNumbers}}#{{index .IDNumbers .ID}}{{end}} {{.Visibility}} <code title="Status ID">{{.ID}}</code>
|
||||
</div>
|
||||
<div class="more-content">
|
||||
<a class="more-link" href="{{.URL}}" target="_blank">
|
||||
|
@ -67,6 +67,12 @@
|
|||
</form>
|
||||
{{end}}
|
||||
{{if eq $.Ctx.UserID .Account.ID}}
|
||||
{{$pin := "pin"}} {{if .Pinned}} {{$pin = "unpin"}} {{end}}
|
||||
<form action="/{{$pin}}/{{.ID}}" method="post" target="_self">
|
||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
||||
<input type="submit" value="{{$pin}}" class="btn-link more-link">
|
||||
</form>
|
||||
<form action="/delete/{{.ID}}" method="post" target="_self">
|
||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue