SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit fd1640b3 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add logo and cover_image to Proceedings

parent 3619d6a1
No related branches found
No related tags found
No related merge requests found
# Generated by Django 2.1.8 on 2019-06-26 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('proceedings', '0004_auto_20190512_0918'),
]
operations = [
migrations.AddField(
model_name='proceedings',
name='cover_image',
field=models.ImageField(blank=True, upload_to='proceedings/images/'),
),
migrations.AddField(
model_name='proceedings',
name='logo',
field=models.ImageField(blank=True, upload_to='proceedings/images/'),
),
]
......@@ -31,6 +31,8 @@ class Proceedings(TimeStampedModel):
event_description = models.TextField(blank=True)
event_start_date = models.DateField(null=True, blank=True)
event_end_date = models.DateField(null=True, blank=True)
logo = models.ImageField(upload_to='proceedings/images/', blank=True)
cover_image = models.ImageField(upload_to='proceedings/images/', blank=True)
# Fellows
lead_fellow = models.ForeignKey('colleges.Fellowship', null=True, blank=True,
......
{% if proceedings.cover_image %}
<div class="row">
<div class="col-lg-9">
{% endif %}
{% if proceedings.logo %}
<div class="row">
<div class="col-10">
{% endif %}
<h3>{{ proceedings.event_name }} {% if proceedings.event_suffix %}({{ proceedings.event_suffix }}){% endif %}</h3>
<div class="mb-4">
Event dates: from {{ proceedings.event_start_date }} to {{ proceedings.event_end_date }}.
......@@ -9,8 +18,24 @@
Prepare your manuscript according to <a href="{% url 'submissions:author_guidelines' %}">our guidelines</a>, using <a href>our LaTeX template</a>.
{% endif %}
</div>
{% if proceedings.logo %}
</div>
<div class="col-lg-2">
<img class="d-flex mr-3" src="{{ proceedings.logo.url }}" alt="logo"/>
</div>
</div>
{% endif %}
<p>{{ proceedings.event_description|safe|linebreaksbr }}</p>
{% if proceedings.cover_image %}
</div>
<div class="col-lg-1"></div>
<div class="col-lg-2">
<img class="d-flex mr-3" src="{{ proceedings.cover_image.url }}" alt="cover_image"/>
</div>
</div>
{% endif %}
{% if proceedings.fellowships.guests.exists %}
<h3>Guest Fellows responsible for this Issue</h3>
<ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment