Esempio n. 1
0
def issuearchive_category(request, issue_number, category_slug):
    """
    Displays category archive of a given issue.
    
    """
    issue = _get_current_issue(issue_number=issue_number)
    return category(request, category_slug, issue=issue, is_archive=True)
Esempio n. 2
0
def preview_category(request, issue_key, category_slug):
    """
    Displays category preview of a given issue.
    
    """
    issue = _get_encoded_issue(issue_key)
    return category(request, category_slug=category_slug, issue=issue, is_preview=True)
Esempio n. 3
0
def preview_category(request, campaign_id, category_slug):
    """
    Displays ads preview on a given category.
    
    """
    extra_context = {}
    extra_context['campaign'] = _get_campaign(campaign_id)
    
    return category(
        request, 
        category_slug=category_slug, 
        issue=None, 
        is_ads_preview=True,
        extra_context=extra_context,
    )