Browse files

Merge pull request #21 from ednapiranha/bug743237

reposition categories on home page; fix bug 743237
  • Loading branch information...
2 parents 1b092a3 + 6e593f9 commit 2bbd75c340b9d053199d85e9de66fdb20211426a @tofumatt tofumatt committed Apr 9, 2012
Showing with 5 additions and 6 deletions.
  1. +4 −4 apps/careers/templates/careers/home.html
  2. +1 −2 apps/careers/views.py
View
8 apps/careers/templates/careers/home.html
@@ -61,14 +61,14 @@ <h1 class="home-header">Careers at Mozilla</h1>
{% endfor %}
</ul>
<ul>
- {% for category in categories[5:] -%}
+ {% for category in categories[5:10] -%}
{{ position_listing(category) }}
{% endfor %}
</ul>
- {% endif %}
- {% if internships %}
<ul class="last">
- {{ position_listing(internships[0]) }}
+ {% for category in categories[10:] -%}
+ {{ position_listing(category) }}
+ {% endfor %}
</ul>
{% endif %}
</div>
View
3 apps/careers/views.py
@@ -5,13 +5,12 @@
def home(request):
- excluded_categories = ['Internships', 'Volunteer and Community Opportunities']
+ excluded_categories = ['Volunteer and Community Opportunities']
categories = list(Category.objects.exclude(
name__in=excluded_categories).order_by('name'))
internships = Category.objects.filter(name='Internships')
return render(request, 'careers/home.html', {
'categories': categories,
- 'internships': internships,
})

0 comments on commit 2bbd75c

Please sign in to comment.