From 7cdf4b59834eb7cc984829efd075484c58c87de8 Mon Sep 17 00:00:00 2001 From: Ed Costello Date: Mon, 11 Mar 2013 16:23:09 -0400 Subject: [PATCH] DOCS-1223 Fix JIRA collector for anonymous/unauthd users --- themes/mongodb/jiracollector.html | 30 +++++++++++++++++++++--------- themes/mongodb/layout.html | 2 +- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/themes/mongodb/jiracollector.html b/themes/mongodb/jiracollector.html index e2e4c9ee878..86c3c64aafd 100644 --- a/themes/mongodb/jiracollector.html +++ b/themes/mongodb/jiracollector.html @@ -1,15 +1,27 @@ +{#- 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 -%} {%- endblock -%} diff --git a/themes/mongodb/layout.html b/themes/mongodb/layout.html index 11a84aff3e3..eaabfb62275 100644 --- a/themes/mongodb/layout.html +++ b/themes/mongodb/layout.html @@ -149,7 +149,7 @@ {%- endif %}