grim/hgkeeper-theme
Clone
Summary
Browse
Changes
Graph
Add motd support
draft
2020-04-08, Gary Kramlich
738372d09384
Parents
63645e27d45d
Children
ac6141a766c1
Add motd support
1 files changed, 5 insertions(+), 0 deletions(-)
+5
-0
templates/hgkeeper/header.tmpl
--- a/templates/hgkeeper/header.tmpl Tue Apr 07 22:43:55 2020 -0500
+++ b/templates/hgkeeper/header.tmpl Wed Apr 08 00:05:07 2020 -0500
@@ -19,6 +19,11 @@
<a class="navbar-brand" href="/">HGKeeper</a>
</nav>
+
<div class="container">
+ <!-- we should make the button work with cookies if possible, but until
+ then, hide it -->
+ {if(motd, '<div class="alert alert-info" role="alert"><!--<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>--><i class="icofont-info-circle"></i> {motd}</div>')}
+
{if(repo, '{reponav}', '')}