From: Emilie Date: Tue, 8 Nov 2016 17:48:21 +0000 (+0100) Subject: Blog : deleting useless templates X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5e86a3ca03ee6b93ecb991cf0da445652cab962f;p=mezzo.git Blog : deleting useless templates --- diff --git a/app/templates/blog/blog_post_detail.html b/app/templates/blog/blog_post_detail.html deleted file mode 100644 index b880ff2c..00000000 --- a/app/templates/blog/blog_post_detail.html +++ /dev/null @@ -1,148 +0,0 @@ -{% extends "blog/blog_post_list.html" %} -{% load mezzanine_tags comment_tags keyword_tags rating_tags i18n disqus_tags %} - -{% block meta_title %}{{ blog_post.meta_title }}{% endblock %} - -{% block meta_keywords %}{% metablock %} -{% keywords_for blog_post as tags %} -{% for tag in tags %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %} -{% endmetablock %}{% endblock %} - -{% block meta_description %}{% metablock %} -{{ blog_post.description }} -{% endmetablock %}{% endblock %} - -{% block title %} -{% editable blog_post.title %}{{ blog_post.title }}{% endeditable %} -{% endblock %} - -{% block breadcrumb_menu %} -{{ block.super }} -
  • {{ blog_post.title }}
  • -{% endblock %} - -{% block main %} - -{% block blog_post_detail_postedby %} -{% editable blog_post.publish_date %} -
    - {% trans "published on" %} {{ blog_post.publish_date|date:"DATE_FORMAT" }} -
    -{% endeditable %} -{% endblock %} -{% block blog_post_detail_commentlink %} -

    - {% if blog_post.allow_comments %} - {% if settings.COMMENTS_DISQUS_SHORTNAME %} - ({% spaceless %} - {% trans "Comments" %} - {% endspaceless %}) - {% else %}({% spaceless %} - {% blocktrans count comments_count=blog_post.comments_count %}{{ comments_count }} comment{% plural %}{{ comments_count }} comments{% endblocktrans %} - {% endspaceless %}) - {% endif %} - {% endif %} -

    -{% endblock %} - -{% comment %} -{% block blog_post_detail_featured_image %} -{% if settings.BLOG_USE_FEATURED_IMAGE and blog_post.featured_image %} -

    -{% endif %} -{% endblock %} -{% endcomment %} - -{% if settings.COMMENTS_DISQUS_SHORTNAME %} -{% include "generic/includes/disqus_counts.html" %} -{% endif %} - -{% block blog_post_detail_content %} -{% editable blog_post.content %} -{{ blog_post.content|richtext_filters|safe }} -{% endeditable %} -{% endblock %} - -{% block blog_post_detail_keywords %} -{% keywords_for blog_post as tags %} -{% if tags %} -{% spaceless %} - -{% endspaceless %} -{% endif %} -{% endblock %} - -{% comment %} -{% block blog_post_detail_rating %} -
    -
    - {% rating_for blog_post %} -
    -
    -{% endblock %} -{% endcomment %} - -{% block event_detail_sharebuttons %} - {% with blog_post as object %} - {% include "includes/share_buttons.html" %} - {% endwith %} -{% endblock %} - -{% block blog_post_previous_next %} - -{% endblock %} - - -{% block blog_post_detail_related_posts %} -{% if related_posts or blog_post.events.all %} - -{% endif %} -{% endblock %} - -{% block blog_post_detail_comments %} -{% if blog_post.allow_comments %}{% comments_for blog_post %}{% endif %} -{% endblock %} - -{% endblock %} diff --git a/app/templates/blog/blog_post_list.html b/app/templates/blog/blog_post_list.html deleted file mode 100644 index 924788b3..00000000 --- a/app/templates/blog/blog_post_list.html +++ /dev/null @@ -1,105 +0,0 @@ -{% extends "base.html" %} -{% load i18n mezzanine_tags blog_tags keyword_tags disqus_tags %} - -{% block meta_title %}{% if page %}{{ page.meta_title }}{% else %}{% trans "Articles" %}{% endif %}{% endblock %} - -{% block meta_keywords %}{% metablock %} -{% keywords_for page as keywords %} -{% for keyword in keywords %} - {% if not forloop.first %}, {% endif %} - {{ keyword }} -{% endfor %} -{% endmetablock %}{% endblock %} - -{% block meta_description %}{% metablock %} -{{ page.description }} -{% endmetablock %}{% endblock %} - -{% block title %} -{% if page %} -{% editable page.title %}{{ page.title }}{% endeditable %} -{% else %} -{% trans "Articles" %} -{% endif %} -{% endblock %} - -{% block breadcrumb_menu %} -{{ block.super }} -{% if tag or category or year or month or author %} -
  • {% spaceless %} -{% if tag %} - {% trans "Tag:" %} {{ tag }} -{% else %}{% if category %} - {% trans "Category:" %} {{ category }} -{% else %}{% if year or month %} - {% if month %}{{ month }}, {% endif %}{{ year }} -{% else %}{% if author %} - {% trans "Author:" %} {{ author.get_full_name|default:author.username }} -{% endif %}{% endif %}{% endif %}{% endif %} -{% endspaceless %} -
  • -{% endif %} -{% endblock %} - -{% block main %} - -{% comment %} -{% if tag or category or year or month or author %} - {% block blog_post_list_filterinfo %} -

    - {% if tag %} - {% trans "Viewing posts tagged" %} {{ tag }} - {% else %}{% if category %} - {% trans "Viewing posts for the category" %} {{ category }} - {% else %}{% if year or month %} - {% trans "Viewing posts from" %} {% if month %}{{ month }}, {% endif %} - {{ year }} - {% else %}{% if author %} - {% trans "Viewing posts by" %} - {{ author.get_full_name|default:author.username }} - {% endif %}{% endif %}{% endif %}{% endif %} - {% endblock %} -

    -{% else %} -{% endcomment %} -{% if page %} -{% if page.get_content_model.content %} - {% editable page.get_content_model.content %} - {{ page.get_content_model.content|richtext_filters|safe }} - {% endeditable %} -{% endif %} -{% else %} - {% blog_categories as categories %} - {% if categories %} - -
    - {% endif %} -{# {% endif %}#} - -{% endif %} - -
    -
    - {% for blog_post in blog_posts.object_list %} - {% with blog_post as post %} - {# {% trans "Article" %}#} - {% include 'blog/includes/post_card.html' %} - {% endwith %} - {% endfor %} -
    - -{% if settings.COMMENTS_DISQUS_SHORTNAME %} -{% include "generic/includes/disqus_counts.html" %} -{% endif %} - -{% endblock %} - -{% block right_panel %} -{% include "blog/includes/filter_panel.html" %} -{% endblock %}