updated the menu bar to include roster
This commit is contained in:
parent
1015a14b5d
commit
3c180df80e
@ -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>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<h1>Roster</h1>
|
||||
<p class="lead">The WWE Roster</p>
|
||||
</header>
|
||||
<br><br><br>
|
||||
<br>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user