[#6974] make import doc links be source-specific
diff --git a/Allura/development.ini b/Allura/development.ini
index a217641..b9df222 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -319,6 +319,10 @@
 # markdown text longer than max length will not be converted to html
 markdown_render_max_length = 999999999
 
+# If your site has docs about specific importers, you can add them here and
+# they'll appear on the import forms
+#doc.url.importers.Google Code = http://...
+
 [app:task]
 use = main
 override_root = task
diff --git a/ForgeImporters/forgeimporters/templates/importer_base.html b/ForgeImporters/forgeimporters/templates/importer_base.html
index b22aa3d..18fc312 100644
--- a/ForgeImporters/forgeimporters/templates/importer_base.html
+++ b/ForgeImporters/forgeimporters/templates/importer_base.html
@@ -87,10 +87,10 @@
   <div>
     You'll receive an email when the import is finished.
     Import time varies depending on the amount of data being imported.
-    {% if config['doc.url.importers'] %}
+    {% if config['doc.url.importers.{}'.format(importer.source)] %}
         <br/><br/>
         For more information on what will be imported and post-import configuration,
-        please see the <a href="{{ config['doc.url.importers'] }}">import documentation</a>.
+        please see the <a href="{{ config['doc.url.importers.{}'.format(importer.source)] }}">{{importer.source}} import documentation</a>.
     {% endif %}
   </div>
 
diff --git a/ForgeImporters/forgeimporters/templates/project_base.html b/ForgeImporters/forgeimporters/templates/project_base.html
index d34c2d1..d0bac1b 100644
--- a/ForgeImporters/forgeimporters/templates/project_base.html
+++ b/ForgeImporters/forgeimporters/templates/project_base.html
@@ -140,10 +140,10 @@
     <div style="margin:5px">
       You'll receive an email after each tool import finishes.
       Import time varies depending on the amount of data being imported.
-      {% if config['doc.url.importers'] %}
+      {% if config['doc.url.importers.{}'.format(importer.source) ] %}
           <br/><br/>
           For more information on what will be imported and post-import configuration,
-          please see the <a href="{{ config['doc.url.importers'] }}">import documentation</a>.
+          please see the <a href="{{ config['doc.url.importers.{}'.format(importer.source) ] }}">{{importer.source}} import documentation</a>.
       {% endif %}
     </div>