Skip to content

Commit

Permalink
[admin] Fix missing current_firefox_version in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Apr 26, 2016
1 parent bc2278a commit ae1e156
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snippets/base/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,14 @@ def preview_snippet(request):
skip_boilerplate = strtobool(skip_boilerplate)

template_name = 'base/preview_without_shell.jinja' if skip_boilerplate else 'base/preview.jinja'
current_firefox_version = (
version_list(product_details.firefox_history_major_releases)[0].split('.', 1)[0])

return render(request, template_name, {
'snippets_json': json.dumps([snippet.to_dict()]),
'client': PREVIEW_CLIENT,
'preview': True,
'current_firefox_version': current_firefox_version,
})


Expand Down

0 comments on commit ae1e156

Please sign in to comment.