Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8390981
top-navigation.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Subscribers
None
top-navigation.html
View Options
{% comment %}
Copyright (C) 2017-2018 The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}
{% load swh_templatetags %}
<
div
class
=
"swh-browse-top-navigation"
>
{% if snapshot_context %}
{% if snapshot_context.branch or snapshot_context.release %}
<
div
class
=
"dropdown float-left"
id
=
"swh-branches-releases-dd"
>
<
button
class
=
"btn btn-block btn-default btn-sm dropdown-toggle"
type
=
"button"
data-toggle
=
"dropdown"
>
{% if snapshot_context.branch %}
<
i
class
=
"fa fa-code-fork fa-fw"
aria-hidden
=
"true"
></
i
>
Branch:
<
strong
>
{{ snapshot_context.branch }}
</
strong
>
{% else %}
<
i
class
=
"fa fa-tag fa-fw"
aria-hidden
=
"true"
></
i
>
Release:
<
strong
>
{{ snapshot_context.release }}
</
strong
>
{% endif %}
<
span
class
=
"caret"
></
span
>
</
button
>
<
ul
class
=
"scrollable-menu dropdown-menu swh-branches-releases"
>
<
ul
class
=
"nav nav-tabs"
>
<
li
class
=
"nav-item"
><
a
class
=
"nav-link active swh-branches-switch"
data-toggle
=
"tab"
>
Branches
</
a
></
li
>
<
li
class
=
"nav-item"
><
a
class
=
"nav-link swh-releases-switch"
data-toggle
=
"tab"
>
Releases
</
a
></
li
>
</
ul
>
<
div
class
=
"tab-content"
>
<
div
class
=
"tab-pane active"
id
=
"swh-tab-branches"
>
{% for b in snapshot_context.branches %}
<
li
class
=
"swh-branch"
>
<
a
href
=
"{{ b.url | safe }}"
>
<
i
class
=
"fa fa-code-fork fa-fw"
aria-hidden
=
"true"
></
i
>
{% if b.name == snapshot_context.branch %}
<
i
class
=
"fa fa-check fa-fw"
aria-hidden
=
"true"
></
i
>
{% else %}
<
i
class
=
"fa fa-fw"
aria-hidden
=
"true"
></
i
>
{% endif %}
{{ b.name }}
</
a
>
</
li
>
{% endfor %}
</
div
>
<
div
class
=
"tab-pane"
id
=
"swh-tab-releases"
>
{% if snapshot_context.releases %}
{% for r in snapshot_context.releases %}
{% if r.target_type == 'revision' %}
<
li
class
=
"swh-release"
>
<
a
href
=
"{{ r.url | safe }}"
>
<
i
class
=
"fa fa-tag fa-fw"
aria-hidden
=
"true"
></
i
>
{% if r.name == snapshot_context.release %}
<
i
class
=
"fa fa-check fa-fw"
aria-hidden
=
"true"
></
i
>
{% else %}
<
i
class
=
"fa fa-fw"
aria-hidden
=
"true"
></
i
>
{% endif %}
{{ r.name }}
</
a
>
</
li
>
{% endif %}
{% endfor %}
{% else %}
<
span
>
No releases to show
</
span
>
{% endif %}
</
div
>
</
div
>
</
ul
>
</
div
>
{% endif %}
{% endif %}
<
div
class
=
"btn-group float-right swh-actions-dropdown"
>
{% if top_right_link %}
<
a
href
=
"{{ top_right_link | safe }}"
class
=
"btn btn-default btn-sm"
role
=
"button"
>
{{ top_right_link_text }}
</
a
>
{% endif %}
{% if show_actions_menu %}
<
button
class
=
"btn btn-default btn-sm dropdown-toggle"
type
=
"button"
data-toggle
=
"dropdown"
>
<
i
class
=
"fa fa-bars fa-fw"
aria-hidden
=
"true"
></
i
>
Actions
<
span
class
=
"caret"
></
span
>
</
button
>
<
ul
class
=
"dropdown-menu dropdown-menu-right swh-browse-actions-menu"
>
{% include "includes/vault-create-tasks.html" %}
{% include "includes/show-metadata.html" %}
</
ul
>
{% endif %}
</
div
>
{% include "includes/breadcrumbs.html" %}
</
div
>
{% include "includes/show-swh-ids.html" %}
<
script
>
var
snapshotContext
=
false
;
var
branch
=
false
;
{
%
if
snapshot_context
%
}
snapshotContext
=
true
;
branch
=
{{
snapshot_context
.
branch
|
jsonify
}};
{
%
endif
%
}
swh
.
browse
.
initSnapshotNavigation
(
snapshotContext
,
branch
);
</
script
>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Jun 4 2025, 6:37 PM (14 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3290284
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment