{#- Comments on this, do not remove #}
{#- to add the popup to another target, add an id to the target #}
{#- and copy the #jirafeedback line below with the new id #}
{#- it is assumed that there is a component matching theme_project #}
{#- in JIRA. if you need to tweak it add a line in the if/else block -#}
{#- TODO: embed commit in environment metadata -#}
{%- block jiracollector -%}
{%- if theme_project == 'manual' %}
{%- set component = 'mongodb-manual' -%}
{%- else -%}
{%- set component = theme_project -%}
{%- endif -%}
<script type="text/javascript">
jQuery.ajax({
	 url: "https://jira.mongodb.org/s/en_UScn8g8x/782/6/1.2.5/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector-embededjs.js?collectorId=298ba4e7",
	 type: "get",
	 cache: true,
	 dataType: "script"
	});
window.ATL_JQ_PAGE_PROPS =  {
	"triggerFunction": function(showCollectorDialog) {
		jQuery("#jirafeedback").click(function(e) {e.preventDefault();showCollectorDialog();});},
		fieldValues: {component: '{{component}}', summary: 'Comment on: "{{theme_project}}/{{pagename}}.txt"'},
		environment: {'repo': '{{theme_repo_name|e}}','source': '{{pagename|e}}'}
		};
</script>
{%- endblock -%}
