Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/top-navigation.html
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
{% include "includes/show-swh-ids.html" %} | {% include "includes/show-swh-ids.html" %} | ||||
<script> | <script> | ||||
var snapshotContext = false; | var snapshotContext = false; | ||||
var branch = false; | var branch = false; | ||||
{% if snapshot_context %} | {% if snapshot_context %} | ||||
snapshotContext = true; | snapshotContext = true; | ||||
branch = {{ snapshot_context.branch|jsonify }}; | branch = "{{ snapshot_context.branch|escape }}"; | ||||
{% endif %} | {% endif %} | ||||
swh.browse.initSnapshotNavigation(snapshotContext, branch); | swh.browse.initSnapshotNavigation(snapshotContext, branch !== "None"); | ||||
</script> | </script> |