
The message of the day used to be a single message with an importance level. It's actually useful to be able to have several distinct messages and add/remove them separately. In preparation for that change, turn the motd entry in the json DB into an array of messages. Gracefully migrate previous format DB into the new one. Commands stay unchanged for now and just manipulate the first entry. Change-Id: Id98281dba0c6b3cffe1a359d6e0c250b99084bb1
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Project Teams Gathering - Useful links</title>
|
|
<!-- Latest compiled and minified CSS -->
|
|
<link rel="stylesheet" href="bootstrap-3.3.7.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header navbar-brand"><img src="/logo.png" height="22"></div>
|
|
<div class="navbar-header navbar-brand">Project Teams Gathering</div>
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="ptg.html">Currently at the PTG</a></li>
|
|
<li><a href="etherpads.html">List of Etherpads</a></li>
|
|
<li class="active"><a href="index.html">Useful links</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<script id="MOTDTemplate" type="text/x-handlebars-template">
|
|
{{#each motd}}
|
|
<div class="alert alert-{{this.level}}" role="alert">{{this.message}}</div>
|
|
{{/each}}
|
|
</script>
|
|
<div id="MOTD"></div>
|
|
|
|
<p>Follow links to useful resources for the Project Teams Gathering.</p>
|
|
<script id="LinksTemplate" type="text/x-handlebars-template">
|
|
{{#each links as |url title|}}
|
|
<li class="list-group-item"><a href="{{ url }}">{{ title }}</a></li>
|
|
{{/each}}
|
|
</script>
|
|
|
|
<ul class="list-group">
|
|
<li class="list-group-item"><a href="https://www.openstack.org/ptg/">Event details, overall schedule, travel info, FAQs</a></li>
|
|
<li class="list-group-item"><a href="https://opendev.org/openstack/ptgbot/src/branch/master/README.rst">Instructions for interacting with the IRC bot</a></li>
|
|
<div id="ExtraLinks"></div>
|
|
</ul>
|
|
</div>
|
|
|
|
<script src="jquery-1.9.1.min.js"></script>
|
|
<script src="handlebars-4.0.6.js"></script>
|
|
<script src="motd.js"></script>
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html>
|