Small changes
This commit is contained in:
parent
79e879cb6e
commit
9518d1dab6
@ -1,4 +1,4 @@
|
|||||||
interface SlideSpeaker {
|
export interface SlideSpeaker {
|
||||||
user: string;
|
user: string;
|
||||||
marked: boolean;
|
marked: boolean;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
.lastSpeakers {
|
.lastSpeakers {
|
||||||
color: #9a9898;
|
color: #9a9898;
|
||||||
margin-left: 33px;
|
margin: 20px 0 10px 33px;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.currentSpeaker {
|
.currentSpeaker {
|
||||||
@ -20,6 +19,7 @@
|
|||||||
.nextSpeakers {
|
.nextSpeakers {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
|
margin-top: 20px !important;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
|
@ -1,17 +1,7 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
|
|
||||||
import { BaseSlideComponent } from 'app/slides/base-slide-component';
|
import { BaseSlideComponent } from 'app/slides/base-slide-component';
|
||||||
import { CommonListOfSpeakersSlideData } from '../common/common-list-of-speakers-slide-data';
|
import { CommonListOfSpeakersSlideData, SlideSpeaker } from '../common/common-list-of-speakers-slide-data';
|
||||||
|
|
||||||
/**
|
|
||||||
* Interface, that describes how the speaker-objects look like.
|
|
||||||
*/
|
|
||||||
interface SpeakerObject {
|
|
||||||
user: string;
|
|
||||||
marked: boolean;
|
|
||||||
end_time: number | null;
|
|
||||||
weight: number | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'os-current-list-of-speakers-overlay-slide',
|
selector: 'os-current-list-of-speakers-overlay-slide',
|
||||||
@ -37,12 +27,12 @@ export class CurrentListOfSpeakersOverlaySlideComponent extends BaseSlideCompone
|
|||||||
/**
|
/**
|
||||||
* The current speaker.
|
* The current speaker.
|
||||||
*/
|
*/
|
||||||
public currentSpeaker: SpeakerObject;
|
public currentSpeaker: SlideSpeaker;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List with the next speakers for this list.
|
* List with the next speakers for this list.
|
||||||
*/
|
*/
|
||||||
public nextSpeakers: SpeakerObject[] = [];
|
public nextSpeakers: SlideSpeaker[] = [];
|
||||||
|
|
||||||
public constructor() {
|
public constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
.slidetitle {
|
.slidetitle {
|
||||||
border-bottom: 2px solid #d3d3d3;
|
border-bottom: 2px solid #d3d3d3;
|
||||||
padding-bottom: 20px;
|
padding-bottom: 10px;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
@ -34,7 +34,7 @@
|
|||||||
h2 {
|
h2 {
|
||||||
color: #9a9898;
|
color: #9a9898;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: -10px;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -118,14 +118,14 @@ def get_config_variables():
|
|||||||
|
|
||||||
yield ConfigVariable(
|
yield ConfigVariable(
|
||||||
name="agenda_show_next_speakers",
|
name="agenda_show_next_speakers",
|
||||||
default_value=0,
|
default_value=-1,
|
||||||
input_type="integer",
|
input_type="integer",
|
||||||
label="Number of the next speakers to be shown on the projector",
|
label="Number of the next speakers to be shown on the projector",
|
||||||
help_text="Enter number of the next shown speakers. Choose 0 to disable this.",
|
help_text="Enter number of the next shown speakers. Choose -1 to show all next speakers.",
|
||||||
weight=222,
|
weight=222,
|
||||||
group="Agenda",
|
group="Agenda",
|
||||||
subgroup="List of speakers",
|
subgroup="List of speakers",
|
||||||
validators=(MinValueValidator(0),),
|
validators=(MinValueValidator(-1),),
|
||||||
)
|
)
|
||||||
|
|
||||||
yield ConfigVariable(
|
yield ConfigVariable(
|
||||||
|
@ -157,11 +157,10 @@ async def get_list_of_speakers_slide_data(
|
|||||||
if number_of_last_speakers == 0:
|
if number_of_last_speakers == 0:
|
||||||
speakers_finished = []
|
speakers_finished = []
|
||||||
else:
|
else:
|
||||||
speakers_finished = speakers_finished[
|
# Take the last speakers
|
||||||
-number_of_last_speakers:
|
speakers_finished = speakers_finished[-number_of_last_speakers:]
|
||||||
] # Take the last speakers
|
|
||||||
|
|
||||||
if number_of_next_speakers != 0:
|
if number_of_next_speakers != -1:
|
||||||
speakers_waiting = speakers_waiting[:number_of_next_speakers]
|
speakers_waiting = speakers_waiting[:number_of_next_speakers]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user