Skip to content

Commit

Permalink
🦄 refactor: Simplify link array
Browse files Browse the repository at this point in the history
  • Loading branch information
DNA-styx committed Dec 5, 2024
1 parent cc86d4f commit 94e0fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sbpp-windmill-dashboard/assets/navbar_links.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{* Edit this file to add links to the top navbar drop down *}
{* This file will be reset on upgrade so keep a backup *}
{assign var="link_array" value=[
['name' => 'Link 1', 'URL' => 'https://www.google.co.uk'],
['name' => 'Link 2', 'URL' => 'https://www.google.co.uk'],
['name' => 'Link 3', 'URL' => 'https://www.google.co.uk']
['Link 1', 'https://www.google.co.uk'],
['Link 2', 'https://www.google.co.uk'],
['Link 3', 'https://www.google.co.uk']
]}
4 changes: 2 additions & 2 deletions sbpp-windmill-dashboard/core/navbar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@
{foreach from=$link_array item=link_item}
<li class="flex">
<a class="inline-flex items-center justify-between w-full px-2 py-1 text-sm font-semibold transition-colors duration-150 rounded-md hover:bg-gray-100 hover:text-gray-800 dark:hover:bg-gray-800 dark:hover:text-gray-200"
href="{$link_item.URL}">
{$link_item.name}
href="{$link_item.1}">
{$link_item.0}
</a>
</li>
{/foreach}
Expand Down

0 comments on commit 94e0fbb

Please sign in to comment.