File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414 <p class= " is-size-7 has-text-grey has-text-weight-normal" >{{ Truncate .Bookmark.URL 100 }}</p>
1515 </h4>
1616 <p>{{ .Bookmark.Notes }}</p>
17+ {{ $uid := 0 }}
18+ {{ if .User }}{{ $uid = .User.ID }}{{ end }}
1719 {{ if .Bookmark.Tags }}
18- {{ $uid := 0 }}
19- {{ if .User }}{{ $uid = .User.ID }}{{ end }}
2020 {{ range .Bookmark.Tags }}
2121 <a href= " {{ if ne $uid $.Bookmark.UserID }}{{ BaseURL " /bookmarks" }}{{ else }}{{ BaseURL " /my_bookmarks" }}{{ end }}?tag={{ .Text }}" ><span class= " tag is-info" >{{ .Text }}</span></a>
2222 {{ end }}
2323 {{ end }}
24- {{ block " snapshots" KVData " Snapshots" .Bookmark.Snapshots " IsOwn" (eq .Bookmark.UserID .User.ID ) }}{{ end }}
24+ {{ block " snapshots" KVData " Snapshots" .Bookmark.Snapshots " IsOwn" (eq .Bookmark.UserID $uid ) }}{{ end }}
2525 {{ .Bookmark.CreatedAt | ToDate }} {{ if .Bookmark.Public }}Public{{ else }}Private{{ end }}
2626 {{ if .User }}
2727 {{ if eq .User.ID .Bookmark.UserID }}
You can’t perform that action at this time.
0 commit comments