我有一些标签:
<div class="page-tabs">
<ul class="nav nav-tabs">
<li class='@(ViewBag.IsAmendment == "0" ? "active" : "")'>
<a href='@Url.Action("ReviewDetails", "SongsManagement")' title="Original">Original</a>
</li>
@if (!Model.OriginalWork.IsNew)
{
<li class='@(ViewBag.IsAmendment == "1" ? "active" : "")'>
<a href='@Url.Action("ReviewDetails", "SongsManagement",new {isAmendment=1} )' title="Amendment">Active Amendment</a>
</li>
}
</ul>
</div>
当前显示的是 Original,然后如果 DB 中的 IsNew 发生更改,则显示 Active。有没有办法可以隐藏原始选项卡。然后在有有效修订时将其与原件一起展示?
catspeake
相关分类