Can show external service link with BTCPAY_EXTERNALSERVICES

This commit is contained in:
nicolas.dorier
2018-12-07 18:42:39 +09:00
parent 2162afc78e
commit 591d7b4b80
7 changed files with 78 additions and 8 deletions

View File

@@ -435,7 +435,22 @@ namespace BTCPayServer.Controllers
});
}
}
result.HasSSH = _Options.SSHSettings != null;
foreach(var externalService in _Options.ExternalServices)
{
result.ExternalServices.Add(new ServicesViewModel.ExternalService()
{
Name = externalService.Key,
Link = this.Request.GetRelativePath(externalService.Value)
});
}
if(_Options.SSHSettings != null)
{
result.ExternalServices.Add(new ServicesViewModel.ExternalService()
{
Name = "SSH",
Link = this.Url.Action(nameof(SSHService))
});
}
return View(result);
}