Skip to content

Commit

Permalink
Org: Sort side panel links alphabetically
Browse files Browse the repository at this point in the history
TYPE: Feature
LINK: OGC-2008
  • Loading branch information
Daverball authored Jan 16, 2025
1 parent 9ded9be commit 10c9a81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/onegov/org/templates/macros.pt
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@
<div class="side-panel links-panel" tal:condition="sidepanel_links|False">
<h2 i18n:translate>Links</h2>
<ul class="panel-links">
<li tal:repeat="sl sidepanel_links">
<li tal:repeat="sl python: sorted(sidepanel_links, key=lambda sl: sl[0] if sl[0] else sl[1])">
<a class="list-link" title="${sl[0] if sl[0] else sl[1]}" href="${sl[1]}">
<span class="list-title">${sl[0] if sl[0] else sl[1]}</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/onegov/town6/templates/macros.pt
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@
<div class="side-panel links-panel" tal:condition="sidepanel_links|False">
<h3 i18n:translate>Links</h3>
<ul class="more-list">
<li tal:repeat="sl sidepanel_links">
<li tal:repeat="sl python: sorted(sidepanel_links, key=lambda sl: sl[0] if sl[0] else sl[1])">
<a class="list-link" title="${sl[0] if sl[0] else sl[1]}" href="${sl[1]}">
<i class="fa fa-link" aria-hidden="true"></i>
<span class="list-title">${sl[0] if sl[0] else sl[1]}</span>
Expand Down

0 comments on commit 10c9a81

Please sign in to comment.