Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8390967
browse.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
browse.html
View Options
{% extends "layout.html" %}
{% load swh_templatetags %}
{% block title %}{{ heading }}
–
Software Heritage archive {% endblock %}
{% block navbar-content %}
<
ul
class
=
"nav navbar-nav swh-browse-nav"
>
<
li
class
=
"active"
>
<
a
href
=
"#search"
data-toggle
=
"tab"
style
=
"outline:none;"
>
Search
</
a
>
</
li
>
<
li
>
<
a
href
=
"#help"
data-toggle
=
"tab"
style
=
"outline:none;"
>
Help
</
a
>
</
li
>
<
li
>
<
a
href
=
"#browse"
data-toggle
=
"tab"
style
=
"outline:none;"
>
Browse
</
a
>
</
li
>
</
ul
>
{% endblock %}
{% block content %}
<
div
class
=
"tab-content"
style
=
"margin-top: 5px;"
>
<
div
class
=
"tab-pane active"
id
=
"search"
>
{% include "includes/origins-search.html" %}
</
div
>
<
div
class
=
"tab-pane"
id
=
"help"
>
{% include "includes/browse-help.html" %}
</
div
>
<
div
class
=
"tab-pane"
id
=
"browse"
>
{% if empty_browse %}
<
div
class
=
"panel panel-default"
style
=
"overflow-x: auto;"
>
<
div
class
=
"panel-heading"
>
<
h2
>
Browse the Software Heritage archive
</
h2
>
</
div
>
<
div
class
=
"panel-body"
>
<
p
>
No Software Heritage object currently browsed.
<
br
/>
To browse the content of the archive, you can either use
the
<
a
href
=
"{% url 'browse-homepage' %}#search"
>
Search
</
a
>
interface or refer to the URI scheme described
in the
<
a
href
=
"{% url 'browse-homepage' %}#help"
>
Help
</
a
>
page.
</
p
>
</
div
>
</
div
>
{% else %}
<
div
class
=
"panel-group"
id
=
"accordion"
>
{% if top_panel_visible %}
<
div
class
=
"panel panel-default"
style
=
"overflow-x: auto;"
>
<
div
class
=
"panel-heading"
>
{% if top_panel_collapsible %}
<
a
data-toggle
=
"collapse"
data-parent
=
"#accordion"
href
=
"#swh-browse-top-collapse"
style
=
"outline:none;"
>
{% endif %}
<
div
class
=
"pull-left"
>
<
h2
>
{{ top_panel_text_left }}
</
h2
>
</
div
>
<
div
class
=
"pull-right"
>
<
h2
>
{{ top_panel_text_right }}
</
h2
>
</
div
>
<
div
class
=
"clearfix"
></
div
>
{% if top_panel_collapsible %}
</
a
>
{% endif %}
</
div
>
{% if top_panel_collapsible %}
<
div
id
=
"swh-browse-top-collapse"
class
=
"panel-collapse collapse"
>
{% endif %}
<
table
class
=
"table"
>
<
tbody
>
{% for key, val in swh_object_metadata.items|dictsort:"0.lower" %}
<
tr
>
<
th
class
=
"swh-metadata-table-row"
>
{{ key }}
</
th
>
<
td
class
=
"swh-metadata-table-row"
>
<
pre
>
{{ val | safe | urlize_links_and_mails | safe }}
</
pre
>
</
td
>
</
tr
>
{% endfor %}
</
tbody
>
</
table
>
{% if top_panel_collapsible %}
</
div
>
{% endif %}
</
div
>
{% endif %}
{% if main_panel_visible %}
<
div
class
=
"panel panel-default"
style
=
"overflow-x: auto;"
>
{% block swh-browse-main-panel-content %}{% endblock %}
</
div
>
{% endif %}
{% block swh-browse-panels-group-end %}{% endblock %}
</
div
>
{% block swh-browse-after-panels %}{% endblock %}
</
div
>
{% endif %}
</
div
>
<
script
>
function
removeHash
()
{
history
.
pushState
(
""
,
document
.
title
,
window
.
location
.
pathname
+
window
.
location
.
search
);
}
var
browse_tabs_hash
=
[
"#browse"
,
"#search"
,
"#help"
];
// Javascript to enable link to tab
function
show_requested_tab
()
{
var
hash
=
window
.
location
.
hash
;
if
(
hash
&&
browse_tabs_hash
.
indexOf
(
hash
)
==
-
1
)
{
return
;
}
if
(
hash
)
{
$
(
'.navbar-nav.swh-browse-nav a[href="'
+
hash
+
'"]'
).
tab
(
'show'
);
}
else
{
$
(
'.navbar-nav.swh-browse-nav a[href="#browse"]'
).
tab
(
'show'
);
}
window
.
scrollTo
(
0
,
0
);
}
// show requested tab when loading the page
$
(
document
).
ready
(
function
()
{
// Change hash for page reload
$
(
'.navbar-nav.swh-browse-nav a'
).
on
(
'shown.bs.tab'
,
function
(
e
)
{
if
(
e
.
target
.
hash
!=
'#browse'
)
{
window
.
location
.
hash
=
e
.
target
.
hash
;
}
else
{
removeHash
();
}
show_requested_tab
();
});
// update displayed tab when the url fragment changes
$
(
window
).
on
(
'hashchange'
,
function
()
{
show_requested_tab
();
});
show_requested_tab
();
});
</
script
>
{% endblock %}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Jun 4 2025, 6:37 PM (14 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3369157
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment