From 76007c07dee8500a6ce993be2a29ae1bb550bb22 Mon Sep 17 00:00:00 2001 From: Jackson Chen Date: Sun, 16 Apr 2023 20:40:16 +0200 Subject: Make code blocks scrollable in case of overflow Fixes #263 References: https://github.com/cstate/cstate/issues/263 --- layouts/partials/meta.html | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'layouts') diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index c8381a9..577f4a0 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -107,6 +107,10 @@ padding: 16px; } + .contain pre { + overflow-x: scroll; + } + .contain--more { max-width: 680px; } .center { text-align: center; } -- cgit v1.2.3-70-g09d2 From 3965c060bc3f1d9599c20fe4bc0ac538f34511e8 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Sat, 22 Apr 2023 14:15:41 +0300 Subject: add md content class --- layouts/issues/issue.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html index 71bb30a..1e953ef 100644 --- a/layouts/issues/issue.html +++ b/layouts/issues/issue.html @@ -92,6 +92,6 @@ {{ end }}
- {{ .Content }} +
{{ .Content }}
-- cgit v1.2.3-70-g09d2 From 91013f06b2b60b32f24129c58e2dba42ccc140ee Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Sat, 22 Apr 2023 14:16:46 +0300 Subject: specify class --- layouts/partials/meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index 577f4a0..bb28846 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -107,7 +107,7 @@ padding: 16px; } - .contain pre { + .markdown pre { overflow-x: scroll; } -- cgit v1.2.3-70-g09d2 From 4f6e8fe0d265bc87bbcf7a7f08bf945b50e63968 Mon Sep 17 00:00:00 2001 From: Nathan Barton Date: Thu, 18 May 2023 11:18:01 -0600 Subject: issues resolution time now aware of whether severity was `down` or not --- layouts/issues/issue.html | 9 +++++++-- layouts/issues/small.html | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'layouts') diff --git a/layouts/issues/issue.html b/layouts/issues/issue.html index 71bb30a..a14c922 100644 --- a/layouts/issues/issue.html +++ b/layouts/issues/issue.html @@ -47,7 +47,10 @@ {{ $minutesForCalc := (mod $diffInMin 60) }} {{ div (sub $diffInMin $minutesForCalc) 60 }}h - {{ $minutesForCalc }}m {{ T "ofDowntime" }}. + {{ $minutesForCalc }}m + {{ if eq .Params.severity "down" }} + {{ T "ofDowntime" }} + {{ end }} @@ -66,7 +69,9 @@ {{ $secsForCalc := (mod $timeDiff 60) }} {{ div (sub $timeDiff $secsForCalc) 60 }}m - {{ T "ofDowntime" }}. + {{ if eq .Params.severity "down" }} + {{ T "ofDowntime" }} + {{ end }} diff --git a/layouts/issues/small.html b/layouts/issues/small.html index 5eb3a2d..97baec9 100644 --- a/layouts/issues/small.html +++ b/layouts/issues/small.html @@ -52,7 +52,10 @@ {{ $minutesForCalc := (mod $diffInMin 60) }} {{ div (sub $diffInMin $minutesForCalc) 60 }}h - {{ $minutesForCalc }}m {{ T "ofDowntime" }} + {{ $minutesForCalc }}m + {{ if eq .Params.severity "down" }} + {{ T "ofDowntime" }} + {{ end }} {{ else }}
@@ -61,7 +64,9 @@ {{ $secsForCalc := (mod $timeDiff 60) }} {{ div (sub $timeDiff $secsForCalc) 60 }}m + {{ if eq .Params.severity "down" }} {{ T "ofDowntime" }} + {{ end }}
{{ end }} {{ end }} -- cgit v1.2.3-70-g09d2 From b8c7904f98b372e0776de22f502d1e00dc8a8d1e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 30 Aug 2023 21:54:34 -0400 Subject: spelling: highest Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- layouts/partials/index/components.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/index/components.html b/layouts/partials/index/components.html index f9937f2..1a338c4 100644 --- a/layouts/partials/index/components.html +++ b/layouts/partials/index/components.html @@ -110,35 +110,35 @@ // // By default, all is good but we change this value // for progressively worse statuses - var highlestLevelStatus = ''; + var highestLevelStatus = ''; function checkStatus(element) { var status = element.getAttribute('data-status'); if (status === 'down') { - highlestLevelStatus = 'down' - } else if (status === 'disrupted' && highlestLevelStatus !== 'down') { - highlestLevelStatus = 'disrupted' - } else if (status === 'notice' && highlestLevelStatus !== 'down' && highlestLevelStatus !== 'disrupted') { - highlestLevelStatus = 'notice' + highestLevelStatus = 'down' + } else if (status === 'disrupted' && highestLevelStatus !== 'down') { + highestLevelStatus = 'disrupted' + } else if (status === 'notice' && highestLevelStatus !== 'down' && highestLevelStatus !== 'disrupted') { + highestLevelStatus = 'notice' } } componentsOfThisCategory.forEach(element => checkStatus(element)); // Human readable (i18n) status name variable - var highlestLevelStatusReadable = highlestLevelStatus; + var highestLevelStatusReadable = highestLevelStatus; - if (highlestLevelStatus === 'ok') { highlestLevelStatusReadable = '{{ T "thisIsOk" }}' } - if (highlestLevelStatus === 'notice') { highlestLevelStatusReadable = '{{ T "thisIsNotice" }}' } - if (highlestLevelStatus === 'disrupted') { highlestLevelStatusReadable = '{{ T "thisIsDisrupted" }}' } - if (highlestLevelStatus === 'down') { highlestLevelStatusReadable = '{{ T "thisIsDown" }}' } + if (highestLevelStatus === 'ok') { highestLevelStatusReadable = '{{ T "thisIsOk" }}' } + if (highestLevelStatus === 'notice') { highestLevelStatusReadable = '{{ T "thisIsNotice" }}' } + if (highestLevelStatus === 'disrupted') { highestLevelStatusReadable = '{{ T "thisIsDisrupted" }}' } + if (highestLevelStatus === 'down') { highestLevelStatusReadable = '{{ T "thisIsDown" }}' } // Finally we can show the status // (but only for categories with a name) if (thisCategory.classList.contains('category--titled')) { - thisCategory.querySelector('.category__head').setAttribute('data-status', highlestLevelStatus); - thisCategory.querySelector('.category-status').innerHTML = highlestLevelStatusReadable; + thisCategory.querySelector('.category__head').setAttribute('data-status', highestLevelStatus); + thisCategory.querySelector('.category-status').innerHTML = highestLevelStatusReadable; } -- cgit v1.2.3-70-g09d2 From 279645e940c8f6a4d153c560876442c5c77521c4 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Sat, 2 Sep 2023 14:09:48 +0300 Subject: 5.5.2 --- layouts/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/index.json b/layouts/index.json index e2e7b7f..a7ce134 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -1,6 +1,6 @@ {{ $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" }}{ "is": "index", - "cStateVersion": "5.5.1", + "cStateVersion": "5.5.2", "apiVersion": "2.0", "title": "{{ .Site.Title }}", "languageCodeHTML": "{{ .Site.LanguageCode }}", -- cgit v1.2.3-70-g09d2 From 0ef6477ded0d9f2c31d480531b46f44e21b27f71 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Sat, 2 Sep 2023 14:10:11 +0300 Subject: 5.5.2 --- layouts/partials/meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index bb28846..da0ed46 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -12,7 +12,7 @@ {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - +