Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
feat(ui): clicking on workspace widget tag filters by that tag
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Aug 2, 2023
1 parent 18217ce commit a7ce9a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions internal/http/html/livereload.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package html

import (
"io"
"log"
"path/filepath"

"github.com/fsnotify/fsnotify"
Expand Down Expand Up @@ -40,8 +42,8 @@ func startLiveReloadServer(logger logr.Logger) error {
srv := lrserver.New(lrserver.DefaultName, lrserver.DefaultPort)

// suppress noisy printing to stdout/stderr
// srv.SetStatusLog(log.New(io.Discard, "", 0))
// srv.SetErrorLog(log.New(io.Discard, "", 0))
srv.SetStatusLog(log.New(io.Discard, "", 0))
srv.SetErrorLog(log.New(io.Discard, "", 0))

go srv.ListenAndServe()
go func() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
<div>
<div class="flex gap-2 items-center">
{{ template "identifier" . }}
{{ range .Tags }}
<span class="tag">{{ . }}</span>
{{ end }}
<form action="{{ workspacesPath .Organization }}" method="GET">
{{ range .Tags }}
<button class="tag" name="search[tags]" value="{{ . }}">{{ . }}</button>
{{ end }}
</form>
</div>
</div>
</div>
Expand Down

0 comments on commit a7ce9a8

Please sign in to comment.