diff --git a/README.md b/README.md index d706595a..325c8d81 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,9 @@ Add a new camp in the admin interface and run ` or go through the manuel process below: * Add a new camp in the admin interface. -* Add a sponsers page, `{camp-slug}-sponsors.html`, to `sponsors/templates`. -* Add a frontpage, `{camp-slug}-camp_detail.html`, to `camps/templates`. -* Add a call for speakers page, `{camp-slug}-call_for_speakers.html`, to `program/templates`. +* Add a sponsers page, `{camp-slug}_sponsors.html`, to `sponsors/templates`. +* Add a frontpage, `{camp-slug}_camp_detail.html`, to `camps/templates`. +* Add a call for speakers page, `{camp-slug}_call_for_speakers.html`, to `program/templates`. * Create `static_src/img/{camp-slug}/logo` and add two logos: * `{camp-slug}-logo-large.png` * `{camp-slug}-logo-small.png` diff --git a/src/camps/management/__init__.py b/src/camps/management/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/camps/management/commands/__init__.py b/src/camps/management/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/src/utils/management/commands/createcamp.py b/src/camps/management/commands/createcamp.py similarity index 91% rename from src/utils/management/commands/createcamp.py rename to src/camps/management/commands/createcamp.py index 1b81da7c..4c55bfcc 100644 --- a/src/utils/management/commands/createcamp.py +++ b/src/camps/management/commands/createcamp.py @@ -28,9 +28,9 @@ class Command(BaseCommand): # files to create, relative to DJANGO_BASE_PATH files = [ - 'sponsors/templates/{camp_slug}-sponsors.html', - 'camps/templates/{camp_slug}-camp_detail.html', - 'program/templates/{camp_slug}-call_for_speakers.html' + 'sponsors/templates/{camp_slug}_sponsors.html', + 'camps/templates/{camp_slug}_camp_detail.html', + 'program/templates/{camp_slug}_call_for_speakers.html' ] # directories to create, relative to DJANGO_BASE_PATH diff --git a/src/camps/models.py b/src/camps/models.py index e3548556..f4989911 100644 --- a/src/camps/models.py +++ b/src/camps/models.py @@ -99,6 +99,10 @@ class Camp(CreatedUpdatedModel, UUIDModel): def logo_large(self): return 'img/%(slug)s/logo/%(slug)s-logo-large.png' % {'slug': self.slug} + @property + def logo_large_svg(self): + return 'img/%(slug)s/logo/%(slug)s-logo-large.svg' % {'slug': self.slug} + def get_days(self, camppart): ''' Returns a list of DateTimeTZRanges representing the days during the specified part of the camp. diff --git a/src/camps/templates/bornhack-2018_camp_detail.html b/src/camps/templates/bornhack-2018_camp_detail.html new file mode 100644 index 00000000..ff27375e --- /dev/null +++ b/src/camps/templates/bornhack-2018_camp_detail.html @@ -0,0 +1,93 @@ +{% extends 'base.html' %} +{% load commonmark %} +{% load static from staticfiles %} +{% load imageutils %} +{% block content %} +
You are very welcome to ask questions and show your interest on our different channels:
+{% include 'includes/contact.html' %} ++ {% thumbnail 'img/bornhack-2016/fonsmark' 'FA0_1983.JPG' 'Happy organisers welcoming people at the entrance to BornHack 2016' %} + {% thumbnail 'img/bornhack-2016/fonsmark' 'FA0_1986.JPG' 'A bus full of hackers arrive at BornHack 2016' %} + {% thumbnail 'img/bornhack-2016/fonsmark' 'FB1_5126.JPG' 'Late night hacking at Baconsvin village at BornHack 2016' %} + {% thumbnail 'img/bornhack-2016/fonsmark' 'FB1_5168.JPG' '#irl_bar by night at BornHack 2016' %} + {% thumbnail 'img/bornhack-2016/esbjerg' '1600x900-B12A2452.jpg' 'Soldering the BornHack 2016 badge' %} + {% thumbnail 'img/bornhack-2016/esbjerg' '1600x900-B12A2608.jpg' 'Colored lights at night' %} + {% thumbnail 'img/bornhack-2016/fonsmark' 'FA0_1961.JPG' 'BornHack' %} + {% thumbnail 'img/bornhack-2016/esbjerg' '1600x900-B12A2485.jpg' 'Colored light in the grass' %} + {% thumbnail 'img/bornhack-2016/esbjerg' '1600x988-B12A2624.jpg' 'Working on decorations' %} + {% thumbnail 'img/bornhack-2016/esbjerg' '1600x900-B12A2604.jpg' 'Sitting around the campfire at BornHack 2016' %} +
+{% endblock content %} + diff --git a/src/camps/views.py b/src/camps/views.py index 034cd267..fce45cd0 100644 --- a/src/camps/views.py +++ b/src/camps/views.py @@ -1,6 +1,6 @@ from django.views.generic import ListView, DetailView from django.utils import timezone -from .models import * +from .models import Camp from django.shortcuts import redirect from .mixins import CampViewMixin from django.views import View @@ -10,7 +10,7 @@ logger = logging.getLogger("bornhack.%s" % __name__) class CampRedirectView(CampViewMixin, View): - logger = logging.getLogger("bornhack.%s" % __name__) + def dispatch(self, request, *args, **kwargs): # find the closest camp in the past prevcamp = Camp.objects.filter(camp__endswith__lt=timezone.now()).order_by('-camp')[0] diff --git a/src/program/templates/bornhack-2018_call_for_speakers.html b/src/program/templates/bornhack-2018_call_for_speakers.html new file mode 100644 index 00000000..1e2c8e6a --- /dev/null +++ b/src/program/templates/bornhack-2018_call_for_speakers.html @@ -0,0 +1,11 @@ +{% extends 'program_base.html' %} + +{% block title %} +Call for Speakers | {{ block.super }} +{% endblock %} + +{% block program_content %} + +We are looking for sponsors to help us make the second BornHack as unforgettable +as the first one. If you would like to sponsor us do not hesitate to contact us at +sponsors@bornhack.dk. If you work for an +organisation or company that you believe might be able and willing to +sponsor {{ camp.title }} please direct the right people to this page.
+ +BornHack is an outdoor tent camping festival with a focus on technology +and society, and how the two interact. The idea and basic concept of BornHack +comes from participation in similar camps in Germany and the Netherlands. These +events have huge traction (thousands of participants, sells out fast) and has +inspired us to make BornHack.
+ +BornHack is put together by a group of people from Denmark and Sweden employed +primarily in the IT industry. The organiser group share a desire to set up a forum +where people with different interests in IT and technology can come together to +share ideas and socialise. Several of the organisers have previously been (or are +still) involved in organising conferences such as +Open Source Days.
+ +For {{ camp.title }} we will be inviting up to 500 paying guests for a full +week, the ambition is to grow the number of attendees over the coming +years. It will take place at Jarlsgaard +on Bornholm, Denmark, where we have a great venue with a fiber connection to the +outside world.
+ +A sponsorship can be in the range of 5000 DKK and up. You get +to have a logo of your choice placed on our website in the sponsors +section, and we can also display tasteful signs or banners in or +around our speakers tent.
+ +Sponsors often prefer to sponsor a certain area or event at the +camp, where we will figure out an appropriate display in cooperation +with you. Suggested sponsorships include:
+ +If you have other ideas you would be interested in sponsoring, reach out to us on +sponsors@bornhack.dk +and we can talk about it. Cash sponsorships are also very welcome.
+{% endblock %} diff --git a/src/sponsors/templates/bornhack-2018_sponsors.html b/src/sponsors/templates/bornhack-2018_sponsors.html new file mode 100644 index 00000000..10995b5a --- /dev/null +++ b/src/sponsors/templates/bornhack-2018_sponsors.html @@ -0,0 +1,25 @@ +{% extends 'base.html' %} +{% load static from staticfiles %} + +{% block title %} +Call for Sponsors | {{ block.super }} +{% endblock %} + +{% block content %} ++We are preparing {{ camp.title }} and we need sponsors. Please read our Call for Sponsors if you want to become a sponsor or if you work for an organisation which might be able to help. +
+ +This is an alphabetical list of the sponsors for {{ camp.title }}. We are very grateful for the help we are getting and we look forward to adding more names to this list!
+ +{% endblock %} diff --git a/src/sponsors/views.py b/src/sponsors/views.py index fa9253e8..bd709166 100644 --- a/src/sponsors/views.py +++ b/src/sponsors/views.py @@ -4,11 +4,9 @@ from camps.mixins import CampViewMixin class SponsorsView(CampViewMixin, TemplateView): def get_template_names(self): - return '%s-sponsors.html' % self.camp.slug + return '%s_sponsors.html' % self.camp.slug class CallForSponsorsView(CampViewMixin, TemplateView): def get_template_names(self): - return '%s-call-for-sponsors.html' % self.camp.slug - - + return '%s_call_for_sponsors.html' % self.camp.slug diff --git a/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-large.png b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-large.png new file mode 100644 index 00000000..654217d7 Binary files /dev/null and b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-large.png differ diff --git a/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-large.svg b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-large.svg new file mode 100644 index 00000000..d96039e2 --- /dev/null +++ b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-large.svg @@ -0,0 +1,28 @@ + + diff --git a/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-small.png b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-small.png new file mode 100644 index 00000000..7ac0501a Binary files /dev/null and b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-small.png differ diff --git a/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-small.svg b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-small.svg new file mode 100644 index 00000000..b3d62499 --- /dev/null +++ b/src/static_src/img/bornhack-2018/logo/bornhack-2018-logo-small.svg @@ -0,0 +1,49 @@ + + \ No newline at end of file