Esempio n. 1
0
def promo_video_twilight(request):
    """Twilight parody promo video."""
    desc = _('A teenage girl learns the truth about the fox. Get inspired for '
             'your Firefox Flicks entry by checking out our video.')
    d = dict(video_title=_('Twilight'),
             video_description=desc,
             tweet_text=desc,
             page_type='videos',
             video_embed=vidly_embed_code(promo_video_shortlink('twilight'),
                                          width='100%'))
    return render(request, 'videos/2012/promo.html', d)
Esempio n. 2
0
def promo_video_twilight(request):
    """Twilight parody promo video."""
    desc = _('A teenage girl learns the truth about the fox. Get inspired for '
             'your Firefox Flicks entry by checking out our video.')
    d = dict(video_title=_('Twilight'),
             video_description=desc,
             tweet_text=desc,
             page_type='videos',
             video_embed=vidly_embed_code(promo_video_shortlink('twilight'),
                                          width='100%'))
    return render(request, 'videos/2012/promo.html', d)
Esempio n. 3
0
def promo_video_noir(request):
    """Film Noir promo video."""
    d = dict(video_title=_('Noir'),
             video_description=_('The fox meets a damsel in distress, but can '
                                 'he help her? Get inspired for your Firefox '
                                 'Flicks entry by checking out our video.'),
             tweet_text=_('The fox meets a damsel in distress, but can he help '
                          'her?'),
             page_type='videos',
             video_embed=vidly_embed_code(promo_video_shortlink('noir'),
                                          width='100%'))
    return render(request, 'videos/2012/promo.html', d)
Esempio n. 4
0
def promo_video_noir(request):
    """Film Noir promo video."""
    d = dict(video_title=_('Noir'),
             video_description=_('The fox meets a damsel in distress, but can '
                                 'he help her? Get inspired for your Firefox '
                                 'Flicks entry by checking out our video.'),
             tweet_text=_('The fox meets a damsel in distress, but can he help '
                          'her?'),
             page_type='videos',
             video_embed=vidly_embed_code(promo_video_shortlink('noir'),
                                          width='100%'))
    return render(request, 'videos/2012/promo.html', d)
Esempio n. 5
0
def promo_video_dance(request):
    """Dancing promo video."""
    d = dict(video_title=_('Dance'),
             video_description=_("He's got the moves, he's got ambition. How "
                                 "far can this fox's feet take him? Get "
                                 "inspired for your Firefox Flicks entry by "
                                 "checking out our video."),
             tweet_text=_("He's got the moves. He's got ambition. How far can "
                          "this fox's feet take him?"),
             page_type='videos',
             video_embed=vidly_embed_code(promo_video_shortlink('dance'),
                                          width='100%'))
    return render(request, 'videos/2012/promo.html', d)
Esempio n. 6
0
def promo_video_dance(request):
    """Dancing promo video."""
    d = dict(video_title=_('Dance'),
             video_description=_("He's got the moves, he's got ambition. How "
                                 "far can this fox's feet take him? Get "
                                 "inspired for your Firefox Flicks entry by "
                                 "checking out our video."),
             tweet_text=_("He's got the moves. He's got ambition. How far can "
                          "this fox's feet take him?"),
             page_type='videos',
             video_embed=vidly_embed_code(promo_video_shortlink('dance'),
                                          width='100%'))
    return render(request, 'videos/2012/promo.html', d)
Esempio n. 7
0
 def embed_html(self, width=600, height=337):
     """Return the escaped HTML code to embed this video."""
     return vidly_embed_code(self.shortlink, width=width, height=height)
Esempio n. 8
0
 def embed_html(self, width=600, height=337):
     """Return the escaped HTML code to embed this video."""
     return vidly_embed_code(self.shortlink, width=width, height=height)