diff --git a/club/models.py b/club/models.py index 1a63aaca..d2901505 100644 --- a/club/models.py +++ b/club/models.py @@ -138,6 +138,9 @@ class Club(models.Model): """ return user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) + def get_full_logo_url(self): + return "https://%s%s" % (settings.SITH_URL, self.logo.url) + def can_be_edited_by(self, user): """ Method to see if that object can be edited by the given user diff --git a/com/templates/com/news_detail.jinja b/com/templates/com/news_detail.jinja index b0ef41e1..d46d4982 100644 --- a/com/templates/com/news_detail.jinja +++ b/com/templates/com/news_detail.jinja @@ -1,15 +1,23 @@ {% extends "core/base.jinja" %} -{% from 'core/macros.jinja' import user_profile_link, facebook_share, tweet %} +{% from 'core/macros.jinja' import user_profile_link, facebook_share, tweet, link_news_logo, gen_news_metatags %} {% block title %} {% trans %}News{% endtrans %} - {{ object.title }} {% endblock %} +{% block head %} +{{ super() }} +{{ gen_news_metatags(news) }} +{% endblock %} + {% block content %}
{% trans %}Back to news{% endtrans %}
-{{ news.dates.first().start_date|localtime|date(DATETIME_FORMAT) }} @@ -17,9 +25,13 @@ {{ news.dates.first().end_date|localtime|date(DATETIME_FORMAT) }} {{ news.dates.first().end_date|localtime|time(DATETIME_FORMAT) }}
- -