summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2021-05-03 20:51:29 +0700
committerDaniil Baturin <daniil@baturin.org>2021-05-03 20:51:29 +0700
commitc617e5e84bbab2a4ed947c61a5f1defb985499a0 (patch)
treece6b005bdb56f029e609e2c91c00ac589b9f4ac3 /scripts
parent9cf78e42ef731ba85f7e58c7f640148354899367 (diff)
downloadcommunity.vyos.net-c617e5e84bbab2a4ed947c61a5f1defb985499a0.tar.gz
community.vyos.net-c617e5e84bbab2a4ed947c61a5f1defb985499a0.zip
Add "here" links next to snapshot names.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/list-snapshots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/list-snapshots.py b/scripts/list-snapshots.py
index b3bd98e..4079f2c 100755
--- a/scripts/list-snapshots.py
+++ b/scripts/list-snapshots.py
@@ -67,8 +67,8 @@ for name in snapshot_names:
snapshots.sort(reverse=True, key=cmp_to_key(lambda l, r: compare(l["name"], r["name"])))
tmpl = jinja2.Template("""
-{% for s in snapshots %}
- <h3 id="{{s.name}}">{{s.name}}</h3>
+{% for s in snapshots | natural_sort %}
+ <a href="#{{s.name}}">#</a><h3 id="{{s.name}}">{{s.name}}</h3>
<ul>
{% for f in s.files %}
<li><a href="{{f.link}}">{{f.name}} ({{f.platform}})</a></li>