Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339186
origin.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
origin.html
View Options
{% extends "layout.html" %}
{% load static %}
{% load swh_templatetags %}
{% block title %}Origin information{% endblock %}
{% block content %}
<!-- Flot plugin dependencies -->
<
script
language
=
"javascript"
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.3/jquery.flot.min.js"
></
script
>
<
script
language
=
"javascript"
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.3/jquery.flot.time.min.js"
></
script
>
<
script
language
=
"javascript"
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/flot/0.8.3/jquery.flot.selection.min.js"
></
script
>
<
script
language
=
"javascript"
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/flot.tooltip/0.9.0/jquery.flot.tooltip.min.js"
></
script
>
<
script
language
=
"javascript"
type
=
"text/javascript"
src
=
"{% static 'js/calendar.js' %}"
></
script
>
<!-- Data result -->
<
h2
>
Origin information
</
h2
>
<
table
class
=
"table"
>
{% for key, val in origin.items|dictsort:0 %}
<
tr
>
<
td
>
{{ key }}
</
td
>
<
td
>
{{ val | safe | urlize_links_and_mails | safe }}
</
td
>
</
tr
>
{% endfor %}
</
table
>
<!-- Timeline result -->
<
h2
>
Origin visit history
</
h2
>
<
h3
>
Calendar
</
h3
>
<
div
class
=
"timeline"
>
<
div
id
=
"swh-calendar-window"
style
=
"height: 200px"
>
<
div
id
=
"cal-zoom-window"
style
=
"height: 60%"
></
div
>
<
div
id
=
"cal-static-window"
style
=
"height: 40%"
></
div
>
</
div
>
<
button
class
=
"btn btn-sm btn-swh pull-right"
id
=
"cal-clear"
>
Reset zoom
</
button
>
</
div
>
<
h3
>
Visit list
</
h3
>
<
div
class
=
"table-responsive"
>
<
table
class
=
"table"
>
<
thead
>
<
tr
>
<
th
>
Visit id
</
th
>
<
th
>
Visit date
</
th
>
<
th
>
Visit status
</
th
>
<
th
>
Browse revision url
</
th
>
</
tr
>
</
thead
>
<
tbody
>
{% for v in visits %}
<
tr
class
=
"swh-origin-visit"
>
<
td
>
{{ v.visit }}
</
td
>
<
td
>
{{ v.date }}
</
td
>
<
td
>
{{ v.status }}
</
td
>
<
td
><
a
href
=
"{{ v.browse_url }}"
>
{{ v.browse_url }}
</
a
></
td
>
</
tr
>
{% endfor %}
<
tbody
>
</
table
>
</
div
>
<!-- Flot calendar setup -->
<
script
>
$
(
function
(){
var
cal
=
new
Calendar
(
'{{ browse_url_base }}'
,
{{
origin_visits_data
|
safe
}},
{{
origin
.
id
}},
$
(
'#cal-zoom-window'
),
$
(
'#cal-static-window'
),
$
(
'#cal-clear'
));
});
</
script
>
{% endblock %}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Jul 4 2025, 9:29 AM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3346854
Attached To
R65 Staging repository
Event Timeline
Log In to Comment