Skip to content

Commit

Permalink
Display firmware name with extension consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
floatplane committed Jul 16, 2024
1 parent f09ffcc commit 4ebbfc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/webserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def render(path, context = {})
login_password: "abc123",
})
when "/upgrade" then res.body = render("upgrade", {
firmware: 'mitsuqtt-WEMOS_D1_Mini-SPIFFS-2024.07.10-2bc2afc.bin'
firmware: 'mitsuqtt-WEMOS_D1_Mini-SPIFFS-2024.07.10-2bc2afc'
})
when "/upload" then res.body = render("upload")
when "/wifi" then res.body = render("wifi", {access_point: "the_ssid", hostname: "the_hostname", password: "abc123"})
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/en-us/views/status.mst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</tr>
<tr>
<td class="bold">Firmware</td>
<td class="left wrap-text"><code>{{progname}}</code></td>
<td class="left wrap-text"><code>{{progname}}.bin</code></td>
</tr>
<tr>
<td class="bold">Build date</td>
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/en-us/views/upgrade.mst
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
</div>
<div id="selectedFile" style="display:none">
<div><b>Current firmware:</b></div>
<div style="margin-bottom: 8px;">{{firmware}}</div>
<div style="margin-bottom: 8px;"><code>{{firmware}}.bin</code></div>
<div><b>New firmware:</b></div>
<div id="selectedFileName">No file selected</div>
<div><code id="selectedFileName">No file selected</code></div>
</div>
</div>
<br>
Expand Down

0 comments on commit 4ebbfc8

Please sign in to comment.