Styling, and hoping it looks good on @telling's big screen.

This commit is contained in:
Vidir Valberg Gudmundsson 2017-07-15 15:35:38 +02:00
parent d6a07110b7
commit d2c4a18df7
2 changed files with 30 additions and 9 deletions

View file

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-07-15 09:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sponsors', '0005_sponsor_url'),
]
operations = [
migrations.AlterField(
model_name='sponsor',
name='logo',
field=models.URLField(help_text='A URL to the logo', max_length=255),
),
migrations.AlterField(
model_name='sponsor',
name='url',
field=models.URLField(blank=True, help_text='An URL to the sponsor.', null=True),
),
]

View file

@ -27,24 +27,20 @@ Sponsors | {{ block.super }}
<div class="page-header"> <div class="page-header">
<h1>{{ sponsor.tier.name}}</h1> <h1>{{ sponsor.tier.name}}</h1>
</div> </div>
<section> <section class="text-center">
{% endifchanged %} {% endifchanged %}
<div class="sponsor thumbnail"> <p class="lead">
{% if sponsor.url %} {% if sponsor.url %}
<a href="{{ sponsor.url }}"> <a href="{{ sponsor.url }}">
{% endif %} {% endif %}
<img src="{{ sponsor.logo }}" /> <img class="img-responsive center-block" src="{{ sponsor.logo }}" />
<div class="caption">
{{ sponsor.description }}
</div>
{% if sponsor.url %} {% if sponsor.url %}
</a> </a>
{% endif %} {% endif %}
</div> {{ sponsor.description }}
</p>
{% if forloop.last == True %} {% if forloop.last == True %}
</section> </section>