예제 #1
0
파일: pages.py 프로젝트: rebootl/rubric-dyn
def special(ref):
    '''special pages'''

    row = get_entry_by_ref(ref, 'special')

    return render_template( 'post.html',
                            title = row['title'],
                            page = row,
                            page_nav = None )
예제 #2
0
파일: pages.py 프로젝트: rebootl/rubric-dyn
def show_note(ref):
    '''note pages'''

    row = get_entry_by_ref(ref, 'note')

    page_nav = { 'prev_href': None,
                 'next_href': None,
                 'index': "/notes/" }

    return render_template( 'post.html',
                            title = row['title'],
                            page = row,
                            page_nav = page_nav )
예제 #3
0
파일: pages.py 프로젝트: rebootl/rubric-dyn
def about():
    '''about page'''

    row = get_entry_by_ref('about', 'special')

    # page history
    history_rows = get_entrylist_limit( 'history',
                                        current_app.config['NUM_HISTORY_ON_HOME'] )

    return render_template( 'about.html',
                            title = row['title'],
                            page = row,
                            history = history_rows,
                            page_nav = None )