Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ the Arch Linux package statistics website.

# Dependencies
- [just](https://github.com/casey/just)
- [go](https://go.dev/)
- [pnpm](https://pnpm.io/)

## Optional
- [air](https://github.com/air-verse/air)

# Setup
1. Run `just init` to install dependencies, build and generate fixtures
2. Run `just run` to start the application locally
3. Run `just dev` to watch for template and Go changes and rebuild automatically (requires [air](https://github.com/air-verse/air))
4. Run `just` for a full list of available commands
2. Run `just run` to start the application locally or `just dev` to watch for template and Go changes and rebuild automatically (requires [air](https://github.com/air-verse/air))
3. Run `just` for a full list of available commands

# Contributions
For contributing you'll probably want to test your changes at least once
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/compare/templates.templ
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

templ CompareContent(names []string, excessNames []string, data chartdata.Data) {
<h1 class="mb-3">Compare packages</h1>
<h1 class="mb-3">Package History</h1>
<p class="mb-3">Comparing: <strong>{ strings.Join(names, ", ") }</strong></p>
if len(excessNames) > 0 {
<div role="alert" class="alert alert-info mt-3">
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/packagepage/templates.templ
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ templ PackagesContent(list *packages.PackagePopularityList, query string, curren
class="d-inline-flex btn btn-primary"
href={ templ.SafeURL("/compare/packages/" + compareNames(selectedPackages)) }
>
Compare
View History
</a>
} else {
<button class="d-inline-flex btn btn-primary" disabled>Compare</button>
Expand Down