~netlandish/links-dev

links: In link or note detail page, if the user viewing the page is the link/note owner, have tags link to their home feed versus the recent feed. v1 APPLIED

Peter Sanchez: 1
 In link or note detail page, if the user viewing the page is the link/note owner, have tags link to their home feed versus the recent feed.

 1 files changed, 4 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.code.netlandish.com/~netlandish/links-dev/patches/213/mbox | git am -3
Learn more about email & git

[PATCH links] In link or note detail page, if the user viewing the page is the link/note owner, have tags link to their home feed versus the recent feed. Export this patch

Implements: https://todo.code.netlandish.com/~netlandish/links/124
Changelog-updated: Detail views for note/link will use the home feed for
 tag linking when it's the note/link owner.
---
 templates/link_detail.html | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/link_detail.html b/templates/link_detail.html
index 23bdf12..cae7a7c 100644
--- a/templates/link_detail.html
+++ b/templates/link_detail.html
@@ -36,8 +36,12 @@
  <p>{{.pd.Data.tags}}:</p>
  <div class="link-tag">
    {{range .link.Tags}}
    {{if eq $.link.UserID $.currentUserID}}
    <a class="link-tag__item" href="{{reverse "core:home_link_list"}}?tag={{.Slug}}">{{.Name}}</a>
    {{else}}
    <a class="link-tag__item" href="{{reverse "core:recent_link_list"}}?tag={{.Slug}}">{{.Name}}</a>
    {{end}}
    {{end}}
  </div>
  {{end}}
  {{if eq .link.UserID .currentUserID}}
-- 
2.52.0
Applied.

To git@git.code.netlandish.com:~netlandish/links
   5fabccb..d81584e  master -> master