control/instance: Show if excluded from resolver
This commit is contained in:
parent
ce0c053fde
commit
d2d681a4f2
3 changed files with 5 additions and 1 deletions
|
|
@ -12,12 +12,13 @@
|
|||
<b>Slug:</b> <code>{{ .Info.Slug }}</code> <br />
|
||||
<b>URL:</b> <a href="{{ .Info.URL }}" target="_blank" rel="noopener noreferrer">{{ .Info.URL }}</a> <br />
|
||||
<hr />
|
||||
<b>Resolver Prefixes:</b>
|
||||
<b>URI Prefixes: </b>
|
||||
<ul>
|
||||
{{ range .Info.Prefixes }}
|
||||
<li><code>{{ . }}</code></li>
|
||||
{{ end}}
|
||||
</ul>
|
||||
<b>Excluded from Resolver:</b> <code>{{ .Info.NoPrefixes }}</code><br />
|
||||
<hr />
|
||||
<b>Running:</b> <code>{{ .Info.Running }}</code> <br />
|
||||
<!-- <b>OwnerEmail:</b> <code>{{ .Instance.OwnerEmail }}</code> <br /> -->
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ type WissKIInfo struct {
|
|||
Snapshots []models.Snapshot
|
||||
|
||||
// WissKI content information
|
||||
NoPrefixes bool
|
||||
Prefixes []string // list of prefixes
|
||||
Pathbuilders map[string]string // all the pathbuilders
|
||||
}
|
||||
|
|
@ -60,6 +61,7 @@ func (wisski *WissKI) Info(quick bool) (info WissKIInfo, err error) {
|
|||
})
|
||||
group.Go(func() (err error) {
|
||||
info.Prefixes, _ = wisski.Prefixes()
|
||||
info.NoPrefixes = wisski.NoPrefix()
|
||||
return nil
|
||||
})
|
||||
group.Go(func() error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue