Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9347652
origin-visits.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-visits.html
View Options
{% extends "browse.html" %}
{% 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 static %}
{% load swh_templatetags %}
{% load render_bundle from webpack_loader %}
{% block header %}
{{ block.super }}
{% render_bundle 'origin' %}
{% endblock %}
{% block swh-browse-before-content %}
<
div
class
=
"card"
>
<
div
class
=
"card-header bg-gray-light border-bottom-0"
>
<
h4
class
=
"text-center"
>
Origin: {{ origin_info.url }}
{% if origin_info.url|slice:"0:4" == "http" %}
<
a
href
=
"{{ origin_info.url }}"
title
=
"Go to origin"
><
i
class
=
"fa fa-external-link"
aria-hidden
=
"true"
></
i
></
a
>
{% endif %}
</
h4
>
</
div
>
</
div
>
{% endblock %}
{% block swh-browse-content %}
<
div
class
=
"card-header bg-gray-light"
>
<
div
class
=
"float-left"
>
<
h4
>
{{ swh_object_name }}
</
h4
>
</
div
>
<
div
class
=
"clearfix"
></
div
>
</
div
>
<
div
class
=
"card-body"
>
<
h4
>
Overview
</
h4
>
<
ul
>
<
li
>
Total number of visits:
<
b
>
{{ origin_visits|length }}
</
b
></
li
>
<
li
>
Last full visit:
<
span
style
=
"margin-left: 20px;"
id
=
"swh-last-full-visit"
></
span
></
li
>
<
li
>
First full visit:
<
span
style
=
"margin-left: 20px;"
id
=
"swh-first-full-visit"
></
span
></
li
>
<
li
>
Last visit:
<
span
style
=
"margin-left: 20px;"
id
=
"swh-last-visit"
></
span
></
li
>
</
ul
>
<
h4
>
History
</
h4
>
<
div
class
=
"btn-group btn-group-toggle d-flex justify-content-center"
data-toggle
=
"buttons"
>
<
label
class
=
"btn btn-default btn-sm form-check-label active"
onclick
=
"swh.origin.showFullVisitsDifferentSnapshots(event)"
>
<
input
type
=
"radio"
name
=
"options"
id
=
"option1"
autocomplete
=
"off"
checked
>
Show full visits with different snapshots
</
label
>
<
label
class
=
"btn btn-default btn-sm form-check-label"
onclick
=
"swh.origin.showFullVisits(event)"
>
<
input
type
=
"radio"
name
=
"options"
id
=
"option2"
autocomplete
=
"off"
>
Show all full visits
</
label
>
<
label
class
=
"btn btn-default btn-sm form-check-label"
onclick
=
"swh.origin.showAllVisits(event)"
>
<
input
type
=
"radio"
name
=
"options"
id
=
"option3"
autocomplete
=
"off"
>
Show all visits
</
label
>
</
div
>
<
h5
>
Timeline
</
h5
>
<
div
id
=
"swh-visits-timeline"
class
=
"d3-wrapper"
></
div
>
<
h5
>
Calendar
</
h5
>
<
div
id
=
"swh-visits-calendar"
></
div
>
<
h5
>
List
</
h5
>
<
div
id
=
"swh-visits-list"
></
div
>
</
div
>
<
script
>
// all origin visits
var
visits
=
{{
origin_visits
|
jsonify
}};
swh
.
origin
.
initVisitsReporting
(
visits
);
</
script
>
{% endblock %}
File Metadata
Details
Attached
Mime Type
text/html
Expires
Fri, Jul 4, 5:47 PM (4 w, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3376402
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment