Files
ptgbot/html/etherpads.html
Thierry Carrez 9e052b1625 Turn MOTD into a list of messages
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
2020-11-13 17:39:19 +01:00

69 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="180">
<title>Project Teams Gathering - List of Etherpads</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 class="active"><a href="etherpads.html">List of Etherpads</a></li>
<li><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>We use etherpads to track the agenda of topics that should be covered in
each track.<p>
<div id="PTGsessions">
</div>
</div>
<script id="PTGtemplate" type="text/x-handlebars-template">
<div class="panel panel-default">
<div class="panel-heading"><h3 class="panel-title">Etherpad links</h3></div>
<div class="panel-body">
{{#if eventid}}
<ul class="list-unstyled">
{{#each tracks as |track| }}
<li>{{track}}:
{{#if (lookup @root.etherpads track) }}
<a href="{{lookup @root.etherpads track}}">{{lookup @root.etherpads track}}</a>
{{else}}
<a href="https://etherpad.openstack.org/p/{{@root.eventid}}-{{track}}">https://etherpad.openstack.org/p/{{@root.eventid}}-{{track}}</a>
{{/if}}
</li>
{{/each}}
</ul>
{{else}}
Missing eventid: can't generate unique etherpad links for this event.
{{/if}}
</div>
</div>
<p class="text-muted">You can update the URL for your etherpad through the <a href="https://opendev.org/openstack/ptgbot/src/branch/master/README.rst#etherpad">openstackptg bot</a> on the <a href="http://eavesdrop.openstack.org/irclogs/%23openstack-ptg/">#openstack-ptg IRC channel</a>.</p>
</script>
<script src="jquery-1.9.1.min.js"></script>
<script src="handlebars-4.0.6.js"></script>
<script src="bootstrap-3.3.7.min.js"></script>
<script src="motd.js"></script>
<script src="ptg.js"></script>
</body>
</html>