-
Notifications
You must be signed in to change notification settings - Fork 3
/
srclinks.html
55 lines (55 loc) · 1.81 KB
/
srclinks.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
{%- if show_source and has_source and sourcename %}
<div class="widget navlinks">
<h3>{{ _('This Page') }}</h3>
<ul class="this-page-menu">
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow"
target="_blank">{{ _('Source RST') }}</a></li>
{%- if show_srclink_url %}
<li><a href="{{ show_srclink_url }}"
rel="nofollow"
target="_blank">{{ _('Source') }}</a></li>
{%- endif %}
{%- if edit_srclink_url %}
<li><a href="{{ edit_srclink_url }}"
rel="nofollow"
target="_blank">{{ _('Edit') }}</a></li>
{%- endif %}
{%- if history_srclink_url %}
<li><a href="{{ history_srclink_url }}"
rel="nofollow"
target="_blank">{{ _('History') }}</a></li>
{%- endif %}
{%- if annotate_srclink_url %}
<li><a href="{{ annotate_srclink_url }}"
rel="nofollow"
target="_blank">{{ _('Annotate') }}</a></li>
{%- endif %}
</ul>
</div>
<div class="widget srclinks">
<h3>Source</h3>
{%- if srclink_src_url %}
<h5><a href="{{ srclink_src_url }}">{{
srclink_src_url.lstrip('https://').lstrip('http://') }}</a>
{%- if srclink_src_rev_url %}
/ <a href="{{ srclink_src_rev_url }}"
rel="nofollow"
target="_blank"
font="monospace">{{ srclink_src_rev }}</a>
{%- endif %}
</h5>
{%- endif %}
<ul>
{%- if srclink_src_https_url %}
<li><pre>{{ srclink_src_clone_cmd }} {{ srclink_src_https_url }}</pre></li>
{%- endif %}
{%- if srclink_src_ssh_url %}
<li><pre>{{ srclink_src_clone_cmd }} {{ srclink_src_ssh_url }}</pre></li>
{%- endif %}
{%- if srclink_src_native_url %}
<li><pre>{{ srclink_src_clone_cmd }} {{ srclink_src_native_url }}</pre></li>
{%- endif %}
</ul>
</div>
{%- endif %}