Update notification bar added, changed update URL
This commit is contained in:
parent
98c533b039
commit
3e9f445ade
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Migrator.Framework;
|
||||
using NzbDrone.Common;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migrations
|
||||
{
|
||||
[Migration(20121227)]
|
||||
public class Migration20121227 : NzbDroneMigration
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
Database.ExecuteNonQuery("UPDATE Config SET [Value] = 'http://update.nzbdrone.com/v1/' WHERE [Key] = 'UpdateUrl'");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -226,6 +226,7 @@
|
|||
<Compile Include="Datastore\MigrationLogger.cs" />
|
||||
<Compile Include="Datastore\MigrationsHelper.cs" />
|
||||
<Compile Include="Datastore\CustomeMapper.cs" />
|
||||
<Compile Include="Datastore\Migrations\Migration20121227.cs" />
|
||||
<Compile Include="Datastore\Migrations\Migration20121226.cs" />
|
||||
<Compile Include="Datastore\Migrations\Migration20121218.cs" />
|
||||
<Compile Include="Datastore\Migrations\Migration20121209.cs" />
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace NzbDrone.Core.Providers
|
|||
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
|
||||
|
||||
private static readonly Regex parseRegex = new Regex(@"(?:\>)(?<filename>NzbDrone.+?(?<version>\d+\.\d+\.\d+\.\d+).+?)(?:\<\/A\>)", RegexOptions.IgnoreCase);
|
||||
public const string DEFAULT_UPDATE_URL = @"http://update.nzbdrone.com/_release/";
|
||||
public const string DEFAULT_UPDATE_URL = @"http://update.nzbdrone.com/v1/";
|
||||
|
||||
|
||||
public UpdateProvider(HttpProvider httpProvider, ConfigProvider configProvider,
|
||||
|
|
|
@ -322,3 +322,15 @@ i[class*="icon-"]:not(.gridAction):hover {
|
|||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
#upgrade-now {
|
||||
background-color: #FCF8E3;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
|
||||
}
|
||||
|
||||
#upgrade-now h3 {
|
||||
color: #c09853;
|
||||
font-weight: bold;
|
||||
}
|
|
@ -40,6 +40,13 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="upgrade-now">
|
||||
<h3>
|
||||
You are running an old version of NzbDrone. Please upgrade to latest version and enjoy a brand new UI and tons of new features and enhancements
|
||||
<a href="http://www.nzbdrone.com" target="_blank">www.nzbdrone.com</a>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div id="logo">
|
||||
<span>@ViewBag.Title</span>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue