Commit 5a826ad
authored
Support website links in client list and fix template variable shadowing (#418)
## Overview
This PR is a proposal to add a website link to the client list page to
support linking the new Valkey GLIDE website.
It also fixes a bug in the template file.
## Issue
The client page only display repo links and does not support website
link.
### Adding Website Links
The template now displays a link to the client's website, if one is
provided in the client's data file. This is handled by conditionally
rendering the link only when a non-empty website URL is available.
Here's what the python section looks like:
<img width="1389" height="611" alt="image"
src="https://github.com/user-attachments/assets/12a4ada6-eb60-4254-9002-c1291090abdf"
/>
### Fixes Variable Shadowing
Resolves an issue where a `client` variable was being shadowed within a
loop, which could lead to unpredictable behavior. The shadowing variable
has been renamed to `first_client`.
### Related issues
#416
---------
Signed-off-by: Alex Le <[email protected]>1 parent 50b85ed commit 5a826ad
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
0 commit comments