Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Added version 5.0 to Mobile as well and made it the default. Bug 659078.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed May 23, 2011
1 parent 4d31f9d commit c04d50d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions apps/dashboard/helpers.py
Expand Up @@ -113,8 +113,11 @@ def themes_block(context, themes, defaults=None):
@register.inclusion_tag('dashboard/products.html')
@jinja2.contextfunction
def products_block(context, products, product):
latest_versions = dict((prod.short, Version(v).simplified) for prod, v in
LATEST_BETAS.items())
latest_versions = dict((prod.short,
Version(prod.default_version if
getattr(prod, 'default_version', None)
else v).simplified)
for prod, v in LATEST_BETAS.items())
version_choices = {}
for prod in VERSION_CHOICES:
version_choices = json.dumps(
Expand Down
3 changes: 2 additions & 1 deletion apps/input/__init__.py
Expand Up @@ -100,7 +100,8 @@ class MOBILE:
short = 'mobile'
pretty = _(u'Mobile')
guid = '{a23983c0-fd0e-11dc-95ff-0800200c9a66}'
extra_versions = ['6.0a1', '5.0a2']
extra_versions = ['6.0a1', '5.0a2', '5.0']
default_version = '5.0'
beta_versions = version_list(
dict(product_details.mobile_history_major_releases.items() +
product_details.mobile_history_stability_releases.items() +
Expand Down

0 comments on commit c04d50d

Please sign in to comment.