This repository has been archived by the owner on Nov 26, 2018. It is now read-only.
/
kudos.html
52 lines (40 loc) · 1.61 KB
/
kudos.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% extends "base.html" %}
{% block head_title %}Documentation for {{ channel }} {{ super() }}{% endblock %}
{% block body_class %}help-view{% endblock %}
{% block content %}
<p><a href="{{ channel_url(channel, 'log_current') }}">← Return to <strong>{{ channel }}</strong></a>
<h1>Kudos</h1>
<article>
<p>Kudos is a way of identifying helpful individuals in a channel.</p>
<p>By noting appreciation from participants, we can acknowledge the good work of those who devote so much time helping others be successful.</p>
{% if search %}
<h2>{{ search.nick }}</h2>
{% if search.details %}
<p>{{ search.nick }} is a {% if search.details.current_perc %}top {{ search.details.current_perc }}% {% endif %}helpful individual!
{% else %}
<p><em>Botbot hasn't tracked any appreciation for this individual in {{ channel }} yet.</em></p>
{% endif %}
{% endif %}
{#
<form action="." method="get">
<p><label for="kudos_search">Search for a nick</label> <input id="kudos_search" name="nick"><button type="submit">Search</button></p>
</form>
#}
{% if random_scoreboard %}
<h3>Some{% if search %} other{% endif %} helpful people</h3>
<p>Here's an sample of some of the helpful individuals in {{ channel }}:</p>
<ul>
{% for nick in random_scoreboard %}
<li>
{% if search and search.nick %}<a href="?nick={{ nick }}">{% endif %}
{{ nick }}
{% if search and search.nick %}</a>{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% if channel_messages %}
<p>Botbot has scanned {{ channel_messages }} lines of discussion in {{ channel }}, of which {{ channel_kudos_perc }} are messages of appreciation.</p>
{% endif %}
</article>
{% endblock content %}