blob: a17aa502522adbcd3266ed0843a54e1a750e89ce (
plain)
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
|
{% extends "base.htm" %}
{% block title %}phorkie help{% endblock %}
{% block content %}
<h1>Help on phorkie</h1>
<h2 id="remote-forking">Remote forking</h2>
<script type="text/javascript">
function registerHandler() {
navigator.registerProtocolHandler(
"web+fork",
"{{htmlhelper.fullUrl('fork-remote?remote_url=%s')}}",
"phorkie@"
+ "{{htmlhelper.fullUrl()}}"
.replace(/https?:\/\//, '')
.replace(/\/$/, '')
);
}
</script>
<div class="row-fluid">
<div class="span8">
<p>
Phorkie allows cloning/forking of pastes on other servers
- other phorkie instances, github gists or simply any remote
git repository.
</p>
<p>
You can go to <a href="fork-remote">fork-remote</a> and enter the
URL of the paste on the other server.
</p>
<p>
It's way easier to simply click a "fork" button that automatically
takes you to this phorkie's remote paste page, prefilled with
the correct git URL.
</p>
<p>
To make this work, click the register button on the right.
It will register a "protocol handler" for "web+fork:"-URLs,
making phorkie chime in whenever a <tt>web+fork</tt> URL is clicked.
</p>
</div>
<div class="span4">
<a href="#" onclick="registerHandler(); return false;" class="btn">
register web+fork protocol handler
</a>
</div>
</div>
<h3 id="fork-check">Setup check</h3>
<p>
You need to activate public clone URLs in your config file.
Otherwise forking onto remote systems will not work.
</p>
{% if publicGitUrl %}
<div class="alert alert-success">
OK! A public git URL prefix is configured: <tt>{{publicGitUrl}}</tt>
</div>
{% else %}
<div class="alert alert-error">
Error! No public git URL prefix configured.
</div>
{% endif %}
{% endblock %}
|