mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
Font-Awesomed Series/Details
New: Replaced icons with Font-Awesome SVG icons
This commit is contained in:
parent
008bb9626c
commit
f643c5e3fb
9 changed files with 77 additions and 34 deletions
|
@ -40,5 +40,25 @@ namespace NzbDrone.Web.Helpers
|
|||
var link = helper.ActionLink("[replaceme]", actionName, controllerName, routeValues, htmlAttributes).ToHtmlString();
|
||||
return new MvcHtmlString(link.Replace("[replaceme]", builder.ToString(TagRenderMode.SelfClosing)));
|
||||
}
|
||||
|
||||
public static MvcHtmlString IconActionLink(this AjaxHelper helper, string icon, string text, string actionName, string controllerName, object routeValues, AjaxOptions ajaxOptions, object htmlAttributes)
|
||||
{
|
||||
var linkText = String.IsNullOrWhiteSpace(text) ? "" : " " + text;
|
||||
|
||||
var builder = new TagBuilder("i");
|
||||
builder.MergeAttribute("class", icon);
|
||||
var link = helper.ActionLink("[replaceme]" + linkText, actionName, controllerName, routeValues, ajaxOptions, htmlAttributes).ToHtmlString();
|
||||
return new MvcHtmlString(link.Replace("[replaceme]", builder.ToString()));
|
||||
}
|
||||
|
||||
public static MvcHtmlString IconActionLink(this HtmlHelper helper, string icon, string text, string actionName, string controllerName, object routeValues, object htmlAttributes)
|
||||
{
|
||||
var linkText = String.IsNullOrWhiteSpace(text) ? "" : " " + text;
|
||||
|
||||
var builder = new TagBuilder("i");
|
||||
builder.MergeAttribute("class", icon);
|
||||
var link = helper.ActionLink("[replaceme]" + linkText, actionName, controllerName, routeValues, htmlAttributes).ToHtmlString();
|
||||
return new MvcHtmlString(link.Replace("[replaceme]", builder.ToString()));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue