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
751cd8d8
Commit
751cd8d8
authored
9 years ago
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] Loader + CSS + icons, ergo ok ?
parent
d0a31126
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
38 deletions
+102
-38
projects.py
gargantext/views/pages/projects.py
+1
-0
menu.html
templates/pages/menu.html
+34
-32
overview.html
templates/pages/projects/overview.html
+10
-3
project.html
templates/pages/projects/project.html
+57
-3
No files found.
gargantext/views/pages/projects.py
View file @
751cd8d8
...
...
@@ -71,6 +71,7 @@ class NewCorpusForm(forms.Form):
raise
forms
.
ValidationError
(
ugettext_lazy
(
'File too heavy! (>1GB).'
))
return
file_
@
requires_auth
def
project
(
request
,
project_id
):
# current user
...
...
This diff is collapsed.
Click to expand it.
templates/pages/menu.html
View file @
751cd8d8
...
...
@@ -92,37 +92,32 @@
--!>
<!-- <li class="divider"></li> --!>
<a type="button" class="btn btn-default
{% if view == "titles" %}active{%endif%}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/">Titles</a>
<a type="button" class="btn btn-default
{% if view == "journals" %}active{%endif%}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/journals">Journals</a>
<a type="button" class="btn btn-default
{% if view == "terms" %}active{%endif%}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/terms">Terms</a>
<a type="button" class="btn btn-default {% if view == "titles" %} active {% endif %}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/">Titles
</a>
<!-- <li class="divider"></li> --!>
<!-- FIXME put a separator here --!>
<!--
<a type="button" class="btn btn-default
{% if view == "charts" %}active{%endif%}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/terms">Advanced Charts</a>
--!>
<a type="button" class="btn btn-default {% if view == "journals" %} active {% endif %}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/journals">Journals
</a>
<!-- FIXME a pop up for advanced mode of graphs --!>
<a type="button" class="btn btn-default
{% if view == "conditional" %}active{%endif%}"
data-url="/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=conditional&bridgeness=5" onclick='gotoexplorer(this)' >Graphs (Conditional)</a>
<a type="button" class="btn btn-default
{% if view == "distributional" %}active{%endif%}"
data-url="/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=distributional&bridgeness=5" onclick='gotoexplorer(this)' >Graphs (Distributional)</a>
<!--
<a type="button" class="btn btn-default
{% if view == "journalTerms" %}active{%endif%}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/graph">Graphs Journal/Terms</a>
--!>
{% for state in corpus.hyperdata.statuses %}
{% if state.action == "ngrams_extraction" %}
{% if state.complete %}
<a type="button" class="btn btn-default
{% if view == "terms" %} active {% endif %}"
href="/projects/{{project.id}}/corpora/{{ corpus.id }}/terms">Terms</a>
<!-- <li class="divider"></li> --!>
<!-- FIXME a pop up for advanced mode of graphs --!>
<a type="button" class="btn btn-default "
data-url="/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=conditional&bridgeness=5" onclick='gotoexplorer(this)' >Graphs (Conditional)</a>
<a type="button" class="btn btn-default "
data-url="/projects/{{project.id}}/corpora/{{ corpus.id }}/explorer?field1=ngrams&field2=ngrams&distance=distributional&bridgeness=5" onclick='gotoexplorer(this)' >Graphs (Distributional)</a>
{% endif %}
{% endif %}
{% endfor %}
</center>
</div>
</div>
...
...
@@ -130,9 +125,16 @@
<div class="row">
<div class="col-md-4">
{% if project %}
<h3><a href="/projects/{{project.id}}">Project: {{ project.name }}</a>
<br> Corpus: {{ corpus.name }}
<br> ({{ corpus.date }})
<h3><a href="/projects/{{project.id}}">
<span class="glyphicon glyphicon-book" aria-hidden="true"></span>
{{ project.name }}
</a>
<br>
<span class="glyphicon glyphicon-file" aria-hidden="true"></span>
{{ corpus.name }}
<br>
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
{{ corpus.date }}
</h3>
{% endif %}
</div>
...
...
This diff is collapsed.
Click to expand it.
templates/pages/projects/overview.html
View file @
751cd8d8
...
...
@@ -30,8 +30,10 @@
<div
class=
"container theme-showcase"
role=
"main"
>
<div
class=
"jumbotron"
>
<h1>
My projects
</h1>
<p>
Template showing my working space
</p>
<h1>
<span
class=
"glyphicon glyphicon-home"
aria-hidden=
"true"
></span>
Projects
</h1>
<p>
<button
type=
"button"
...
...
@@ -64,7 +66,12 @@
{% for project in projects %}
<!--<div class="col-md-offset-7 col-md-4 content" style="background-color:grey">!-->
<div
id=
"project_{{project.id}}"
class=
"col-md-3 content"
>
<h3><a
href=
"/projects/{{ project.id }}"
>
{{ project.name }}
<h3>
<a
href=
"/projects/{{ project.id }}"
>
<span
class=
"glyphicon glyphicon-book"
aria-hidden=
"true"
></span>
{{ project.name }}
</a>
<a
href=
"/projects/{{project.id}}"
>
<button
type=
"button"
class=
"btn btn-default"
aria-label=
"Left Align"
>
...
...
This diff is collapsed.
Click to expand it.
templates/pages/projects/project.html
View file @
751cd8d8
...
...
@@ -30,7 +30,9 @@
<div
class=
"row"
>
<div
class=
"col-md-6"
>
{% if project %}
<h1>
{{ project.name }}
</h1>
<h1>
<span
class=
"glyphicon glyphicon-book"
aria-hidden=
"true"
></span>
{{ project.name }}
</h1>
<!--<h3> {{number}} corpora </h3>-->
{% endif %}
</div>
...
...
@@ -69,11 +71,11 @@
<div
class=
"container"
>
{% if list_corpora %}
<h1>
Resources
</h1>
<h2>
Corpora
</h2>
<ul>
{% for key, corpora in list_corpora.items %}
<li>
<span
class=
"glyphicon glyphicon-cd"
aria-hidden=
"true"
></span>
{{ key }}
<ul>
{% for corpus in corpora %}
...
...
@@ -84,6 +86,7 @@
Processing, drink a cup of tea, and refresh the page :)
{% else %}
<a
href=
"/projects/{{project.id}}/corpora/{{corpus.id}}"
>
<span
class=
"glyphicon glyphicon-file"
aria-hidden=
"true"
></span>
{{corpus.name}}, {{ corpus.count }} documents {{ corpus.status_message }}
</a>
<a
href=
"/projects/{{project.id}}/corpora/{{corpus.id}}"
>
...
...
@@ -92,7 +95,7 @@
</button>
</a>
{% endifequal %}
<button
type=
"button"
class=
"btn btn-default"
data-container=
"body"
data-toggle=
"popover"
data-placement=
"bottom"
data-content=
"
...
...
@@ -112,6 +115,57 @@
"
>
<span
class=
"glyphicon glyphicon-trash"
aria-hidden=
"true"
></span>
</button>
<p>
<div
class=
"progress"
>
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "parsing" %}
<div
class=
" progress-bar progress-bar-striped
{% if state.complete %}
progress-bar-success
{% else %}
active
{% endif %}
"
role=
"progressbar"
aria-valuenow=
"45"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 50%"
>
<span>
Parsing
{% if state.complete %}
Complete
{% else %}
Processing
{% endif %}
</span>
</div>
{% endifequal %}
{% ifequal state.action "ngrams_extraction" %}
<div
class=
"progress-bar progress-bar-striped
{% if state.complete %}
progress-bar-success
{% else %}
active
{% endif %}
"
role=
"progressbar"
aria-valuenow=
"45"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 50%"
>
<span>
Ngrams extraction
{% if state.complete %}
Complete
{% else %}
Processing
{% endif %}
</span>
</div>
{% endifequal %}
{% endfor %}
</div>
</p>
</li>
{% endfor %}
</ul>
...
...
This diff is collapsed.
Click to expand it.
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