-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpackage_links.html
More file actions
60 lines (54 loc) · 2.06 KB
/
package_links.html
File metadata and controls
60 lines (54 loc) · 2.06 KB
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
{% comment %}
Assumes the following are defined:
- package
- distro
- hide_link_labels
- horizontal
{% endcomment %}
{% if horizontal %}
{% assign list_group_class = 'list-group-item text-center' %}
{% else %}
{% assign list_group_class = 'list-group-item' %}
{% endif %}
<div class="list-group list-group-sm {%if horizontal%}list-group-horizontal list-group-justified{%endif%}">
<a class="{{list_group_class}}"
target="_blank"
href="{{ package.data.docs_uri }}"
title="View API documentation on docs.ros.org"
{% unless package.snapshot.documented %}disabled{% endunless %}>
<span style="margin-right: 5px;" class="glyphicon glyphicon-file"></span>
{%if hide_link_labels%}<br>{%endif%}
API Docs
</a>
<a class="{{list_group_class}}"
target="_blank"
href="{{ package.data.browse_uri }}"
title="View source code on repository">
<span class="glyphicon glyphicon-folder-open" style="margin-right:5px;"></span>
{%if hide_link_labels%}<br>{%endif%}
Browse Code
</a>
{% comment %} Remove this when ROS 1 wiki is no longer available or we're not indexing ROS 1 packages {% endcomment %}
{% assign is_ros1_page = false %}
{% for ros_distro in site.ros_distros %}
{% if ros_distro == distro %}
{% assign is_ros1_page = true %}
{% endif %}
{% endfor %}
{% for old_ros_distro in site.old_ros_distros %}
{% if old_ros_distro == distro %}
{% assign is_ros1_page = true %}
{% endif %}
{% endfor %}
{% if is_ros1_page %}
<a class="{{list_group_class}}"
target="_blank"
href="http://wiki.ros.org/{{page.package_name}}?distro={{distro}}"
title="View this package on wiki.ros.org">
<span style="margin-right: 5px;" class="glyphicon glyphicon-info-sign"></span>
{%if hide_link_labels%}<br>{%endif%}
Wiki
</a>
{%endif%}
{% comment %}<a type="button" class="list-group-item {%if horizontal %}text-center{%endif%} inactive" target="_blank" ><span class="glyphicon glyphicon-fire"></span>{%if hide_link_labels%} CI{%endif%}</a>{% endcomment %}
</div>