More added for the preset themes

pull/1741/head
Jamie 7 years ago
parent aa998b02c0
commit abfb873911

@ -73,6 +73,7 @@
<ul class="dropdown-menu">
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/About']">About</a></li>
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/Update']">Update</a></li>
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/Jobs']">Jobs</a></li>
<!-- <li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/Logs']">Logs (Not available)</a></li>
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/ScheduledJobs']">Scheduled Jobs (Not available)</a></li> -->
</ul>

@ -2,7 +2,10 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using Hangfire;
@ -260,11 +263,13 @@ namespace Ombi.Controllers
/// <returns></returns>
[HttpGet("themecontent")]
[AllowAnonymous]
public async Task<string> GetThemeContent([FromQuery]string url)
public async Task<HttpResponseMessage> GetThemeContent([FromQuery]string url)
{
var content = await _githubApi.GetThemesRawContent(url);
return content;
return new HttpResponseMessage(HttpStatusCode.OK)
{
Content = new StringContent(content, Encoding.UTF8, "text/css")
};
}
/// <summary>

Loading…
Cancel
Save