48 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
<!DOCTYPE html>
 | 
						|
<html lang="en-GB">
 | 
						|
    <head>
 | 
						|
        <title>Willow</title>
 | 
						|
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | 
						|
        <meta name="title" content="Willow">
 | 
						|
        <meta name="description" content="Forge-agnostic software release tracker">
 | 
						|
 | 
						|
        <!-- Indicate that we support both light and dark mode -->
 | 
						|
        <meta name="color-scheme" content="dark light">
 | 
						|
 | 
						|
        <!-- Preload CSS reset -->
 | 
						|
        <link rel="preload" href="/static/reset.css" as="style" />
 | 
						|
        <link rel="stylesheet" href="/static/reset.css" />
 | 
						|
 | 
						|
        <!-- Preload CSS styles -->
 | 
						|
        <link rel="preload" href="/static/styles.css" as="style" />
 | 
						|
        <link rel="stylesheet" href="/static/styles.css" />
 | 
						|
    </head>
 | 
						|
    <body>
 | 
						|
        <h1>Willow</h1>
 | 
						|
        <p><a href="/new">Track a new project</a></p>
 | 
						|
        <div class="projects">
 | 
						|
        {{- range . -}}
 | 
						|
            <div class="project">
 | 
						|
                <h2><a href="{{ .URL }}">{{ .Name }}</a>   <span style="font-size: 12px;"><a href="/new?action=delete&url={{ .URL }}" class="normal-link">Delete?</a></span></h2>
 | 
						|
                <p>Currently running {{ .Running }}.</p>
 | 
						|
                {{- if ne .Running (index .Releases 0).Tag -}}
 | 
						|
                <p>New release available: <a href="{{ (index .Releases 0).URL }}" class="normal-link">{{ (index .Releases 0).Tag }}</a>. <a href="/new?action=update&url={{ .URL }}&forge={{ .Forge }}&name={{ .Name }}" class="normal-link">Update?</a></p>
 | 
						|
                <p>
 | 
						|
                    <details>
 | 
						|
                        <summary>Expand release notes</summary>
 | 
						|
                        {{- if eq .Forge "github" "gitea" "forgejo" -}}
 | 
						|
                            {{- (index .Releases 0).Content -}}
 | 
						|
                        {{- else -}}
 | 
						|
                            <pre>
 | 
						|
                            {{- (index .Releases 0).Content -}}
 | 
						|
                            </pre>
 | 
						|
                        {{- end -}}
 | 
						|
                    </details>
 | 
						|
                </p>
 | 
						|
                {{- end -}}
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
        {{- end -}}
 | 
						|
    </body>
 | 
						|
</html>
 |