Commit 43c1b7e5 authored by Administrator's avatar Administrator

[MRK] Adding sponsors.

parent 744903da
...@@ -35,7 +35,9 @@ def get_sponsors(): ...@@ -35,7 +35,9 @@ def get_sponsors():
''' '''
sponsors = [ sponsors = [
{ 'name' : 'Mines ParisTech', 'website' : 'http://mines-paristech.fr', 'picture' : 'logo.png'}, { 'name' : 'Mines ParisTech', 'website' : 'http://mines-paristech.fr', 'picture' : 'mines.png'},
{ 'name' : 'Institut Pasteur', 'website' : 'http://www.pasteur.fr', 'picture' : 'pasteur.png'},
{ 'name' : 'Forccast', 'website' : 'http://forccast.hypotheses.org/', 'picture' : 'forccast.png'},
# copy paste the line above and write your informations please # copy paste the line above and write your informations please
] ]
......
...@@ -150,12 +150,15 @@ def about(request): ...@@ -150,12 +150,15 @@ def about(request):
template = get_template('about.html') template = get_template('about.html')
user = request.user user = request.user
date = datetime.datetime.now() date = datetime.datetime.now()
members = team.get_team() members = team.get_team()
sponsors = team.get_sponsors()
html = template.render(Context({\ html = template.render(Context({\
'user': user,\ 'user': user,\
'date': date,\ 'date': date,\
'team': members,\ 'team': members,\
'sponsors':sponsors,\
})) }))
return HttpResponse(html) return HttpResponse(html)
......
This diff is collapsed.
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
<div class="panel-heading"> <div class="panel-heading">
<h2 class="panel-title"> <h2 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseVersions"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseVersions">
<center>
<h2>Versions</h2> <h2>Versions</h2>
</center>
</a> </a>
</h2> </h2>
</div> </div>
...@@ -61,7 +63,9 @@ ...@@ -61,7 +63,9 @@
<div class="panel-heading"> <div class="panel-heading">
<h2 class="panel-title"> <h2 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseCommunity"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseCommunity">
<center>
<h2>Community</h2> <h2>Community</h2>
</center>
</a> </a>
</h2> </h2>
</div> </div>
...@@ -99,7 +103,9 @@ ...@@ -99,7 +103,9 @@
<div class="panel-heading"> <div class="panel-heading">
<h2 class="panel-title"> <h2 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTeam"> <a data-toggle="collapse" data-parent="#accordion" href="#collapseTeam">
<center>
<h2>Core team</h2> <h2>Core team</h2>
</center>
</a> </a>
</h2> </h2>
</div> </div>
...@@ -135,12 +141,28 @@ ...@@ -135,12 +141,28 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% if sponsors %}
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title">
<center>
<h2>Sponsors</h2>
</center>
<img src="{% static "img/sponsors/cnrs.png"%}" style="100px; height:150px">
<img src="{% static "img/sponsors/iscpif.svg"%}" style="100px; height:150px">
{% for sponsor in sponsors %}
<img src="{% static "img/sponsors/"%}{{ sponsor.picture }}" style="100px; height:150px">
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div> </div>
......
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