Clickable breadcrumbs
parent
d5ea60289a
commit
c564c8f62a
|
@ -14,18 +14,20 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<li class="breadcrumb-item">Root</li>
|
<li class="breadcrumb-item" @onclick="() => GoToRoot()">Root</li>
|
||||||
}
|
}
|
||||||
|
|
||||||
@for (int i = 0; i < BreadCrumbs.Length; i++)
|
@for (int i = 0; i < BreadCrumbs.Length; i++)
|
||||||
{
|
{
|
||||||
|
var path = String.Join('/', BreadCrumbs.Take(i + 1)) + '/';
|
||||||
|
|
||||||
if (i == BreadCrumbs.Length - 1)
|
if (i == BreadCrumbs.Length - 1)
|
||||||
{
|
{
|
||||||
<li class="breadcrumb-item active">@BreadCrumbs[i]</li>
|
<li class="breadcrumb-item active">@BreadCrumbs[i]</li>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<li class="breadcrumb-item">@BreadCrumbs[i]</li>
|
<li class="breadcrumb-item" @onclick="() => GoToPath(path)">@BreadCrumbs[i]</li>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</ol>
|
</ol>
|
||||||
|
@ -79,6 +81,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.breadcrumb-item:not(.active) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
#ArchiveBrowser tr {
|
#ArchiveBrowser tr {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue