Commit 19d5be70 authored by Mantas Vilčinskas's avatar Mantas Vilčinskas
Browse files

Added API for index, fully added #43 with tweaks to yrly archive

parent f8bda429
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -164,13 +164,13 @@ params:
  useLargeHeaderDesign: false

  # Should incident history be separated
  # yearly, in an archive view?
  # like in an archive view?
  #
  # Note: This WILL disable pagination.
  #
  # Default: true
  # BOOLEAN; `true`, `false`
  enableYearlyIncidentHistory: true
  # Default: `yearly`
  # STRING; `monthly`, `yearly`, `none`
  incidentHistoryFormat: "yearly"

  # Should we show the logo or the title
  # of the status page?
+2 −2
Original line number Diff line number Diff line
---
title: Issues Sending DMs
date: 2018-01-17 16:24:00
date: 2017-12-17 16:24:00
resolved: true
resolvedWhen: 2018-01-17 16:58:00
resolvedWhen: 2017-12-17 16:58:00
# Possible severity levels: down, disrupted, notice
severity: disrupted
affected:
+2 −2
Original line number Diff line number Diff line
---
title: US East Connection Issues
date: 2018-05-25 04:13:00
date: 2018-04-25 04:13:00
resolved: true
resolvedWhen: 2018-05-25 04:13:59
resolvedWhen: 2018-04-25 04:13:59
# Possible severity levels: down, disrupted, notice
severity: down
affected:
+3 −1
Original line number Diff line number Diff line
@@ -38,8 +38,10 @@

  <!-- All incidents + pagination -->
  <div class="contain contain--more" id="incidents">
    {{ if .Site.Params.enableYearlyIncidentHistory }}
    {{ if eq .Site.Params.incidentHistoryFormat "yearly" }}
      {{ partial "index/incidents-yearly" . }}
    {{ else if eq .Site.Params.incidentHistoryFormat "monthly" }}
      {{ partial "index/incidents-monthly" . }}
    {{ else }}
      {{ partial "index/incidents" . }}
    {{ end }}

layouts/index.json

0 → 100644
+39 −0
Original line number Diff line number Diff line
{
  "version": "4.0",
  "title": "{{ .Site.Title }}",
  "languageCodeHTML": "{{ .Site.LanguageCode }}",
  "languageCode": "{{ T "languageCode" }}",
  "languageCode": "{{ T "languageCode" }}", 
  "baseURL": "{{ .Site.BaseURL }}", 
  "description": "{{ .Site.Params.Description }}",
  "logo": "{{ .Site.Params.logo | absURL }}",
  "categories": [
    {{ range $i, $e := .Site.Params.categories }}{{ if $i }},{{ end }}
      {
        "name": "{{ .name }}",{{ if .description }}
        "description": "{{ .description }}",{{ end }}
        "hideTitle": "{{ .untitled }}",
        "closedByDefault": "{{ .closed }}"
      }
    {{ end }}
  ],
  "systems": [
    {{ range $i, $e := .Site.Params.systems }}{{ if $i }},{{ end }}
      {
        "name": "{{ .name }}",{{ if .description }}
        "description": "{{ .description }}",{{ end }}
        "category": "{{ .category }}",
        "hideTitle": "{{ .untitled }}",
        "closedByDefault": "{{ .closed }}"
      }
    {{ end }}
  ],

  "colorBrand": "{{ .Site.Params.Brand }}",
  "colorOk": "{{ .Site.Params.Ok }}",
  "colorDisrupted": "{{ .Site.Params.Disrupted }}",
  "colorDown": "{{ .Site.Params.Down }}",
  "colorNotice": "{{ .Site.Params.Notice }}",
  "alwaysKeepBrandColor": "{{ .Site.Params.alwaysKeepBrandColor }}",
  "googleAnalytics": "{{ .Site.Params.googleAnalytics }}"
}
 No newline at end of file
Loading