Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343566
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 "browse.html" %}
{% load static %}
{% load swh_templatetags %}
{% block title %}Origin information{% endblock %}
{% block swh-browse-main-panel-content %}
<
div
class
=
"panel-body"
>
<!-- Timeline result -->
<
h2
>
Visits 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
>
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
>
</
div
>
<!-- Flot calendar setup -->
<!-- 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
>
<
script
>
$
(
function
(){
var
cal
=
new
Calendar
(
'{{ browse_url_base }}'
,
{{
origin_visits_data
|
safe
}},
{{
swh_object_metadata
.
id
}},
$
(
'#cal-zoom-window'
),
$
(
'#cal-static-window'
),
$
(
'#cal-clear'
));
});
</
script
>
{% endblock %}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Fri, Jul 4, 1:38 PM (4 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3351173
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment