diff --git a/biosql_pyramid/__init__.py b/biosql_pyramid/__init__.py
index 0b6c41c..2ceb95b 100644
--- a/biosql_pyramid/__init__.py
+++ b/biosql_pyramid/__init__.py
@@ -10,5 +10,7 @@ def main(global_config, **settings):
#config.add_route('home', '/')
config.add_route('summary', '/')
config.add_route('bioentry_details', 'bioentry_details')
+ config.add_route('genbank_upload', 'genbank_upload')
+ config.add_route('download_file', 'download_file')
config.scan()
return config.make_wsgi_app()
diff --git a/biosql_pyramid/static/javascript/summary.js b/biosql_pyramid/static/javascript/summary.js
index 449754e..f5f32b3 100644
--- a/biosql_pyramid/static/javascript/summary.js
+++ b/biosql_pyramid/static/javascript/summary.js
@@ -27,11 +27,13 @@ $(document).ready(function() {
this.disable();
},
onComplete: function(file, response) {
- console.info(response);
+ if (response.indexOf('Success') == -1) {
+ alert(response);
+ }
//button.text('Upload');
button.removeClass("ui-state-disabled");
- this.enable();
- }
+ location.reload();
+ },
});
/* Hover and click logic for buttons:
diff --git a/biosql_pyramid/templates/bioentry_details.mako b/biosql_pyramid/templates/bioentry_details.mako
index ecd60d4..5bca1f1 100644
--- a/biosql_pyramid/templates/bioentry_details.mako
+++ b/biosql_pyramid/templates/bioentry_details.mako
@@ -1,25 +1,40 @@
-
+
+
+
+
+
+ % for key, val in info:
+
+ ${key} |
+ % if isinstance(val, list):
+
+
+ % for v in val:
+
+ ${v[0]} |
+
+ % endfor
+
+ |
+ % else:
+ ${val} |
+ % endif
+
+ % endfor
+
+
+ % for seqcol in sequence:
+ ${seqcol}
+ % endfor
+
+
+
+
diff --git a/biosql_pyramid/templates/summary.mako b/biosql_pyramid/templates/summary.mako
index a016489..7007dee 100644
--- a/biosql_pyramid/templates/summary.mako
+++ b/biosql_pyramid/templates/summary.mako
@@ -13,11 +13,19 @@
- % for record in records:
- ${record | n}
+ % for dbid, record in records:
+
+
+
% endfor