Exemplo n.º 1
0
def issuearchive_voyages(request, issue_number):
    """
    Displays "Voyages" category of a given issue.
    
    """
    issue = _get_current_issue(issue_number=issue_number)
    return voyages(request, issue=issue, is_archive=True)
Exemplo n.º 2
0
def preview_category_voyages(request, issue_key):
    """
    Displays "Voyages" category of a given issue.
    
    """
    issue = _get_encoded_issue(issue_key)
    return voyages(request, issue=issue, is_preview=True)
Exemplo n.º 3
0
def preview_category_voyages(request, campaign_id):
    """
    Displays ads preview on "Voyages" category.
    
    """
    extra_context = {}
    extra_context['campaign'] = _get_campaign(campaign_id)
    
    return voyages(
        request, 
        issue=None, 
        is_ads_preview=True, 
        extra_context=extra_context,
    )