mirror of https://github.com/jellyfin/jellyfin.git
fixes #987 - Support custom css
This commit is contained in:
parent
87314ec101
commit
af827c6241
|
@ -8,7 +8,12 @@ namespace MediaBrowser.Api
|
||||||
public class GetBrandingOptions : IReturn<BrandingOptions>
|
public class GetBrandingOptions : IReturn<BrandingOptions>
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Route("/Branding/Css", "GET", Summary = "Gets custom css")]
|
||||||
|
public class GetBrandingCss
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public class BrandingService : BaseApiService
|
public class BrandingService : BaseApiService
|
||||||
{
|
{
|
||||||
private readonly IConfigurationManager _config;
|
private readonly IConfigurationManager _config;
|
||||||
|
@ -24,5 +29,12 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
return ToOptimizedResult(result);
|
return ToOptimizedResult(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public object Get(GetBrandingCss request)
|
||||||
|
{
|
||||||
|
var result = _config.GetConfiguration<BrandingOptions>("branding");
|
||||||
|
|
||||||
|
return ResultFactory.GetResult(result.CustomCss, "text/css");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,5 +8,10 @@ namespace MediaBrowser.Model.Branding
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The login disclaimer.</value>
|
/// <value>The login disclaimer.</value>
|
||||||
public string LoginDisclaimer { get; set; }
|
public string LoginDisclaimer { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the custom CSS.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The custom CSS.</value>
|
||||||
|
public string CustomCss { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -515,6 +515,8 @@
|
||||||
"NewCollectionNameExample": "Example: Star Wars Collection",
|
"NewCollectionNameExample": "Example: Star Wars Collection",
|
||||||
"OptionSearchForInternetMetadata": "Search the internet for artwork and metadata",
|
"OptionSearchForInternetMetadata": "Search the internet for artwork and metadata",
|
||||||
"ButtonCreate": "Create",
|
"ButtonCreate": "Create",
|
||||||
|
"LabelCustomCss": "Custom css:",
|
||||||
|
"LabelCustomCssHelp": "Apply your own custom css to the web interface.",
|
||||||
"LabelLocalHttpServerPortNumber": "Local http port number:",
|
"LabelLocalHttpServerPortNumber": "Local http port number:",
|
||||||
"LabelLocalHttpServerPortNumberHelp": "The tcp port number that Media Browser's http server should bind to.",
|
"LabelLocalHttpServerPortNumberHelp": "The tcp port number that Media Browser's http server should bind to.",
|
||||||
"LabelPublicHttpPort": "Public http port number:",
|
"LabelPublicHttpPort": "Public http port number:",
|
||||||
|
|
Loading…
Reference in New Issue