Skip to content

Commit c49399a

Browse files
committed
prettier -w mybinder
1 parent b2320b8 commit c49399a

File tree

3 files changed

+73
-80
lines changed

3 files changed

+73
-80
lines changed
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
1-
{% extends "templates/login.html" %}
2-
3-
{% block header_buttons %}
4-
{% block login_widget %}
5-
{% endblock %}
1+
{% extends "templates/login.html" %} {% block header_buttons %} {% block
2+
login_widget %} {% endblock %}
63
<span class="flex-spacer"></span>
7-
{{super()}}
8-
{% endblock header_buttons %}
9-
10-
{% block site %}
4+
{{super()}} {% endblock header_buttons %} {% block site %}
115
<div id="ipython-main-app" class="container">
126
<h1>Binder inaccessible</h1>
137
<h2>
14-
You can get a new Binder for this repo by clicking <a href="{{binder_url}}">here</a>.
8+
You can get a new Binder for this repo by clicking
9+
<a href="{{binder_url}}">here</a>.
1510
</h2>
16-
<p>
17-
The shareable URL for this repo is: <tt>{{binder_url}}</tt>
18-
</p>
11+
<p>The shareable URL for this repo is: <tt>{{binder_url}}</tt></p>
1912

2013
<h4>Is this a Binder that you created?</h4>
2114
<p>
22-
If so, your authentication cookie for this Binder has been deleted or expired.
23-
You can launch a new Binder for this repo by clicking <a href="{{binder_url}}">here</a>.
15+
If so, your authentication cookie for this Binder has been deleted or
16+
expired. You can launch a new Binder for this repo by clicking
17+
<a href="{{binder_url}}">here</a>.
2418
</p>
2519

2620
<h4>Did someone give you this Binder link?</h4>
2721
<p>
28-
If so, the link is outdated or incorrect.
29-
Recheck the link for typos or ask the person who gave you the link for an updated link.
30-
A shareable Binder link should look like <tt>{{binder_url}}</tt>.
22+
If so, the link is outdated or incorrect. Recheck the link for typos or ask
23+
the person who gave you the link for an updated link. A shareable Binder
24+
link should look like <tt>{{binder_url}}</tt>.
25+
</p>
3126
</div>
3227
{% endblock site %}
Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,48 @@
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+
}
4447
</script>
45-
{% endif %}
46-
{% endblock %}
48+
{% endif %} {% endblock %}
Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
{% extends "templates/tree.html" %}
2-
3-
{% block headercontainer %}
4-
<span class="flex-spacer"></span>
5-
{% endblock %}
6-
7-
{% block header_buttons %}
8-
{{super()}}
9-
{% if shutdown_button %}
10-
<span id="shutdown_widget">
11-
<button id="shutdown" class="btn btn-sm navbar-btn"
12-
title="{% trans %}Stop the Jupyter server{% endtrans %}">
13-
{% trans %}Quit{% endtrans %}
14-
</button>
15-
</span>
16-
{% endif %}
17-
{% endblock header_buttons %}
1+
{% extends "templates/tree.html" %} {% block headercontainer %}
2+
<span class="flex-spacer"></span>
3+
{% endblock %} {% block header_buttons %} {{super()}} {% if shutdown_button %}
4+
<span id="shutdown_widget">
5+
<button
6+
id="shutdown"
7+
class="btn btn-sm navbar-btn"
8+
title="{% trans %}Stop the Jupyter server{% endtrans %}"
9+
>
10+
{% trans %}Quit{% endtrans %}
11+
</button>
12+
</span>
13+
{% endif %} {% endblock header_buttons %}

0 commit comments

Comments
 (0)