diff --git a/src/main/java/model/Speaker.java b/src/main/java/model/Speaker.java index 777afbc..2f3349c 100644 --- a/src/main/java/model/Speaker.java +++ b/src/main/java/model/Speaker.java @@ -67,4 +67,11 @@ public String toString() { public int compareTo(Speaker o) { return toString().compareTo(o.toString()); } + public String getTalksForTwitter() { + StringBuilder talksTwitter= new StringBuilder(); + for(Talk talk : talks){ + talksTwitter.append("🎙️«").append(talk.getTitle()).append("»\n"); + } + return talksTwitter.toString(); + } } diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index de4e0cf..ceb311f 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -120,6 +120,9 @@ views.application.speakers.unavailable=The speaker list is not available yet. views.application.speakers.subscribe=Subscribe to the newsletter to be notified when the speaker list is published. views.application.speaker.title=Speaker +views.application.speaker.linkTitle= Tweet about it ! +views.application.speaker.tweet=We'll have the chance to have %s %s with us at RivieraDEV form the 8 to the 10 of July🌴😎⛱️\n\nCheck it out :\n%s\n\n@%s\n#SophiaAntipolis ☀️🌴\n\n + views.application.schools.title=Riviera DEV action for schools views.application.schools.subtitle=Riviera DEV helps schools teach computer science @@ -240,6 +243,8 @@ views.application.sponsors.level.party=Party views.application.sponsors.level.partner=Partners views.application.sponsors.level.schools=Schools views.application.sponsors.title.platinum=Platinum sponsor +views.application.sponsors.linkTweetTitle= Tweet about it! +views.application.sponsors.tweet=A big thanks to our %s @%s for their sponsorship! 🙏\nCome and meet them at #RivieraDev from the 8th to the 10th of July and discover their activities! 😎⛱️🌴\nGet your tickets at➡️ %s\n\n views.application.becomeSponsor.title=Become sponsor views.application.becomeSponsor.why=Why sponsor Riviera DEV ? diff --git a/src/main/resources/messages_fr.properties b/src/main/resources/messages_fr.properties index 92dc17e..1b3f38f 100644 --- a/src/main/resources/messages_fr.properties +++ b/src/main/resources/messages_fr.properties @@ -122,6 +122,8 @@ views.application.speakers.unavailable=La liste des orateurs n'est pas encore di views.application.speakers.subscribe=Abonnez-vous à la newsletter pour être prévenu dès que les orateurs sont connus. views.application.speaker.title=Orateur +views.application.speaker.linkTitle= Tweetez-le ! +views.application.speaker.tweet=Nous aurons la chance d'avoir %s %s avec nous à RivieraDEV du 8 au 10 Juillet🌴😎⛱️\n\nVenez y assister :\n%s\n\n@%s\n#SophiaAntipolis ☀️🌴\n\n views.application.schools.title=Actions de Riviera DEV pour les écoles views.application.schools.subtitle=Riviera DEV aide les écoles à enseigner l'informatique @@ -242,6 +244,8 @@ views.application.sponsors.level.party=Soirée views.application.sponsors.level.partner=Partenaires views.application.sponsors.level.schools=Écoles views.application.sponsors.title.platinum=Partenaire Platinum +views.application.sponsors.linkTweetTitle= Tweetez-le ! +views.application.sponsors.tweet= Un grand merci à notre sponsor %s @%s pour leur soutien !\nVenez les rencontrer à RivieraDEV du 8 au 10 Juillet! 😎⛱️🌴\nReservez vite vos tickets➡️%s\n\n views.application.becomeSponsor.title=Devenez sponsor views.application.becomeSponsor.why=Pourquoi sponsoriser Riviera DEV ? diff --git a/src/main/resources/templates/Application/speaker.html b/src/main/resources/templates/Application/speaker.html index d2692d7..67a3f3a 100644 --- a/src/main/resources/templates/Application/speaker.html +++ b/src/main/resources/templates/Application/speaker.html @@ -30,6 +30,10 @@