Move messages to the top of status page

pull/1101/head
Rory Doherty 2022-10-18 16:08:11 +01:00
parent 87ab7d9238
commit 402bf94918
2 changed files with 20 additions and 19 deletions

View File

@ -12,27 +12,28 @@
</div> </div>
</div> </div>
<div class="col-12 full-col-12"> <div class="col-12 full-col-12">
<div v-for="service in services_no_group" v-bind:key="service.id" class="list-group online_list mb-4"> <MessageBlock v-for="message in messages" v-bind:key="message.id" :message="message" />
<div class="list-group-item list-group-item-action"> </div>
<router-link class="no-decoration font-3" :to="serviceLink(service)">{{service.name}}</router-link>
<span class="badge float-right" :class="{'bg-success': service.online, 'bg-danger': !service.online }">{{service.online ? "ONLINE" : "OFFLINE"}}</span> <div class="col-12 full-col-12">
<GroupServiceFailures :service="service"/> <div v-for="service in services_no_group" v-bind:key="service.id" class="list-group online_list mb-4">
<IncidentsBlock :service="service"/> <div class="list-group-item list-group-item-action">
</div> <router-link class="no-decoration font-3" :to="serviceLink(service)">{{service.name}}</router-link>
</div> <span class="badge float-right" :class="{'bg-success': service.online, 'bg-danger': !service.online }">{{service.online ? "ONLINE" : "OFFLINE"}}</span>
</div> <GroupServiceFailures :service="service"/>
<IncidentsBlock :service="service"/>
</div>
</div>
</div>
<Group v-for="group in groups" v-bind:key="group.id" :group=group /> <Group v-for="group in groups" v-bind:key="group.id" :group=group />
<div class="col-12 full-col-12">
<MessageBlock v-for="message in messages" v-bind:key="message.id" :message="message" />
</div>
<div class="col-12 full-col-12"> <div class="col-12 full-col-12">
<div v-for="service in services" :ref="service.id" v-bind:key="service.id"> <div v-for="service in services" :ref="service.id" v-bind:key="service.id">
<ServiceBlock :service="service" /> <ServiceBlock :service="service" />
</div> </div>
</div> </div>
</div> </div>
</template> </template>

View File

@ -3,13 +3,13 @@ package handlers
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/statping-ng/statping-ng/types/errors"
"html/template" "html/template"
"net/http" "net/http"
"path" "path"
"time" "time"
"github.com/statping-ng/statping-ng/source" "github.com/statping-ng/statping-ng/source"
"github.com/statping-ng/statping-ng/types/errors"
"github.com/statping-ng/statping-ng/utils" "github.com/statping-ng/statping-ng/utils"
) )