Pārlūkot izejas kodu

[beeswax] Do not show the 'Download links' before query completion

Romain Rigaux 13 gadi atpakaļ
vecāks
revīzija
7137365868

+ 0 - 6
apps/beeswax/src/beeswax/templates/watch_wait.mako

@@ -29,12 +29,6 @@ ${layout.menubar(section='query')}
 		<div class="span3">
 			<div class="well sidebar-nav">
 				<ul class="nav nav-list">
-					% if download_urls:
-					<li class="nav-header">Downloads</li>
-					<li><a target="_blank" href="${download_urls["csv"]}">Download as CSV</a></li>
-					<li><a target="_blank" href="${download_urls["xls"]}">Download as XLS</a></li>
-					<li><a href="${url('beeswax.views.save_results', query.id)}">Save</a></li>
-					% endif
 					<%
 			          n_jobs = hadoop_jobs and len(hadoop_jobs) or 0
 			          mr_jobs = (n_jobs == 1) and "MR Job" or "MR Jobs"

+ 0 - 4
apps/beeswax/src/beeswax/views.py

@@ -790,9 +790,6 @@ def watch_query(request, id):
 
   # Still running
   log = db_utils.db_client().get_log(server_id)
-  download_urls = {}
-  for format in common.DL_FORMATS:
-    download_urls[format] = urlresolvers.reverse(download, kwargs=dict(id=str(id), format=format))
 
   # Keep waiting
   # - Translate context into something more meaningful (type, data)
@@ -800,7 +797,6 @@ def watch_query(request, id):
   return render('watch_wait.mako', request, {
                       'query': query_history,
                       'fwd_params': request.GET.urlencode(),
-                      'download_urls': download_urls,
                       'log': log,
                       'hadoop_jobs': _parse_out_hadoop_jobs(log),
                       'query_context': context,