nicer routes
This commit is contained in:
parent
1ce785f417
commit
ab28b50c7e
|
@ -4,15 +4,15 @@
|
|||
<title>NzbDrone</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<link href="/Content/Bootstrap.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Content/bootstrap.toggle-switch.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Content/Messenger/messenger.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Content/Messenger/messenger.future.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Cells/Cells.css" rel='stylesheet' type='text/css'>
|
||||
<link href="/Content/fullcalendar.css" rel='stylesheet' type='text/css'>
|
||||
<link href="/Content/base.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Content/bootstrap.toggle-switch.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/AddSeries/Addseries.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Cells/Cells.css" rel='stylesheet' type='text/css'>
|
||||
<link href="/Series/Series.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/settings/settings.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Settings/settings.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/AddSeries/Addseries.css" rel='stylesheet' type='text/css'/>
|
||||
<link href="/Calendar/calendar.css" rel='stylesheet' type='text/css'/>
|
||||
</head>
|
||||
<body>
|
||||
|
|
30
UI/Router.js
30
UI/Router.js
|
@ -1,4 +1,4 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
require(
|
||||
[
|
||||
'app',
|
||||
|
@ -11,20 +11,19 @@ require(
|
|||
|
||||
controller: new Controller(),
|
||||
appRoutes : {
|
||||
'' : 'series',
|
||||
'series' : 'series',
|
||||
'series/index' : 'series',
|
||||
'series/add' : 'addSeries',
|
||||
'series/add/:action(/:query)': 'addSeries',
|
||||
'series/details/:query' : 'seriesDetails',
|
||||
'calendar' : 'calendar',
|
||||
'settings' : 'settings',
|
||||
'settings/:action(/:query)' : 'settings',
|
||||
'missing' : 'missing',
|
||||
'history' : 'history',
|
||||
'logs' : 'logs',
|
||||
'rss' : 'rss',
|
||||
':whatever' : 'notFound'
|
||||
'' : 'series',
|
||||
'series' : 'series',
|
||||
'addseries' : 'addSeries',
|
||||
'addseries/:action(/:query)': 'addSeries',
|
||||
'series/:query' : 'seriesDetails',
|
||||
'calendar' : 'calendar',
|
||||
'settings' : 'settings',
|
||||
'settings/:action(/:query)' : 'settings',
|
||||
'missing' : 'missing',
|
||||
'history' : 'history',
|
||||
'logs' : 'logs',
|
||||
'rss' : 'rss',
|
||||
':whatever' : 'notFound'
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -36,7 +35,6 @@ require(
|
|||
RouterBinder.bind(App.Router);
|
||||
});
|
||||
|
||||
|
||||
return App.Router;
|
||||
|
||||
});
|
||||
|
|
|
@ -80,7 +80,7 @@ define(
|
|||
{
|
||||
title: 'Add Series',
|
||||
icon : 'icon-plus',
|
||||
route: 'series/add'
|
||||
route: 'addseries'
|
||||
},
|
||||
{
|
||||
title : 'RSS Sync',
|
||||
|
|
|
@ -53,7 +53,7 @@ define(
|
|||
return this.get('status') === 'continuing';
|
||||
},
|
||||
route : function () {
|
||||
return '/series/details/' + this.get('titleSlug');
|
||||
return '/series/' + this.get('titleSlug');
|
||||
//return '/series/details/' + this.get('id');
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue