|
1 | | -{% extends "templates/page.html" %} |
2 | | - |
3 | | -{% block header_buttons %} |
4 | | - |
5 | | -{% block login_widget %} |
6 | | -{% endblock %} |
7 | | - |
8 | | -{% if jitsi_url %} |
9 | | - <span> |
10 | | - <a id="visit-repo-link" href="{{ jitsi_url }}" class="btn btn-default btn-sm navbar-btn" target="_blank" |
11 | | - style="margin-right: 2px; margin-left: 4px;">Join this repo's Video Chat</a> |
12 | | - </span> |
13 | | -{% endif %} |
14 | | - |
15 | | -{% if ref_url %} |
16 | | - <span> |
17 | | - <a id="visit-repo-link" href="{{ ref_url }}" class="btn btn-default btn-sm navbar-btn" target="_blank" |
18 | | - style="margin-right: 2px; margin-left: 4px;">Visit repo</a> |
19 | | - </span> |
20 | | -{% endif %} |
21 | | - |
22 | | -{% if persistent_binder_url %} |
23 | | - <span> |
24 | | - <button id="copy-binder-link" title="Copy binder link to clipboard" class="btn btn-default btn-sm navbar-btn" |
25 | | - style="margin-right: 0; margin-left: 2px;" |
26 | | - data-url="{{ persistent_binder_url }}" onclick="copy_link_into_clipboard(this);"> |
27 | | - Copy Binder link |
28 | | - </button> |
29 | | - </span> |
30 | | -{% endif %} |
31 | | - |
32 | | -{% endblock header_buttons %} |
33 | | - |
34 | | -{% block script %} |
35 | | -{% if persistent_binder_url %} |
36 | | -<script type='text/javascript'> |
37 | | - function copy_link_into_clipboard(b) { |
38 | | - var $temp = $("<input>"); |
39 | | - $(b).parent().append($temp); |
40 | | - $temp.val($(b).data('url')).select(); |
41 | | - document.execCommand("copy"); |
42 | | - $temp.remove(); |
43 | | - } |
| 1 | +{% extends "templates/page.html" %} {% block header_buttons %} {% block |
| 2 | +login_widget %} {% endblock %} {% if jitsi_url %} |
| 3 | +<span> |
| 4 | + <a |
| 5 | + id="visit-repo-link" |
| 6 | + href="{{ jitsi_url }}" |
| 7 | + class="btn btn-default btn-sm navbar-btn" |
| 8 | + target="_blank" |
| 9 | + style="margin-right: 2px; margin-left: 4px" |
| 10 | + >Join this repo's Video Chat</a |
| 11 | + > |
| 12 | +</span> |
| 13 | +{% endif %} {% if ref_url %} |
| 14 | +<span> |
| 15 | + <a |
| 16 | + id="visit-repo-link" |
| 17 | + href="{{ ref_url }}" |
| 18 | + class="btn btn-default btn-sm navbar-btn" |
| 19 | + target="_blank" |
| 20 | + style="margin-right: 2px; margin-left: 4px" |
| 21 | + >Visit repo</a |
| 22 | + > |
| 23 | +</span> |
| 24 | +{% endif %} {% if persistent_binder_url %} |
| 25 | +<span> |
| 26 | + <button |
| 27 | + id="copy-binder-link" |
| 28 | + title="Copy binder link to clipboard" |
| 29 | + class="btn btn-default btn-sm navbar-btn" |
| 30 | + style="margin-right: 0; margin-left: 2px" |
| 31 | + data-url="{{ persistent_binder_url }}" |
| 32 | + onclick="copy_link_into_clipboard(this);" |
| 33 | + > |
| 34 | + Copy Binder link |
| 35 | + </button> |
| 36 | +</span> |
| 37 | +{% endif %} {% endblock header_buttons %} {% block script %} {% if |
| 38 | +persistent_binder_url %} |
| 39 | +<script type="text/javascript"> |
| 40 | + function copy_link_into_clipboard(b) { |
| 41 | + var $temp = $("<input>"); |
| 42 | + $(b).parent().append($temp); |
| 43 | + $temp.val($(b).data("url")).select(); |
| 44 | + document.execCommand("copy"); |
| 45 | + $temp.remove(); |
| 46 | + } |
44 | 47 | </script> |
45 | | -{% endif %} |
46 | | -{% endblock %} |
| 48 | +{% endif %} {% endblock %} |
0 commit comments