Skip to content

Commit

Permalink
Fixed link for button "Dashboard" in administration screens;
Browse files Browse the repository at this point in the history
Translated term "Dashboard" to Bulgarian
closes #101
  • Loading branch information
YanaSlavcheva committed Apr 18, 2017
1 parent c66eb7f commit cf99b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Web/HappyMe.Web.Common/Helpers/ActionLinkHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static class ActionLinkHelper
public static MvcHtmlString ActiveActionLinkHelper(this HtmlHelper helper, string linkText, string actionName, string controllerName, RouteValueDictionary routeValues, RouteValueDictionary htmlAttributes)
{
var currentControllerName = helper.ViewContext.Controller.GetType().Name;

if (currentControllerName.Equals(controllerName + "Controller", StringComparison.OrdinalIgnoreCase))
{
htmlAttributes["class"] += " active";
Expand All @@ -22,7 +22,7 @@ public static MvcHtmlString ActiveActionLinkHelper(this HtmlHelper helper, strin

public static MvcHtmlString DashboardLink(this HtmlHelper helper)
{
return helper.ActionLink("Dashboard", "Index", new { controller = "Начална страница", area = "Administration" }, new { @class = "btn btn-primary bottom-buffer" });
return helper.ActionLink("Към начало администрация", "Index", new { controller = "Dashboard", area = "Administration" }, new { @class = "btn btn-primary bottom-buffer" });
}
}
}

0 comments on commit cf99b7e

Please sign in to comment.