Update notification bar added, changed update URL

This commit is contained in:
Mark McDowall 2013-07-26 17:21:17 -07:00
parent 98c533b039
commit 3e9f445ade
5 changed files with 37 additions and 1 deletions

View File

@ -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'");
}
}
}

View File

@ -226,6 +226,7 @@
<Compile Include="Datastore\MigrationLogger.cs" /> <Compile Include="Datastore\MigrationLogger.cs" />
<Compile Include="Datastore\MigrationsHelper.cs" /> <Compile Include="Datastore\MigrationsHelper.cs" />
<Compile Include="Datastore\CustomeMapper.cs" /> <Compile Include="Datastore\CustomeMapper.cs" />
<Compile Include="Datastore\Migrations\Migration20121227.cs" />
<Compile Include="Datastore\Migrations\Migration20121226.cs" /> <Compile Include="Datastore\Migrations\Migration20121226.cs" />
<Compile Include="Datastore\Migrations\Migration20121218.cs" /> <Compile Include="Datastore\Migrations\Migration20121218.cs" />
<Compile Include="Datastore\Migrations\Migration20121209.cs" /> <Compile Include="Datastore\Migrations\Migration20121209.cs" />

View File

@ -23,7 +23,7 @@ namespace NzbDrone.Core.Providers
private static readonly Logger logger = LogManager.GetCurrentClassLogger(); private static readonly Logger logger = LogManager.GetCurrentClassLogger();
private static readonly Regex parseRegex = new Regex(@"(?:\>)(?<filename>NzbDrone.+?(?<version>\d+\.\d+\.\d+\.\d+).+?)(?:\<\/A\>)", RegexOptions.IgnoreCase); 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, public UpdateProvider(HttpProvider httpProvider, ConfigProvider configProvider,

View File

@ -322,3 +322,15 @@ i[class*="icon-"]:not(.gridAction):hover {
display: inline-block; display: inline-block;
} }
} }
#upgrade-now {
background-color: #FCF8E3;
text-align: center;
padding: 5px;
}
#upgrade-now h3 {
color: #c09853;
font-weight: bold;
}

View File

@ -40,6 +40,13 @@
</ul> </ul>
</div> </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"> <div id="logo">
<span>@ViewBag.Title</span> <span>@ViewBag.Title</span>
</div> </div>