~gitpocket/gitpocket

4

feat(index): link the importer from the dashboard

commit
732f1f43e158c98a67afd8dc9ed1da340b028890 browse tree
parent
90c0625bea54515dbc82bd07ba2961ddd0d358ea
author
obscurejames <354576047+obscurejames@users.noreply.github.com>
signature
Signed by: ~james SHA256:KlzJ0P0gvJcnOYpaxD5yCUw52ImHttTKRjVAEnnYnKg
date
2026-11-13 17:47 UTC

1 files changed, +1 −1

web/templates/index.tmpl modified

@@ -1,7 +1,7 @@
11 {{define "content"}}
22 {{if .User}}
33 <div class="dash">
4-<section><div class="dashhead"><h3>Your repositories</h3><span><a class="btn" href="/orgs/new">New organization</a> <a class="btn primary" href="/create">New repository</a></span></div>
4+<section><div class="dashhead"><h3>Your repositories</h3><span><a class="btn" href="/orgs/new">New organization</a> <a class="btn" href="/import">Import repository</a> <a class="btn primary" href="/create">New repository</a></span></div>
55 {{if .Data.Repos}}{{template "repolist" .Data.Repos}}{{else}}<p class="muted">You have no repositories yet.</p>{{end}}
66 {{if .Data.Shared}}<h3>Shared with you</h3>{{template "repolist" .Data.Shared}}{{end}}</section>
77 {{else}}