Commit f1476df9 authored by c24b's avatar c24b

WAIT for crawl

parent 401ab95a
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
{% block content %} {% block content %}
<div class="container theme-showcase" role="main"> <div class="container theme-showcase" role="main">
<div class="jumbotron"> <div class="jumbotron">
<div class="row"> <div class="row">
...@@ -35,6 +37,7 @@ ...@@ -35,6 +37,7 @@
<!--<h3> {{number}} corpora </h3>--> <!--<h3> {{number}} corpora </h3>-->
{% endif %} {% endif %}
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<p> <p>
{% if donut %} {% if donut %}
...@@ -68,6 +71,16 @@ ...@@ -68,6 +71,16 @@
<div class="container"> <div class="container">
<!-- Modal -->
<div id="wait" class="modal row col-md-6">
<div class="modal-dialog ">
<h2>Your file has been uploaded ! </h2>
<h2>Gargantext need some time to eat it.</h2>
<h2>Duration depends on the size of the dish.</h2>
<a class="btn btn-primary btn-lg" href="/projects/{{ project.id }}" title="Click and test by yourself">Continue on Gargantext</a>
</div>
</div>
{% if list_corpora %} {% if list_corpora %}
{% for key, corpora in list_corpora.items %} {% for key, corpora in list_corpora.items %}
...@@ -184,7 +197,9 @@ ...@@ -184,7 +197,9 @@
{% endif %} {% endif %}
<!-- Modal -->
<div class="modal fade" id="stack1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="stack1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
...@@ -318,7 +333,9 @@ ...@@ -318,7 +333,9 @@
// console.log(data) // console.log(data)
setTimeout( setTimeout(
function() { function() {
location.reload(); $('#addcorpus').modal('hide');
$("#wait").modal("show");
}, 3000); }, 3000);
}, },
error: function(result) { error: function(result) {
...@@ -563,9 +580,11 @@ ...@@ -563,9 +580,11 @@
// console.log(data) // console.log(data)
setTimeout( setTimeout(
function() { function() {
$('#addcorpus').modal('hide');
$("#wait").modal("show");
location.reload(); //location.reload();
}, 5000); }, 3000);
}, },
error: function(result) { error: function(result) {
console.log("in testISTEX(). Data not found"); console.log("in testISTEX(). Data not found");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment