mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Display app version in web interface
This commit is contained in:
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("0.3.2.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
|
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Reflection;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -257,6 +258,7 @@ namespace Jackett
|
|||||||
{
|
{
|
||||||
jsonReply["result"] = "success";
|
jsonReply["result"] = "success";
|
||||||
jsonReply["api_key"] = ApiKey.CurrentKey;
|
jsonReply["api_key"] = ApiKey.CurrentKey;
|
||||||
|
jsonReply["app_version"] = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
JArray items = new JArray();
|
JArray items = new JArray();
|
||||||
foreach (var i in indexerManager.Indexers)
|
foreach (var i in indexerManager.Indexers)
|
||||||
{
|
{
|
||||||
|
@@ -181,3 +181,10 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
color: #444444;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
@@ -89,6 +89,7 @@ function reloadIndexers() {
|
|||||||
$('#unconfigured-indexers').empty();
|
$('#unconfigured-indexers').empty();
|
||||||
var jqxhr = $.get("get_indexers", function (data) {
|
var jqxhr = $.get("get_indexers", function (data) {
|
||||||
$("#api-key-input").val(data.api_key);
|
$("#api-key-input").val(data.api_key);
|
||||||
|
$("#app-version").html(data.app_version);
|
||||||
displayIndexers(data.items);
|
displayIndexers(data.items);
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
doNotify("Error loading indexers, request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
|
doNotify("Error loading indexers, request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
|
||||||
|
@@ -56,6 +56,13 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<div id="footer">
|
||||||
|
Jackett Version <span id="app-version"></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="select-indexer-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
|
<div id="select-indexer-modal" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
|
||||||
@@ -160,8 +167,10 @@
|
|||||||
|
|
||||||
<span class="spinner glyphicon glyphicon-refresh"></span>
|
<span class="spinner glyphicon glyphicon-refresh"></span>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script src="custom.js"></script>
|
<script src="custom.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user