Skip to content

Commit

Permalink
Add /discovery. bug 553450
Browse files Browse the repository at this point in the history
  • Loading branch information
clouserw committed Mar 22, 2010
1 parent fa6f18a commit 20d9ba9
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions apps/addons/templates/addons/discovery.html
@@ -0,0 +1,35 @@
{# Reminder: When this page is done for real, be sure to add L10n #}

<style type="text/css">
#horizon {
text-align: center;
position: absolute;
top: 50%;
left: 0px;
width: 100%;
height: 1px;
overflow: visible;
display: block;
}

#content {
width: 600px;
height: 200px;
margin-left: -300px;
position: absolute;
top: -100px;
left: 50%;
visibility: visible;
}
</style>
<div id="horizon">
<div id="content">
<h1>Something good is coming!</h1>
<p>This area will soon explain what add-ons are, feature some of the best,
and help you pick from thousands of ways to customize Firefox.</p>

<p>Until then, visit the
<a href="https://addons.mozilla.org/en-US/firefox/">Firefox Add-ons</a>
website.</p>
</div>
</div>
2 changes: 2 additions & 0 deletions apps/addons/urls.py
Expand Up @@ -22,6 +22,8 @@
# URLs for a single add-on.
('^addon/(?P<addon_id>\d+)/', include(detail_patterns)),

url('^discovery/?', views.discovery, name='addon.discovery'),

# For happy install button debugging.
url('^addons/smorgasbord$', 'addons.buttons.smorgasbord'),
url('^addons/buttons.js$', 'addons.buttons.js'),
Expand Down
4 changes: 4 additions & 0 deletions apps/addons/views.py
Expand Up @@ -207,3 +207,7 @@ def meet_the_developer(request, addon_id, extra=None):
addon = get_object_or_404(Addon.objects.valid(), id=addon_id)
return jingo.render(request, 'addons/meet_the_developer.html',
{'addon': addon})


def discovery(request):
return jingo.render(request, 'addons/discovery.html')

0 comments on commit 20d9ba9

Please sign in to comment.