X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/a9eef437702d5df7a2f97010e6798c689371808c..07ab188d70f8e090ad79090fb467b7f1c1d72ef9:/forum/skins/default/templates/index.html?ds=sidebyside diff --git a/forum/skins/default/templates/index.html b/forum/skins/default/templates/index.html old mode 100755 new mode 100644 index 5bbb192..3c145ef --- a/forum/skins/default/templates/index.html +++ b/forum/skins/default/templates/index.html @@ -1,124 +1,30 @@ -{% extends "base.html" %} +{% extends "questions.html" %} +{% load general_sidebar_tags %} +{% load question_list_tags %} {% load i18n %} -{% load extra_tags %} -{% load humanize %} -{% load extra_filters %} -{% load smart_if %} -{% block title %}{% spaceless %}{% trans "Home" %}{% endspaceless %}{% endblock %} -{% block meta %} - {% endblock %} -{% block forejs %} - - - -{% endblock %} -{% block content %} -
-
{% trans "Questions" %}
-
- {% trans "newest" %} - {% trans "hottest" %} - {% trans "most voted" %} - {% trans "all questions" %} -
-
- -
- {% for question in questions.object_list %} -
-
-
-
{{question.score|intcomma}}
-
{% trans "votes" %}
-
-
-
{{question.answer_count|intcomma}}
-
{% trans "answers" %}
-
-
-
{{question.view_count|cnprog_intword|safe}}
-
{% trans "views" %}
-
-
- -

{{question.title}}

- -
- {% diff_date question.last_activity_at %} - {% if question.last_activity_by %} - {{ question.last_activity_by }} {% get_score_badge question.last_activity_by %} - {% endif %} -
- -
- {% for tag in question.tagname_list %} - - {% endfor %} -
-
- {% endfor %} -
-{% endblock %} - +{% block fulltitle %}{{ settings.APP_TITLE }}{% endblock %} {% block sidebar %} -{% if not request.user.is_authenticated %} -
-

{% trans "welcome to website" %}

-
- {{ settings.APP_INTRO|safe }} - - -
-
-{% else %} -{% include "tag_selector.html" %} -{% endif %} -
-

{% trans "Recent tags" %}

-
-
- {% for tag in tags %} - - {% endfor %} -
- -
-
-{% if awards %} -
-

{% trans "Recent awards" %}

-
- - -
-
-{% endif %} -
-{% trans "subscribe to the questions feed" %} -
-{% endblock %} -{% block tail %} -
{% cnprog_paginator context %}
-
{% cnprog_pagesize context %}
- + {% if not request.user.is_authenticated %} + {% if settings.SHOW_WELCOME_BOX %} +
+

{% trans "welcome to " %}{{ settings.APP_SHORT_NAME }}

+
+ {{ settings.APP_INTRO|safe }} + + +
+
+ {% endif %} + {% endif %} + {% question_list_count %} + {% sidebar_upper %} + {% if request.user.is_authenticated %} + {% tag_selector %} + {% endif %} + {% sidebar_lower %} + {% recent_tags %} + {% recent_awards %} {% endblock %} - \ No newline at end of file + +