incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [1/2] git commit: [#6457] Make way for extending tmpl to hide mount fields
Date Wed, 28 Aug 2013 16:56:40 GMT
Updated Branches:
  refs/heads/tv/6457 [created] 04851fa4c


[#6457] Make way for extending tmpl to hide mount fields

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/fc6a6647
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/fc6a6647
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/fc6a6647

Branch: refs/heads/tv/6457
Commit: fc6a6647b454027a3f1332cb4f8121633cb62f34
Parents: eceab84
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Wed Aug 28 16:54:52 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Aug 28 16:54:52 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/templates/importer_base.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fc6a6647/ForgeImporters/forgeimporters/templates/importer_base.html
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/templates/importer_base.html b/ForgeImporters/forgeimporters/templates/importer_base.html
index 7a25543..b97eedf 100644
--- a/ForgeImporters/forgeimporters/templates/importer_base.html
+++ b/ForgeImporters/forgeimporters/templates/importer_base.html
@@ -64,6 +64,7 @@
 <form action="create" method="post" enctype="multipart/form-data">
   {% block importer_fields %}
   {% endblock %}
+  {% if not show_mount_fields is defined or show_mount_fields %}
   <div>
     <label for="mount_label">Label</label>
     <input name="mount_label" value="{{ c.form_values['mount_label'] or target_app.default_mount_label
}}" />
@@ -74,7 +75,7 @@
     <input name="mount_point" value="{{ c.form_values['mount_point'] or target_app.default_mount_point
}}" />
       {{ error('mount_point') }}
   </div>
-
+  {% endif %}
   <input type="submit" value="Import"/>
 </form>
 {% endblock %}


Mime
View raw message