This repository was archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathview_cert.html
86 lines (86 loc) · 2.71 KB
/
view_cert.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{% extends "base.html" %}
{% set title = cert.name %}
{% block content %}
{% if characters %}
<form class="form-inline" action="/cert" method="GET">
<fieldset>
<div class="input-append pull-right">
<select name="character">
{% for character in characters %}
<option value="{{ character.char_id }}"
{% if active_character and character.name == active_character.name %}selected{% endif %}>
{{ character.name }}
</option>
{% endfor %}
</select>
<input class="btn" type="submit" value="Show Progress" />
</div>
{% if active_character %}
<span class="btn btn-primary disabled">Showing progress for <strong>{{ active_character.name }}</strong>.</span>
{% else %}
<span class="btn disabled">Select a character to show progress towards completion.</span>
{% endif %}
<input type="hidden" name="id" value="{{ cert.key().id() }}" />
</fieldset>
</form>
{% else %}
<p><a href="/apikeys">Add an API key</a> to compare your character's
progress towards completing this certification.</p>
{% endif %}
<hr />
{% if percents %}
<div class="row">
<div class="progress offset1 span8">
<div class="bar bar-success" style="width:{{ percents['green'] }}%;"></div>
<div class="bar bar-warning" style="width:{{ percents['yellow'] }}%;"></div>
</div>
<div class="span2">
<span class="well well-small">
<strong>{{ percents['green'] }}% Complete</strong>
</span>
</div>
</div>
{% endif %}
<table class="table table-hover">
<thead>
<tr>
<th>Skill</th>
{% if active_character %}
<th>Trained Rank</th>
{% endif %}
<th>Required Rank</th>
</tr>
</thead>
<tbody>
{% for skill in skills %}
<tr class="{{ skill.row_class }}">
<td>{{ skill.name }}</td>
{% if active_character %}
<td>{{ skill.display_rank or "?" }}</td>
{% endif %}
<td>{{ skill.rank }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<form class="form" action="javascript:function(){return false;}">
<legend>Share this certification</legend>
<fieldset>
{% if owner %}
<div class="input-append">
<input type="text" class="span11" value="{{ sharelink }}" />
<div class="add-on"><a href="/certs?action=resetlink&id={{ cert.key().id() }}">Reset Link</a></div>
</div>
{% else %}
<input type="text" class="span12" value="{{ sharelink }}" />
{% endif %}
{% if cert.public %}
<span class="help-block">This is a <strong>Public</strong> certification.
Public certifications are visible to anyone.</span>
{% else %}
<span class="help-block">This is a <strong>Private</strong> certification.
Private certifications can only be viewed by the owner and those who have the above link.</span>
{% endif %}
</fieldset>
</form>
{% endblock %}