Project

General

Profile

« Previous | Next » 

Revision 28b7b336

Added by Frédéric Péters almost 14 years ago

Get keywords from desc.xml to decide if section titles are to be added

View differences:

extra/modules/template.py
40 40
            section_title = '<h2 id="services">%s</h2>\n' % _('Services')
41 41
            response.filter['bigdiv'] = 'rub_service'
42 42

  
43
    if page_title:
44
        if section_title:
45
            page_title = '<h3>%s</h3>' % page_title
43
    if not 'auquotiden-no-titles-in-section' in response.filter.get('keywords', []):
44
        if page_title:
45
            if section_title:
46
                page_title = '<h3>%s</h3>' % page_title
47
            else:
48
                page_title = '<h2 id="info">%s</h2>' % page_title
46 49
        else:
47
            page_title = '<h2 id="info">%s</h2>' % page_title
48
    else:
49
        page_title = ''
50
            page_title = ''
50 51

  
51
    body = '\n'.join((section_title, page_title, body))
52
        body = '\n'.join((section_title, page_title, body))
52 53

  
53 54
    if hasattr(response, 'breadcrumb') and response.breadcrumb:
54 55
        if len(response.breadcrumb) == 1:

Also available in: Unified diff