Skip to content

Commit

Permalink
Merge pull request #1724 from jpetto/bug-968314-mwc-news-headlines-on…
Browse files Browse the repository at this point in the history
…-home-page

Add FxOS headlines to home page. Bug 968314.
  • Loading branch information
jgmize committed Feb 23, 2014
2 parents 25ff296 + 3c20a7b commit 6c5c730
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions bedrock/firefox/views.py
Expand Up @@ -32,7 +32,7 @@


LANG_FILES = ['firefox/partners/index'] LANG_FILES = ['firefox/partners/index']


LOCALE_HEADLINES = { LOCALE_FXOS_HEADLINES = {
'de': { 'de': {
'title': u"Firefox OS ist richtungsweisend für die Zukunft des " 'title': u"Firefox OS ist richtungsweisend für die Zukunft des "
"mobilen Marktes", "mobilen Marktes",
Expand All @@ -46,7 +46,7 @@
}, },
'en-US': { 'en-US': {
'title': _('Firefox OS Unleashes the Future of Mobile'), 'title': _('Firefox OS Unleashes the Future of Mobile'),
'url': 'http://blog.mozilla.org/press/2014/02/firefox-os-future-2/', 'url': 'https://blog.mozilla.org/press/2014/02/firefox-os-future-2/',
}, },
'es-AR': { 'es-AR': {
'title': u'Firefox OS te desvela el futuro de lo móvil', 'title': u'Firefox OS te desvela el futuro de lo móvil',
Expand Down Expand Up @@ -219,11 +219,11 @@ def all_downloads(request, channel):
@csrf_protect @csrf_protect
def firefox_partners(request): def firefox_partners(request):
# If the current locale isn't in our list, return the en-US value # If the current locale isn't in our list, return the en-US value
press_locale = request.locale if (request.locale in LOCALE_HEADLINES) else 'en-US' press_locale = request.locale if (request.locale in LOCALE_FXOS_HEADLINES) else 'en-US'


template_vars = { template_vars = {
'locale_headline_url': LOCALE_HEADLINES[press_locale]['url'], 'locale_headline_url': LOCALE_FXOS_HEADLINES[press_locale]['url'],
'locale_headline_title': LOCALE_HEADLINES[press_locale]['title'], 'locale_headline_title': LOCALE_FXOS_HEADLINES[press_locale]['title'],
'js_common': JS_COMMON, 'js_common': JS_COMMON,
'js_mobile': JS_MOBILE, 'js_mobile': JS_MOBILE,
'js_desktop': JS_DESKTOP, 'js_desktop': JS_DESKTOP,
Expand Down
14 changes: 7 additions & 7 deletions bedrock/mozorg/templates/mozorg/home.html
Expand Up @@ -210,25 +210,25 @@ <h4><strong>{{_('Different by&nbsp;design')}}</strong></h4>
<h2>{{ _('In the news') }}</h2> <h2>{{ _('In the news') }}</h2>
<ul class="hfeed cycle-slideshow" data-cycle-timeout="6000" data-cycle-slides="> .hentry" data-cycle-fx="carousel" data-cycle-carousel-fluid="true" data-cycle-carousel-vertical="true" data-cycle-next=".news-buttons .btn-next" data-cycle-prev=".news-buttons .btn-prev" data-cycle-carousel-visible="1" data-cycle-pause-on-hover="true"> <ul class="hfeed cycle-slideshow" data-cycle-timeout="6000" data-cycle-slides="> .hentry" data-cycle-fx="carousel" data-cycle-carousel-fluid="true" data-cycle-carousel-vertical="true" data-cycle-next=".news-buttons .btn-next" data-cycle-prev=".news-buttons .btn-prev" data-cycle-carousel-visible="1" data-cycle-pause-on-hover="true">


{% l10n home_news, 20131010 %} {% l10n home_news, 20140223 %}
<li class="hentry"> <li class="hentry">
<h3 class="entry-title"> <h3 class="entry-title">
<a class="url go" rel="bookmark external" hreflang="en-US" href="{{ url('foundation.annualreport.2012.index') }}"> <a class="url go" rel="bookmark external" hreflang="en-US" href="https://blog.mozilla.org/press/2014/02/firefox-os-future-2/">
State of Mozilla and 2012 Financial Statements Firefox OS Unleashes the Future of Mobile
</a> </a>
</h3> </h3>
</li> </li>
<li class="hentry"> <li class="hentry">
<h3 class="entry-title"> <h3 class="entry-title">
<a class="url go" rel="bookmark external" hreflang="en-US" href="https://blog.mozilla.org/press/2013/11/firefox-marketplace-shows-the-power-of-the-web-delivers-cross-platform-global-and-local-apps/"> <a class="url go" rel="bookmark external" hreflang="en-US" href="https://blog.mozilla.org/press/2014/02/firefox-os-news-2/">
Firefox Marketplace Shows the Power of the Web, Delivers Cross-Platform Global and Local Apps Firefox OS Expands to Higher-Performance Devices and Pushes the Boundaries of Entry-Level Smartphones
</a> </a>
</h3> </h3>
</li> </li>
<li class="hentry"> <li class="hentry">
<h3 class="entry-title"> <h3 class="entry-title">
<a class="url go" rel="bookmark external" hreflang="en-US" href="https://blog.mozilla.org/blog/2013/10/09/mozilla-and-partners-to-kick-off-second-round-of-firefox-os-launches/"> <a class="url go" rel="bookmark external" hreflang="en-US" href="https://blog.mozilla.org/press/2014/02/developer-momentum-2/">
Mozilla and Partners to Kick off Second Round of Firefox OS Launches in More Markets Around the World New Developer Hardware and Tools Show Firefox OS Ecosystem Momentum
</a> </a>
</h3> </h3>
</li> </li>
Expand Down

0 comments on commit 6c5c730

Please sign in to comment.