Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Jan 30, 2024
1 parent 21d7298 commit f10f98d
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 40 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cState Site v5.5
# QField Ecosystem Status page

This is the default cState status page website directory/folder.
See also:

* Example site repository link (you are here): https://github.com/cstate/example
* Main cState source code repository: https://github.com/cstate/cstate
Expand Down
8 changes: 4 additions & 4 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ params:
# Uncomment to enable.
#
# Format:
# customTabs:
# -
# name: Name
# link: https://example.com
customTabs:
-
name: Monitoring
link: https://example.com

# Disable complex server-side
# calculations that may impact
Expand Down
26 changes: 26 additions & 0 deletions layouts/index/summary.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ $incidents := where .Site.RegularPages "Params.section" "issue" }}
{{ $active := where $incidents "Params.resolved" "=" false }}

{{ $isNotice := where $active "Params.severity" "=" "notice" }}
{{ $isDisrupted := where $active "Params.severity" "=" "disrupted" }}
{{ $isDown := where $active "Params.severity" "=" "down" }}

<div class="summary">
<strong>
{{ if $isDown }}
{{ T "isDown" }}
{{ else }}
{{ if $isDisrupted }}
{{ T "isDisrupted" }}
{{ else }}
{{ if $isNotice }}
{{ T "isNotice" }}
{{ else }}
No incidents reported
{{ end }}{{ end }}{{ end }}
</strong>

<div class="summary__date clicky float-right relative-time" onclick="location.reload()" data-time-prefix="{{ T "lastChecked" }} "></div>
</div>

<a href="https://status.qfield.cloud"></a><img src="https://api.checklyhq.com/v1/badges/groups/262175?style=flat&theme=default&responseTime=true"></a>
22 changes: 0 additions & 22 deletions netlify.toml

This file was deleted.

12 changes: 0 additions & 12 deletions vercel.json

This file was deleted.

0 comments on commit f10f98d

Please sign in to comment.