updated the menu bar to include roster
This commit is contained in:
parent
1015a14b5d
commit
3c180df80e
@ -46,6 +46,7 @@
|
|||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li {% if view == "league" %}class="active"{%endif%}><a href="{% url league 1 %}">League</a></li>
|
<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 == "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>
|
</ul>
|
||||||
</div><!--/.nav-collapse -->
|
</div><!--/.nav-collapse -->
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<h1>Roster</h1>
|
<h1>Roster</h1>
|
||||||
<p class="lead">The WWE Roster</p>
|
<p class="lead">The WWE Roster</p>
|
||||||
</header>
|
</header>
|
||||||
<br><br><br>
|
<br>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -45,6 +45,7 @@ def league(request, league_id):
|
|||||||
|
|
||||||
def roster(request):
|
def roster(request):
|
||||||
context = {
|
context = {
|
||||||
'stars': Star.objects.all()
|
'stars': Star.objects.all(),
|
||||||
|
'view': 'roster'
|
||||||
}
|
}
|
||||||
return render(request, "roster.html", context)
|
return render(request, "roster.html", context)
|
||||||
|
Loading…
Reference in New Issue
Block a user