version
This commit is contained in:
@ -13,6 +13,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Yavsc.Controllers
|
namespace Yavsc.Controllers
|
||||||
{
|
{
|
||||||
|
using System.IO;
|
||||||
using Models;
|
using Models;
|
||||||
using Yavsc;
|
using Yavsc;
|
||||||
|
|
||||||
@ -78,9 +79,11 @@ namespace Yavsc.Controllers
|
|||||||
.Where(a=> a.ParentCode==id).OrderByDescending(a=>a.Rate));
|
.Where(a=> a.ParentCode==id).OrderByDescending(a=>a.Rate));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public IActionResult About()
|
public async Task<IActionResult> About()
|
||||||
{
|
{
|
||||||
return View();
|
// TODO show the version tag
|
||||||
|
FileInfo fi = new FileInfo("wwwroot/version");
|
||||||
|
return View("About",fi.Exists ? _localizer["Version logicielle: "] + await fi.OpenText().ReadToEndAsync() : _localizer["Aucune information sur la version logicielle n'est publiée."]);
|
||||||
}
|
}
|
||||||
public IActionResult Privacy()
|
public IActionResult Privacy()
|
||||||
{
|
{
|
||||||
|
@ -158,6 +158,9 @@ La "pré-production" affiche les sites suivants:
|
|||||||
* [Lua](https://lua.pschneider.fr)
|
* [Lua](https://lua.pschneider.fr)
|
||||||
|
|
||||||
</markdown>
|
</markdown>
|
||||||
|
<p>
|
||||||
|
@Model
|
||||||
|
</p>
|
||||||
</environment>
|
</environment>
|
||||||
|
|
||||||
|
|
||||||
|
1
Yavsc/wwwroot/version
Normal file
1
Yavsc/wwwroot/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
test
|
Reference in New Issue
Block a user