Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sun, 31 Mar 2019 13:55:05 UTC Commit: 9647ced218b13c554f4cbe4ef10004c6dcf6eeb0 https://github.com/geany/www.geany.org/commit/9647ced218b13c554f4cbe4ef10004...
Log Message: ----------- Add simple auto index pages for groups
Modified Paths: -------------- geany/templates/pages/about.html geany/templates/pages/contribute.html geany/templates/pages/documentation.html geany/templates/pages/download.html geany/templates/pages/indexpage.html geany/templates/pages/support.html
Modified: geany/templates/pages/about.html 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1 @@ +indexpage.html \ No newline at end of file
Modified: geany/templates/pages/contribute.html 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1 @@ +indexpage.html \ No newline at end of file
Modified: geany/templates/pages/documentation.html 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1 @@ +indexpage.html \ No newline at end of file
Modified: geany/templates/pages/download.html 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1 @@ +indexpage.html \ No newline at end of file
Modified: geany/templates/pages/indexpage.html 35 lines changed, 35 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1,35 @@ +{% extends "pages/page.html" %} + +{% load mezzanine_tags pages_tags geany_tags %} + +{% block main %}{{ block.super }} + +<div class="well"> + +{% block content_before %} +{% endblock %} + +{% block richtext_content %} +<h1>{{ page.title }}</h1> + +{# Simple index page - dynamically create a list of links to sub pages #} + <div class="list-group"> + {% for child_page in page.children.all %} + + {# filter for pages shown in the top menu ('1') #} + {% if '1' in child_page.in_menus %} + <a href="{{ child_page.get_absolute_url }}" class="list-group-item">{{ child_page.title }}</a> + {% endif %} + {% empty %} + <p>No sub pages</p> + {% endfor %} + </div> + +{% block content_after %} +{% endblock %} + +{% endblock %} + +</div> + +{% endblock %}
Modified: geany/templates/pages/support.html 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -0,0 +1 @@ +indexpage.html \ No newline at end of file
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).