work on sections
This commit is contained in:
@ -4,7 +4,7 @@ from website.models import *
|
||||
from website.views import *
|
||||
|
||||
from aircox_cms.models import Article
|
||||
from aircox_cms.views import ViewSet, Menu, Section
|
||||
from aircox_cms.views import Menu, Section, Sections, ViewSet
|
||||
from aircox_cms.routes import *
|
||||
from aircox_cms.website import Website
|
||||
|
||||
@ -17,8 +17,8 @@ class ProgramSet (ViewSet):
|
||||
DateRoute,
|
||||
]
|
||||
|
||||
detail_sections = [
|
||||
ScheduleSection
|
||||
detail_sections = ViewSet.detail_sections + [
|
||||
ScheduleSection,
|
||||
]
|
||||
|
||||
class EpisodeSet (ViewSet):
|
||||
@ -42,17 +42,33 @@ class ArticleSet (ViewSet):
|
||||
|
||||
website = Website(
|
||||
name = 'RadioCampus',
|
||||
styles = 'website/styles.css',
|
||||
|
||||
menus = [
|
||||
Menu(
|
||||
position = 'header',
|
||||
sections = [
|
||||
Sections.Image(url = 'website/logo.png'),
|
||||
Sections.Image(url = 'website/colony.png', classes='colony'),
|
||||
]
|
||||
),
|
||||
|
||||
Menu(
|
||||
position = 'top',
|
||||
sections = [
|
||||
Section(content = "Radio Campus le SITE")
|
||||
]
|
||||
)
|
||||
),
|
||||
|
||||
Menu(
|
||||
position = 'left',
|
||||
sections = [
|
||||
Section(content = 'loool<br>blob')
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
website.register_set(ProgramSet)
|
||||
website.register_set(EpisodeSet)
|
||||
website.register_set(ArticleSet)
|
||||
|
Reference in New Issue
Block a user