Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Adding KOBOCAT_ROOT_URI_PREFIX to JS context - see kobocat issue #405
Browse files Browse the repository at this point in the history
  • Loading branch information
jeverling committed Jan 5, 2018
1 parent f8cb769 commit 1e8b8cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion templates/instance.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<div class="sub-header-bar">
<div class="container__wide">
<a class="sub-header__back" href="{% url "onadata.apps.main.views.show" xform.user.username xform.id_string %}"><i class="fa fa-chevron-left"></i> {{ xform.title }}</a>
<a class="sub-header__back" href="{% url "onadata.apps.main.views.show" xform.user.username xform.id_string %}"><i class="fa fa-chevron-left"></i> {{ xform.title }}</a>
<a href="{% url "onadata.apps.viewer.views.data_view" username id_string %}"><i class="fa fa-chevron-left"></i> {% trans "Data View" %}</a>
</div>
</div>
Expand Down Expand Up @@ -186,4 +186,7 @@ <h3>{% trans "Delete Confirmation" %}</h3>
});
});
</script>
<script type="text/javascript">
var KOBOCAT_ROOT_URI_PREFIX = "{{ KOBOCAT_ROOT_URI_PREFIX }}";
</script>
{% endblock %}

0 comments on commit 1e8b8cd

Please sign in to comment.