diff --git a/bookwyrm/migrations/0031_auto_20210104_2040.py b/bookwyrm/migrations/0031_auto_20210104_2040.py new file mode 100644 index 000000000..604392d41 --- /dev/null +++ b/bookwyrm/migrations/0031_auto_20210104_2040.py @@ -0,0 +1,28 @@ +# Generated by Django 3.0.7 on 2021-01-04 20:40 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('bookwyrm', '0030_auto_20201224_1939'), + ] + + operations = [ + migrations.AddField( + model_name='sitesettings', + name='favicon', + field=models.ImageField(blank=True, null=True, upload_to='logos/'), + ), + migrations.AddField( + model_name='sitesettings', + name='logo', + field=models.ImageField(blank=True, null=True, upload_to='logos/'), + ), + migrations.AddField( + model_name='sitesettings', + name='logo_small', + field=models.ImageField(blank=True, null=True, upload_to='logos/'), + ), + ] diff --git a/bookwyrm/models/site.py b/bookwyrm/models/site.py index 1577e3696..f20be7ba4 100644 --- a/bookwyrm/models/site.py +++ b/bookwyrm/models/site.py @@ -17,6 +17,15 @@ class SiteSettings(models.Model): code_of_conduct = models.TextField( default="Add a code of conduct here.") allow_registration = models.BooleanField(default=True) + logo = models.ImageField( + upload_to='logos/', null=True, blank=True + ) + logo_small = models.ImageField( + upload_to='logos/', null=True, blank=True + ) + favicon = models.ImageField( + upload_to='logos/', null=True, blank=True + ) support_link = models.CharField(max_length=255, null=True, blank=True) support_title = models.CharField(max_length=100, null=True, blank=True) admin_email = models.EmailField(max_length=255, null=True, blank=True) diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index a25658400..b11ed7feb 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -8,20 +8,23 @@ - + - - + + + + + + -