nicer routes

pull/4/head
Keivan Beigi 12 years ago
parent 1ce785f417
commit ab28b50c7e

@ -4,15 +4,15 @@
<title>NzbDrone</title> <title>NzbDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<link href="/Content/Bootstrap.css" rel='stylesheet' type='text/css'/> <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.css" rel='stylesheet' type='text/css'/>
<link href="/Content/Messenger/messenger.future.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/fullcalendar.css" rel='stylesheet' type='text/css'>
<link href="/Content/base.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="/Cells/Cells.css" rel='stylesheet' type='text/css'>
<link href="/AddSeries/Addseries.css" rel='stylesheet' type='text/css'/>
<link href="/Series/Series.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'/> <link href="/Calendar/calendar.css" rel='stylesheet' type='text/css'/>
</head> </head>
<body> <body>

@ -1,4 +1,4 @@
'use strict'; 'use strict';
require( require(
[ [
'app', 'app',
@ -13,10 +13,9 @@ require(
appRoutes : { appRoutes : {
'' : 'series', '' : 'series',
'series' : 'series', 'series' : 'series',
'series/index' : 'series', 'addseries' : 'addSeries',
'series/add' : 'addSeries', 'addseries/:action(/:query)': 'addSeries',
'series/add/:action(/:query)': 'addSeries', 'series/:query' : 'seriesDetails',
'series/details/:query' : 'seriesDetails',
'calendar' : 'calendar', 'calendar' : 'calendar',
'settings' : 'settings', 'settings' : 'settings',
'settings/:action(/:query)' : 'settings', 'settings/:action(/:query)' : 'settings',
@ -36,7 +35,6 @@ require(
RouterBinder.bind(App.Router); RouterBinder.bind(App.Router);
}); });
return App.Router; return App.Router;
}); });

@ -80,7 +80,7 @@ define(
{ {
title: 'Add Series', title: 'Add Series',
icon : 'icon-plus', icon : 'icon-plus',
route: 'series/add' route: 'addseries'
}, },
{ {
title : 'RSS Sync', title : 'RSS Sync',

@ -53,7 +53,7 @@ define(
return this.get('status') === 'continuing'; return this.get('status') === 'continuing';
}, },
route : function () { route : function () {
return '/series/details/' + this.get('titleSlug'); return '/series/' + this.get('titleSlug');
//return '/series/details/' + this.get('id'); //return '/series/details/' + this.get('id');
}, },

Loading…
Cancel
Save