mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Add an add build button back in.
This commit is contained in:
parent
4df4417d89
commit
26a2ffd12e
@ -49,18 +49,21 @@
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@if (!User.Identity.IsAuthenticated)
|
||||
{
|
||||
<li><a href="@Url.Action("login", new { controller = "support", area = "" }) " title="Log in"><i class="fa fa-user"></i> Log in</a></li>
|
||||
<li><a href="@Url.Action("login", new { controller = "support", area = "" })" title="Log in"><i class="fa fa-user"></i> Log in</a></li>
|
||||
}
|
||||
else if (Roles.IsUserInRole("Administrators"))
|
||||
{
|
||||
<li><a href="@Url.Action("index", new { controller = "base", area = "admin" }) " title="Admin"><i class="fa fa-cogs"></i> Admin</a></li>
|
||||
<li><a href="@Url.Action("index", new { controller = "base", area = "admin" })" title="Admin"><i class="fa fa-cogs"></i> Admin</a></li>
|
||||
<li><a href="@Url.Action("addBuild", new { controller = "front", area = "" })" title="Add a new build"><i class="fa fa-plus-square"></i> Add build</a></li>
|
||||
<li><a href="@Url.Action("logout", new { controller = "support", area = "" })" title="Log out"><i class="fa fa-user"></i> Log out</a></li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li><a href="@Url.Action("logout", new { controller = "support", area = "" }) " title="Log out"><i class="fa fa-user"></i> Log out</a></li>
|
||||
<li><a href="@Url.Action("addBuild", new { controller = "front", area = "" })" title="Add a new build"><i class="fa fa-plus-square"></i> Add build</a></li>
|
||||
<li><a href="@Url.Action("logout", new { controller = "support", area = "" })" title="Log out"><i class="fa fa-user"></i> Log out</a></li>
|
||||
}
|
||||
<li><a href="#" title="Search" id="page-navigation-search"><i class="fa fa-search"></i> Search</a></li>
|
||||
<li><a href="@Url.Action("stats", new { controller = "support", area = "" }) " title="Statistics"><i class="fa fa-line-chart"></i> Statistics</a></li>
|
||||
<li><a href="@Url.Action("stats", new { controller = "support", area = "" })" title="Statistics"><i class="fa fa-line-chart"></i> Statistics</a></li>
|
||||
<li><a href="@Url.Action("rss", new { controller = "support", area = "" })" title="RSS Feeds"><i class="fa fa-rss"></i> RSS Feeds</a></li>
|
||||
<li><a href="https://twitter.com/buildfeed" title="Twitter" target="_blank"><i class="fa fa-twitter"></i> Twitter</a></li>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user