Skip to content

Commit

Permalink
save point re alerts system rockstor#1
Browse files Browse the repository at this point in the history
Currently our alerts section renders no pages !!
But our sysalerts partial can successfully show partners section as
alerts, or downloads, or features!!
  • Loading branch information
phillxnet committed Oct 27, 2021
1 parent e648894 commit 58f6c58
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 1 deletion.
10 changes: 10 additions & 0 deletions archetypes/sysalerts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
back_by: {{ now.AddDate 0 0 1}}
draft: true
---

{{< param .title >}}
is currently down for maintenance. Normal service expected by
{{< param .back_by >}}
14 changes: 14 additions & 0 deletions content/sysalerts/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Alerts"
date: 2021-10-27T18:54:52+01:00
draft: true
# section build options:
_build:
render: false
# children build options with cascade
cascade:
_build:
render: false
---

This is our collection of system alerts.
9 changes: 9 additions & 0 deletions content/sysalerts/appman.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Appman"
date: 2021-10-27T15:59:54+01:00
draft: true
---

{{< param .Title >}}
is currently down for maintenance. Normal service expected by
{{< param .back_by >}}
9 changes: 9 additions & 0 deletions content/sysalerts/forum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Forum"
date: 2021-10-27T17:06:17+01:00
draft: true
---

{{< param .Title >}}
is currently down for maintenance. Normal service expected by
{{< param .back_by >}}
4 changes: 3 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<header class="page-header-rockstor" style="background-color: grey">
{{ with .Params.subtitle }} <span class="subtitle">{{.}}</span> {{ end }}

{{ partial "banner.html" .}}
{{ partial "sysalerts.html" . }}

{{ partial "banner.html" . }}
</header>
<div class="center homepage-content" style="background-color: grey">
{{.Content}}
Expand Down
11 changes: 11 additions & 0 deletions layouts/partials/sysalerts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ with .Site.GetPage "/sysalerts" }}
<div id="alerts">
<div class="row">
<div class="col-md-8 col-md-offset-2">
{{ range .Pages }}
<h2 style="color:#EB6841; font-size:28px; text-align:center;">{{ .Title }}{{ .Content }}</h2>
{{ end }}
</div>
</div>
</div>
{{ end }}

0 comments on commit 58f6c58

Please sign in to comment.