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
2a60c72f
Commit
2a60c72f
authored
Nov 18, 2015
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEAT] adding laboratories to page support, reordering versions numbers.
parent
d98db104
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
24 deletions
+52
-24
about.py
gargantext_web/about.py
+9
-3
views.py
gargantext_web/views.py
+3
-2
about.html
templates/about.html
+40
-19
No files found.
gargantext_web/about.py
View file @
2a60c72f
...
@@ -59,7 +59,7 @@ def get_partners():
...
@@ -59,7 +59,7 @@ def get_partners():
Function to get list of each sponsor as dict of institutional informations.
Function to get list of each sponsor as dict of institutional informations.
'''
'''
sponsor
s
=
[
institution
s
=
[
{
'name'
:
'Mines ParisTech'
,
'website'
:
'http://mines-paristech.fr'
,
'picture'
:
'mines.png'
,
'funds'
:
''
},
{
'name'
:
'Mines ParisTech'
,
'website'
:
'http://mines-paristech.fr'
,
'picture'
:
'mines.png'
,
'funds'
:
''
},
{
'name'
:
'Institut Pasteur'
,
'website'
:
'http://www.pasteur.fr'
,
'picture'
:
'pasteur.png'
,
'funds'
:
''
},
{
'name'
:
'Institut Pasteur'
,
'website'
:
'http://www.pasteur.fr'
,
'picture'
:
'pasteur.png'
,
'funds'
:
''
},
{
'name'
:
'ADEME'
,
'website'
:
'http://www.ademe.fr'
,
'picture'
:
'ademe.png'
,
'funds'
:
''
},
{
'name'
:
'ADEME'
,
'website'
:
'http://www.ademe.fr'
,
'picture'
:
'ademe.png'
,
'funds'
:
''
},
...
@@ -68,6 +68,12 @@ def get_partners():
...
@@ -68,6 +68,12 @@ def get_partners():
# copy paste the line above and write your informations please
# copy paste the line above and write your informations please
]
]
labos
=
[
{
'name'
:
'Centre de Sociologie de l
\'
innovation'
,
'website'
:
'http://www.csi.mines-paristech.fr/en/'
,
'picture'
:
'csi.png'
,
'funds'
:
''
},
#{ 'name' : '', 'website' : '', 'picture' : '', 'funds':''},
# copy paste the line above and write your informations please
]
grants
=
[
grants
=
[
{
'name'
:
'Forccast'
,
'website'
:
'http://forccast.hypotheses.org/'
,
'picture'
:
'forccast.png'
,
'funds'
:
''
},
{
'name'
:
'Forccast'
,
'website'
:
'http://forccast.hypotheses.org/'
,
'picture'
:
'forccast.png'
,
'funds'
:
''
},
#{ 'name' : '', 'website' : '', 'picture' : '', 'funds':''},
#{ 'name' : '', 'website' : '', 'picture' : '', 'funds':''},
...
@@ -75,9 +81,9 @@ def get_partners():
...
@@ -75,9 +81,9 @@ def get_partners():
]
]
random
.
shuffle
(
sponsor
s
)
random
.
shuffle
(
institution
s
)
#random.shuffle(grants)
#random.shuffle(grants)
return
(
sponsor
s
,
grants
)
return
(
institutions
,
labo
s
,
grants
)
gargantext_web/views.py
View file @
2a60c72f
...
@@ -165,13 +165,14 @@ def get_about(request):
...
@@ -165,13 +165,14 @@ def get_about(request):
date
=
datetime
.
datetime
.
now
()
date
=
datetime
.
datetime
.
now
()
members
=
about
.
get_team
()
members
=
about
.
get_team
()
sponsor
s
,
grants
=
about
.
get_partners
()
institutions
,
labo
s
,
grants
=
about
.
get_partners
()
html
=
template
.
render
(
Context
({
\
html
=
template
.
render
(
Context
({
\
'user'
:
user
,
\
'user'
:
user
,
\
'date'
:
date
,
\
'date'
:
date
,
\
'team'
:
members
,
\
'team'
:
members
,
\
'sponsors'
:
sponsors
,
\
'institutions'
:
institutions
,
\
'labos'
:
labos
,
\
'grants'
:
grants
,
\
'grants'
:
grants
,
\
}))
}))
...
...
templates/about.html
View file @
2a60c72f
...
@@ -35,13 +35,18 @@
...
@@ -35,13 +35,18 @@
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"container"
>
<div
class=
"container"
>
<ul>
<ul>
<li>
Versions from 0.1 to 0.9
</li>
<li>
Version 2.0
</li>
<ul>
<ul>
<li>
[NAME] Black Salade
</li>
<li>
[NAME] Red Lemon
</li>
<li>
[Law] Licence of Gargantext is GPL v3+
</li>
<li>
[NLP] Turbo Parser, MELT
</li>
<li>
[NLP] NLTK, TreeTagger
</li>
<li>
[FEATURE] Ngrams Table management
</li>
<li>
[FEATURE] Graph Explorer
</li>
<li>
[FEATURE] Annotation local view
</li>
<li>
[FEATURE] Lexical Graph with temporal filter
</li>
<li>
[FEATURE] Graph bi-Partite
</li>
</ul>
</ul>
<li>
Versions from 1.0 to 1.9
</li>
<li>
Versions from 1.0 to 1.9
</li>
<ul>
<ul>
<li>
[NAME] Rose Bonbon
</li>
<li>
[NAME] Rose Bonbon
</li>
...
@@ -50,16 +55,19 @@
...
@@ -50,16 +55,19 @@
<li>
[FEATURE] Advanced Chart
</li>
<li>
[FEATURE] Advanced Chart
</li>
<li>
[FEATURE] Remove duplicates
</li>
<li>
[FEATURE] Remove duplicates
</li>
</ul>
</ul>
<li>
Version 2.0
</li>
<li>
Versions from 0.1 to 0.9
</li>
<ul>
<ul>
<li>
[NAME] Red Lemon
</li>
<li>
[NAME] Black Salade
</li>
<li>
[NLP] Turbo Parser, MELT
</li>
<li>
[Law] Licence of Gargantext is GPL v3+
</li>
<li>
[FEATURE] Ngrams Table management
</li>
<li>
[NLP] NLTK, TreeTagger
</li>
<li>
[FEATURE] Annotation local view
</li>
<li>
[FEATURE] Graph Explorer
</li>
<li>
[FEATURE] Lexical Graph with temporal filter
</li>
<li>
[FEATURE] Graph bi-Partite
</li>
</ul>
</ul>
</ul>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -157,7 +165,7 @@
...
@@ -157,7 +165,7 @@
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
<h2
class=
"panel-title"
>
<h2
class=
"panel-title"
>
<center>
<center>
<h2>
Institutional and financial support
</h2>
<h2>
Institutional
, research
and financial support
</h2>
<h3>
Host institutions
</h3>
<h3>
Host institutions
</h3>
<a
href=
"http://www.cnrs.fr"
target=
"_blank"
>
<a
href=
"http://www.cnrs.fr"
target=
"_blank"
>
<img
src=
"{% static "
img
/
sponsors
/
cnrs
.
png
"%}"
alt=
"CNRS"
style=
"height:100px"
>
<img
src=
"{% static "
img
/
sponsors
/
cnrs
.
png
"%}"
alt=
"CNRS"
style=
"height:100px"
>
...
@@ -169,14 +177,27 @@
...
@@ -169,14 +177,27 @@
<img
src=
"{% static "
img
/
sponsors
/
cams
.
jpg
"%}"
style=
"height:100px"
>
<img
src=
"{% static "
img
/
sponsors
/
cams
.
jpg
"%}"
style=
"height:100px"
>
</a>
</a>
<h3>
Partners
</h3>
<h3>
Institutional Partners
</h3>
{% for sponsor in sponsors %}
<p>
<a
href=
"{{ sponsor.website }}"
target=
"_blank"
>
{% for institution in institutions %}
<img
src=
"{% static "
img
/
sponsors
/"%}{{
sponsor
.
picture
}}"
style=
"height:100px"
>
<a
href=
"{{ institution.website }}"
target=
"_blank"
>
<img
src=
"{% static "
img
/
sponsors
/"%}{{
institution
.
picture
}}"
style=
"height:100px"
>
</a>
</a>
{% endfor %}
{% endfor %}
</p>
<h3>
Grants
</h3>
<h4>
Laboratory Partners
</h4>
<p>
{% for labo in labos %}
<a
href=
"{{ labo.website }}"
target=
"_blank"
>
<img
src=
"{% static "
img
/
sponsors
/"%}{{
labo
.
picture
}}"
style=
"height:50px"
>
</a>
{% endfor %}
</p>
<h4>
Grants
</h4>
{% for grant in grants %}
{% for grant in grants %}
<a
href=
"{{ grant.website }}"
target=
"_blank"
>
<a
href=
"{{ grant.website }}"
target=
"_blank"
>
<img
src=
"{% static "
img
/
sponsors
/"%}{{
grant
.
picture
}}"
style=
"height:100px"
>
<img
src=
"{% static "
img
/
sponsors
/"%}{{
grant
.
picture
}}"
style=
"height:100px"
>
...
...
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