mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
parent
a4b0e9e1d3
commit
33398084be
11 changed files with 382 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
#endregion
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Web.UI.WebControls;
|
||||
using Nancy;
|
||||
using Nancy.ViewEngines.Razor;
|
||||
|
||||
|
@ -233,6 +234,16 @@ namespace PlexRequests.UI.Helpers
|
|||
return helper.Raw(sb.ToString());
|
||||
}
|
||||
|
||||
public static IHtmlString LoadAsset(this HtmlHelpers helper, string contentPath, bool javascript)
|
||||
{
|
||||
var assetLocation = GetBaseUrl();
|
||||
var content = GetContentUrl(assetLocation);
|
||||
if (javascript)
|
||||
{
|
||||
return helper.Raw($"<script src=\"{content}{contentPath}?v={Assembly}\" type=\"text/javascript\"></script>");
|
||||
}
|
||||
return helper.Raw($"<link rel=\"stylesheet\" type=\"text/css\" href=\"{content}{contentPath}?v={Assembly}\" />");
|
||||
}
|
||||
|
||||
public static IHtmlString LoadTableAssets(this HtmlHelpers helper)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue