56 lines
3.1 KiB
Plaintext
56 lines
3.1 KiB
Plaintext
|
@using Resources
|
||
|
@{
|
||
|
var controller = ViewContext.RouteData.Values["controller"].ToString();
|
||
|
}
|
||
|
@helper actived(string c, string controller)
|
||
|
{
|
||
|
var Clist = c.ToLowerInvariant().Split(',').ToList();
|
||
|
if (Clist.Contains(controller.ToLowerInvariant()))
|
||
|
{
|
||
|
@:active
|
||
|
}
|
||
|
}
|
||
|
<nav class="navbar navbar-light nav_body">
|
||
|
<div class="survey_form_logo">
|
||
|
@if (string.IsNullOrEmpty(ViewBag.customLoginImg))
|
||
|
{
|
||
|
<img src="~/Browser_Local/img/carbon_Logo.svg"
|
||
|
style="border-style: none; border: none; outline: none;" />
|
||
|
}
|
||
|
</div>
|
||
|
<div>
|
||
|
<div>
|
||
|
<div class="home_user_login">
|
||
|
<a href="~/account/logout" style="color: #000">@Resource.StaticLabelGlobal_Logout</a>
|
||
|
</div>
|
||
|
<div class="home_culture_select">
|
||
|
<div class="dropdown">
|
||
|
<a href="#" class="dropdown-toggle" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-expanded="false">
|
||
|
@Resource.StaticLabelCulture
|
||
|
</a>
|
||
|
<ul id="setculture" class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
||
|
<li class="dropdown-item">繁體中文<input type="hidden" value="zh-tw" /></li>
|
||
|
<li class="dropdown-item">簡體中文<input type="hidden" value="zh-cn" /></li>
|
||
|
<li class="dropdown-item">English<input type="hidden" value="en-us" /></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="home_culture_select">
|
||
|
<div class="dropdown @actived("PublicReferenceFile, PublicMessage, account", controller)">
|
||
|
<a href="#" class="dropdown-toggle" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-expanded="false">
|
||
|
@Resource.LCAStatus<span class="caret"></span>
|
||
|
</a>
|
||
|
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
||
|
<li class="dropdown-item">@Html.ActionLink(Resource.LCAStatusNew, "LCAStatusNew", "Home", new { Area = "Certification" }, new { })</li>
|
||
|
<li class="dropdown-item">@Html.ActionLink(Resource.LCAStatusProcessing, "LCAStatusProcessing", "Home", new { Area = "Certification" }, new { })</li>
|
||
|
<li class="dropdown-item">@Html.ActionLink(Resource.LCAStatusWaiting, "Index", "Home", new { Area = "Certification" }, new { })</li>
|
||
|
<li class="dropdown-item">@Html.ActionLink(Resource.LCAStatusRejected, "LCAStatusRejected", "Home", new { Area = "Certification" }, new { })</li>
|
||
|
<li class="dropdown-item">@Html.ActionLink(Resource.LCAStatusConfirmed, "LCAStatusConfirmed", "Home", new { Area = "Certification" }, new { })</li>
|
||
|
<li class="dropdown-item">@Html.ActionLink(Resource.LCAStatusCompleted, "LCAStatusCompleted", "Home", new { Area = "Certification" }, new { })</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|