~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH links] Add a note icon next to the note title for easy indication of the item type.

Details
Message ID
<20260106130043.9484-1-peter@netlandish.com>
Sender timestamp
1767682840
DKIM signature
missing
Download raw message
Patch: +11 -0
Implements: https://todo.code.netlandish.com/~netlandish/links/128
Changelog-added: Note icon next to note type in listing for easier
  indication of object type.
---
 core/routes.go           |  1 +
 templates/link_list.html | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/core/routes.go b/core/routes.go
index f34443b..e2eb8f2 100644
--- a/core/routes.go
+++ b/core/routes.go
@@ -2343,6 +2343,7 @@ func (s *Service) OrgLinksList(c echo.Context) error {
	pd.Data["saved"] = lt.Translate("saved")
	pd.Data["public"] = lt.Translate("Public")
	pd.Data["private"] = lt.Translate("Private")
	pd.Data["note"] = lt.Translate("Note")
	pd.Data["edit"] = lt.Translate("Edit")
	pd.Data["delete"] = lt.Translate("Delete")
	pd.Data["next"] = lt.Translate("Next")
diff --git a/templates/link_list.html b/templates/link_list.html
index b67432e..0676206 100644
--- a/templates/link_list.html
+++ b/templates/link_list.html
@@ -118,6 +118,16 @@
                </span>
              {{end}}
          {{end}}
          {{if $.isOrgLink}}{{if eq .Type "NOTE"}}
          <span data-tooltip="{{$.pd.Data.note}}">
              <svg class="mr-1" xmlns="http://www.w3.org/2000/svg"
                      fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width:20px"
                      aria-label="{{$.pd.Data.note}}">
                  <path stroke-linecap="round" stroke-linejoin="round"
                      d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" />
              </svg>
          </span>
          {{end}}{{end}}
          <h3 class="is-marginless mr-1">
            <a class="text-dark" href="{{.URL}}" rel="nofollow" target="_blank">{{truncate .Title 60}}</a>
	      {{ if not $.hideSaveCount }}{{ if showCounter . }}<a href="{{ if $.isPopular }}{{ reverse "core:bookmarks" .Hash }}{{ else }}{{ reverse "core:bookmarks" .BaseURLHash }}{{ end }}" class="button outline primary tag tag-popular is-small">{{if $.isPopular}}{{ .Counter }}{{ else }}{{ .BaseURLCounter }}{{ end }}</a>{{ end }}{{ end }}
-- 
2.52.0
Details
Message ID
<DFHJ67NLEY5W.ZLTX8UGNMACD@netlandish.com>
In-Reply-To
<20260106130043.9484-1-peter@netlandish.com> (view parent)
Sender timestamp
1767683533
DKIM signature
missing
Download raw message
Applied.

To git@git.code.netlandish.com:~netlandish/links
   e7d2ee2..e35dd79  master -> master
Reply to thread Export thread (mbox)