Forge-agnostic software release tracker (WIP)
0

Configure Feed

Select the types of activity you want to include in your feed.

Don't output willow logotype as a link on the Dashboard

Signed-off-by: Adrian Simmons <adrinux@perlucida.co.uk>

Adrian Simmons (Oct 4, 2024, 10:39 AM +0100) 41ae3aaa 5829a8e2

+8 -6
+1 -1
ws/static/dashboard.html.tmpl
··· 1 1 {{- template "head" }} 2 - {{- template "header" }} 2 + {{- template "header" .IsDashboard }} 3 3 <main> 4 4 <div class="wrapper two_column"> 5 5 <div class="projects">
+1 -1
ws/static/header.html.tmpl
··· 1 1 {{- define "header" }} 2 2 <header> 3 3 <div class="wrapper"> 4 - <h1><a href="/">Willow</a></h1> 4 + <h1>{{ if eq . true }}Willow{{ else }}<a href="/">Willow</a>{{ end }}</h1> 5 5 <nav> 6 6 <a href="/new">Track a new project</a> 7 7 <a href="/logout">Log out</a>
+6 -4
ws/ws.go
··· 53 53 } 54 54 55 55 data := struct { 56 - Version string 57 - Projects []project.Project 56 + Version string 57 + Projects []project.Project 58 + IsDashboard bool 58 59 }{ 59 - Version: *h.Version, 60 - Projects: projectsWithReleases, 60 + Version: *h.Version, 61 + Projects: projectsWithReleases, 62 + IsDashboard: true, 61 63 } 62 64 63 65 tmpl := template.Must(template.ParseFS(fs, "static/dashboard.html.tmpl", "static/head.html.tmpl", "static/header.html.tmpl", "static/footer.html.tmpl"))