Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
be5c6685
Commit
be5c6685
authored
Apr 22, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Intermediate page after adding a new corpus (prevent unwanted reloadings).
parent
7c9beb7a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
4 deletions
+56
-4
projects.py
gargantext/views/pages/projects.py
+24
-0
urls.py
gargantext/views/pages/urls.py
+4
-3
project.html
templates/pages/projects/project.html
+1
-1
wait.html
templates/pages/projects/wait.html
+27
-0
No files found.
gargantext/views/pages/projects.py
View file @
be5c6685
...
...
@@ -98,6 +98,16 @@ def project(request, project_id):
# parse_extract: fileparsing -> ngram extraction -> lists
scheduled
(
parse_extract_indexhyperdata
)(
corpus
.
id
)
return
render
(
template_name
=
'pages/projects/wait.html'
,
request
=
request
,
context
=
{
'user'
:
request
.
user
,
'project'
:
project
,
},
)
# corpora within this project
corpora
=
project
.
children
(
'CORPUS'
)
.
all
()
sourcename2corpora
=
defaultdict
(
list
)
...
...
@@ -161,3 +171,17 @@ def project(request, project_id):
'query_size'
:
QUERY_SIZE_N_DEFAULT
,
},
)
def
wait
(
request
,
project_id
):
'''Gargantext out of service
'''
return
render
(
template_name
=
'pages/projects/wait.html'
,
request
=
request
,
context
=
{
'user'
:
request
.
user
,
'project'
:
project
,
},
)
gargantext/views/pages/urls.py
View file @
be5c6685
...
...
@@ -16,8 +16,9 @@ urlpatterns = [
url
(
r'^auth/logout/?$'
,
auth
.
logout
),
# projects
url
(
r'^projects/?$'
,
projects
.
overview
),
url
(
r'^projects/(\d+)/?$'
,
projects
.
project
),
url
(
r'^projects/?$'
,
projects
.
overview
),
url
(
r'^projects/(\d+)/wait$'
,
projects
.
wait
),
url
(
r'^projects/(\d+)/?$'
,
projects
.
project
),
# corpora
url
(
r'^projects/(\d+)/corpora/(\d+)/?$'
,
corpora
.
docs_by_titles
),
...
...
@@ -28,5 +29,5 @@ urlpatterns = [
# terms table for the corpus
url
(
r'^projects/(\d+)/corpora/(\d+)/terms/?$'
,
terms
.
ngramtable
),
]
templates/pages/projects/project.html
View file @
be5c6685
...
...
@@ -288,7 +288,7 @@
$
(
"#submit_thing"
).
prop
(
'onclick'
,
null
);
var
theType
=
$
(
"#id_type option:selected"
).
html
();
console
.
log
(
"consoling the type
eee
: "
)
console
.
log
(
"consoling the type: "
)
console
.
log
(
theType
)
if
(
theType
==
"Pubmed (XML format)"
)
doTheQuery
();
if
(
theType
==
"ISTex"
)
{
...
...
templates/pages/projects/wait.html
0 → 100644
View file @
be5c6685
{% extends "pages/menu.html" %}
{% block css %}
{% load staticfiles %}
<link
rel=
"stylesheet"
href=
"{% static "
css
/
bootstrap
.
css
"
%}"
>
<script
src=
"{% static "
js
/
jquery
/
jquery
.
min
.
js
"
%}"
type=
"text/javascript"
></script>
{% endblock %}
{% block content %}
<div
class=
"container theme-showcase"
role=
"main"
>
<div
class=
"jumbotron"
>
<h2>
Your file has been uploaded !
<br>
Gargantext need some time to eat it and deliver its.
</h2>
<h2>
Thanks for your comprehension
</h2>
<a
class=
"btn btn-primary btn-lg"
href=
"/projects/{{ project.id }}"
title=
"Click and test by yourself"
>
Continue on Gargantext
</a>
</div>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment