admin/instance: Make the overview page faster
This commit is contained in:
parent
419902c59b
commit
83a3c743e3
3 changed files with 2 additions and 15 deletions
|
|
@ -1,17 +1,5 @@
|
||||||
<div class="pure-u-1-1">
|
<div class="pure-u-1-1">
|
||||||
<p>
|
<h2 id="overview">Overview</h2>
|
||||||
Sections
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="pure-button-group" role="group" aria-label="Table Of Contents">
|
|
||||||
<a class="pure-button pure-button-small" href="#overview">Info & Status</a>
|
|
||||||
<a class="pure-button pure-button-small" href="#requirements">Drupal Status Report</a>
|
|
||||||
<a class="pure-button pure-button-small" href="#wisski">WissKI Data</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="pure-u-1-1">
|
|
||||||
<h2 id="overview">Info & Status</h2>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="pure-u-1 pure-u-xl-2-5">
|
<div class="pure-u-1 pure-u-xl-2-5">
|
||||||
<div class="padding">
|
<div class="padding">
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ func (admin *Admin) instance(ctx context.Context) http.Handler {
|
||||||
ic.Instance = instance.Instance
|
ic.Instance = instance.Instance
|
||||||
|
|
||||||
// get some more info about the wisski
|
// get some more info about the wisski
|
||||||
ic.Info, err = instance.Info().Information(r.Context(), false)
|
ic.Info, err = instance.Info().Information(r.Context(), true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ic, nil, err
|
return ic, nil, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Information fetches information about this WissKI.
|
// Information fetches information about this WissKI.
|
||||||
// TODO: Rework this to be able to determine what kind of information is available.
|
|
||||||
func (wisski *Info) Information(ctx context.Context, quick bool) (info status.WissKI, err error) {
|
func (wisski *Info) Information(ctx context.Context, quick bool) (info status.WissKI, err error) {
|
||||||
// setup flags
|
// setup flags
|
||||||
flags := ingredient.FetcherFlags{
|
flags := ingredient.FetcherFlags{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue