Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (19 sloc) 672 Bytes
@{
var title = ((string) ViewBag.Title).ToLowerInvariant();
var links = new Dictionary<string, string> {
{"/stars/alive/Grohl","Dave Grohl"},
{"/stars/alive/vedder/","Eddie Vedder"},
{"/stars/alive/springsteen/","Bruce Springsteen"},
{"/stars/alive/love/","Courtney Love"},
};
}
<div class="menu">
<ul>
<li class="label"><b>Living Rockstars:</b></li>
@foreach(var link in links)
{
var active = link.Value.ToLowerInvariant() == title ? "active" : "";
<li class="@active"><a href="@link.Key">@link.Value</a></li>
}
</ul>
</div>