Skip to content

Commit

Permalink
improve sysalerts formatting and default to false on draft rockstor#1
Browse files Browse the repository at this point in the history
Multiple sysalerts had no space between them.
Move to generic class 'center' for now.
Remove h tag as overloading formatting unnecessarily.
Draft false on draft avoids requirement for further editing.
  • Loading branch information
phillxnet committed Oct 28, 2021
1 parent 7245eac commit 3fd999d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion archetypes/sysalerts.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
draft: false
#add years months days
expirydate: {{ now.AddDate 0 0 1 }}
---
Expand Down
12 changes: 7 additions & 5 deletions layouts/partials/sysalerts.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{{ with .Site.GetPage "/sysalerts" }}
<div id="alerts">
<div class="row">
<div class="row center">
<div class="col-md-8 col-md-offset-2">
{{ range .Pages }}
<h3 style="color:#EB6841; font-size:28px; text-align:center;">{{ .Content }}{{.ExpiryDate | dateFormat "02 Jan 3 pm MST"
}}</h3>
{{ end }}
<div style="color:#EB6841; font-size:25px;">
{{ range .Pages }}
{{ .Content }}{{.ExpiryDate | dateFormat "02 Jan 3 pm MST"}}
<p/>
{{ end }}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 3fd999d

Please sign in to comment.