updated the menu bar to include roster

This commit is contained in:
Erin Braswell 2012-05-28 13:53:43 -04:00
parent 1015a14b5d
commit 3c180df80e
3 changed files with 4 additions and 2 deletions

View File

@ -46,6 +46,7 @@
<ul class="nav">
<li {% if view == "league" %}class="active"{%endif%}><a href="{% url league 1 %}">League</a></li>
<li {% if view == "events" %}class="active"{%endif%}><a href="{% url events 1 %}">Events</a></li>
<li {% if view == "roster" %}class="active"{%endif%}><a href="{% url roster %}">Roster</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>

View File

@ -7,7 +7,7 @@
<h1>Roster</h1>
<p class="lead">The WWE Roster</p>
</header>
<br><br><br>
<br>
<table class="table">
<thead>
<tr>

View File

@ -45,6 +45,7 @@ def league(request, league_id):
def roster(request):
context = {
'stars': Star.objects.all()
'stars': Star.objects.all(),
'view': 'roster'
}
return render(request, "roster.html", context)