version in footer

This commit is contained in:
aceberg 2023-01-06 21:46:40 +07:00
parent 70cb8d0e6e
commit 60ebd860b2
5 changed files with 28 additions and 2 deletions

View file

@ -16,6 +16,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get version tag from env file
uses: c-py/action-dotenv-to-setenv@v2
with:
env-file: .version
- name: Echo version
run: echo ${{ env.VERSION }}
- name: Build and Push Docker Image to docker.io
uses: mr-smithers-excellent/docker-build-push@v5
with:

View file

@ -1 +0,0 @@
VERSION=0.8.3

1
.version Symbolic link
View file

@ -0,0 +1 @@
internal/web/templates/footer.html

View file

@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [v0.9.1]
### Added
- Scan host for open ports
### Changed
- Small fixes
## [v0.8.3] - 2023-01-03
### Added
- Clear table button (Config page)

View file

@ -41,7 +41,13 @@
</tr>
<tr>
<td>Ignore IP</td>
<td><input name="ignoreip" type="text" class="form-control" value="{{ .Config.IgnoreIP }}"></td>
<td>
<select name="ignoreip" class="form-select">
<option selected value="{{ .Config.IgnoreIP }}">{{ .Config.IgnoreIP }}</option>
<option value="yes">yes</option>
<option value="no">no</option>
</select>
</td>
</tr>
<tr>
<td><button type="submit" class="btn btn-primary">Save</button></td>

View file

@ -1,4 +1,9 @@
{{ define "footer"}}
<div class="fixed-bottom">
<h6 style="font-size: 10px;">
VERSION=0.9.1
</h6>
</div>
</body>
</html>
{{ end }}