diff --git a/internal/html/repo.templ b/internal/html/repo.templ index 8f183c6119dc904345b11f5445ece82b7289b066..a25475a5c18336b71828d5305e93e3cda2888dbe 100644 --- a/internal/html/repo.templ +++ b/internal/html/repo.templ @@ -3,10 +3,13 @@ import "fmt" type RepoHeaderComponentContext struct { + Name string + Name string + Ref string + Description string - CloneURL string } templ repoHeaderComponent(rhcc RepoHeaderComponentContext) { @@ -21,8 +25,10 @@ { " - " } log { " - " } + CloneURL string { " - " }
{ fmt.Sprintf("%s/%s.git", rhcc.CloneURL, rhcc.Name) }
{ rhcc.Description }
} + diff --git a/internal/html/repo_search.templ b/internal/html/repo_search.templ index 184e622a8958d3ae0a4de497d2b06cc23b1d5cf1..97224dd2d41746b5177f7ddff25cbb5c6ef17b7f 100644 --- a/internal/html/repo_search.templ +++ b/internal/html/repo_search.templ @@ -4,7 +4,7 @@ import "fmt" import "go.jolheiser.com/ugit/internal/git" type SearchContext struct { - BaseContext + BaseContext RepoHeaderComponentContext Results []git.GrepResult } @@ -33,13 +33,10 @@ templ RepoSearch(sc SearchContext) { @base(sc.BaseContext) { @repoHeaderComponent(sc.RepoHeaderComponentContext) - for _, results := range sc.DedupeResults() { +
import "fmt" -package html - import "fmt" - -

No results

+package html } }