示例#1
0
文件: views.py 项目: brendena/VPRNews
def now_playing():
    page_title = 'Playing Now On VPR News'
    page_url = FREEZER_BASE_URL.rstrip('/') + request.path
    social = False

    return render_template('now-playing.html',
        page_title=page_title,
        page_url=page_url,
        social=social)
示例#2
0
文件: views.py 项目: brendena/VPRNews
def playlist_calendar():
    page_title = 'VPR News Playlist Calendar'
    page_url = FREEZER_BASE_URL.rstrip('/') + request.path

    social = {
        'title': "VPR News Playlist Calendar",
        'subtitle': "",
        'img': "http://mediad.publicbroadcasting.net/p/vpr/files/styles/placed_wide/public/201407/vpr-classical-hosts.jpg",
        'description': "Looking for a piece you heard on VPR News today, yesterday or last month? Find it here!",
        'twitter_text': "Looking for something you heard on VPR News? Try our playlist calendar!",
        'twitter_hashtag': "News"
    }

    return render_template('content.html',
        page_title=page_title,
        page_url=page_url,
        social=social)