3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-11-22 03:13:12 +00:00

Add minors features

This commit is contained in:
Yoann Pétri 2018-12-10 00:24:40 +01:00
parent c831299090
commit 1cb2561b4c
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,5 @@
from django import template
import random
from preferences.models import GeneralPreferences
register = template.Library()
@ -37,4 +37,5 @@ def grocer():
@register.simple_tag
def global_message():
gp,_ = GeneralPreferences.objects.get_or_create(pk=1)
return gp.global_message
messages = gp.global_message.split("\n")
return random.choice(messages)

View file

@ -39,5 +39,5 @@
<li><a href="https://www.facebook.com/coopesmetz/" class="icon fa-facebook alt"><span class="label">Facebook</span></a></li>
</ul>
</section>
<p class="copyright">coopeV3 &copy; 2016 - 2018. Remi Delannoy - Guillaume Goessel - Yoann Pietri. Design: <a href="https://html5up.net">HTML5 UP</a>.</p>
<p class="copyright">coopeV3 v0.9 (release stable) &copy; 2018 Yoann Pietri.</p>