diff options
author | nutzer <you@domain.com> | 2017-01-23 23:36:45 +0100 |
---|---|---|
committer | nutzer <you@domain.com> | 2017-01-23 23:36:45 +0100 |
commit | 22d05000b93d331cf4b6fe81c19a2e0f45c6bd03 (patch) | |
tree | fcb69bfd5d9d950d0935ffb765ac9ccd3cae55e1 | |
parent | ee7f3c6f612fbc9bef640aa17d41a4a83b091c81 (diff) |
fix "n/nd"->"nd" in info-links to wiki
fix "/"->"-" for imagenames
-rw-r--r-- | _plugins/firmwares.rb | 2 | ||||
-rw-r--r-- | firmware.html | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/_plugins/firmwares.rb b/_plugins/firmwares.rb index b7916f4..6d9133c 100644 --- a/_plugins/firmwares.rb +++ b/_plugins/firmwares.rb @@ -158,8 +158,6 @@ GROUPS = { "TL-WR940N/ND", "TL-WR941N/ND", ], - #FIXME: replace / (as in TL-WA701N/ND) with -, thereby fixing the Images and Info OpenWRT Wiki Links - #FIXME: replace tl-wr1043n-nd with tl-wr1043nd , thereby fixing the OpenWRT Wiki Links, Images works already! extract_rev: lambda { |model, suffix| /^-(.+?)(?:-sysupgrade)?\.bin$/.match(suffix)[1] }, }, "Ubiquiti" => { diff --git a/firmware.html b/firmware.html index b71924a..a53225d 100644 --- a/firmware.html +++ b/firmware.html @@ -84,12 +84,12 @@ layout: base <tbody> {% for model in groups[1] %} <tr> - <td class="router" style="background-image:url(images/models/{{ groups[0] | downcase | replace: ' ','-' }}-{{ model[0] | downcase | replace: ' ','-' }}_100x60.png)"> + <td class="router" style="background-image:url(images/models/{{ groups[0] | downcase | replace: ' ','-' }}-{{ model[0] | downcase | replace: ' ','-' | replace: '/','-' }}_100x60.png)"> </td> <td> <a name="{{ groups[0] }}_{{ model[0] }}"></a> <strong>{{ model[0] }}</strong> - <br><a class="infolink" href="https://wiki.openwrt.org/toh/{{ groups[0] | slugify: 'pretty' }}/{{ model[0] | slugify: 'pretty' }}" target="_blank" title="OpenWrt Wiki">→ info</a> + <br><a class="infolink" href="https://wiki.openwrt.org/toh/{{ groups[0] | slugify: 'pretty' }}/{{ model[0] | slugify: 'pretty' | replace: '/','-' | replace: 'N-ND','ND' }}" target="_blank" title="OpenWrt Wiki">→ info</a> </td> <td> {% for fw in model[1] %} |