Skip to content

Commit

Permalink
Release 1.2.2 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
aceberg committed Dec 24, 2023
1 parent 8ed8e35 commit 8f45697
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.2.2] - 2023-12-24
### Added
- Horizontal layout for tabs

## [1.2.1] - 2023-12-04
### Fixed
- Memory leak fix [Issue #11](https://github.com/aceberg/miniboard/issues/11)
Expand Down
2 changes: 2 additions & 0 deletions configs/board.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ tabs:
name: Tab1 # Tab name
needs_auth: false
refresh: "" # Refresh Webpage (seconds). Leave blank for system-wide config:WebRefresh to work
horiz: false
panels: # Panels on this tab
0: Search # Place ID (integer):Panel ID (string)
1: Panel2 # Use Place ID to sort Panels on Tab
1:
name: Tab2
needs_auth: true # If true and auth is enabled, only logged in user will be able to view this tab
refresh: "240"
horiz: true # Horizontal layout if true
panels:
0: Search
panels:
Expand Down
2 changes: 1 addition & 1 deletion internal/web/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ range .Panels }}
{{ if $.Horiz }}
<a href="/panel_edit/?edit={{ .Name }}"><h5>{{ .Name }}</h5></a>
<div class="gap-2 hstack flex-wrap">
<div class="gap-3 hstack flex-wrap">
{{ else }}
<div class="col-md-auto">
<a class="text-center" href="/panel_edit/?edit={{ .Name }}"><h5>{{ .Name }}</h5></a>
Expand Down
2 changes: 1 addition & 1 deletion internal/web/templates/tab-edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ <h4>Edit tab {{ .Name }}</h4>
</div>
<br>
<form action="/tab_edit/" method="post" class="input-group">
<input name="tab" type="hidden" value="{{ $key }}">
<span class="input-group-text">Needs auth to view</span>
<input name="tab" type="hidden" value="{{ $key }}">
<select name="action" class="form-select">
{{ if .Auth }}
<option selected>yes</option>
Expand Down
2 changes: 1 addition & 1 deletion internal/web/templates/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=1.2.1
VERSION=1.2.2

0 comments on commit 8f45697

Please sign in to comment.