Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 17, 2017 18:17

Revisions

  1. tj created this gist Mar 17, 2017.
    44 changes: 44 additions & 0 deletions status.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    {{ define "content" }}
    {{ partial "back" (dict "url" "//apex.sh") }}

    <section class="Content full center">
    <div class="Container small">
    <div class="Title center margin">
    <span class="text">Status</span>
    <span class="subtext">Apex service status.</span>
    </div>

    {{ info "add component listing" }}

    <div class="Components">
    {{ range $file := files "content/components" }}
    {{ with read $file.Path | frontmatter }}
    {{ info "add %s – %s (%s)" .Meta.product .Title .Meta.status }}
    <div class="Component {{.Meta.status}}">
    <div class="info">
    <span class="product">{{.Meta.product}}</span>
    <span class="name">{{.Title}}</span>
    <span class="status">{{.Meta.status}}</span>
    </div>

    {{ with .Meta.incident }}
    <div class="incident">
    <span class="date">{{$file.ModTime}}</span>
    <span class="message">{{.}}</span>
    </div>
    {{ end }}
    </div>
    {{ end }}
    {{ end }}
    </div>
    </div>

    <section class="Content">
    <div class="Container small">
    <div class="Box center-x">
    <a href="mailto:support@apex.sh" class="Button dark">Contact Support</a>
    </div>
    </div>
    </section>
    </section>
    {{ end }}