mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
open settings and profile on the feeds page
This commit is contained in:
@@ -410,10 +410,10 @@ function($scope, $http, $state, $stateParams, $route, $location,
|
|||||||
$location.path('admin');
|
$location.path('admin');
|
||||||
};
|
};
|
||||||
$scope.toSettings = function() {
|
$scope.toSettings = function() {
|
||||||
$location.path('settings');
|
$state.transitionTo('feeds.settings');
|
||||||
};
|
};
|
||||||
$scope.toProfile = function() {
|
$scope.toProfile = function() {
|
||||||
$location.path('profile');
|
$state.transitionTo('feeds.profile');
|
||||||
};
|
};
|
||||||
$scope.toHelp = function() {
|
$scope.toHelp = function() {
|
||||||
$state.transitionTo('feeds.help');
|
$state.transitionTo('feeds.help');
|
||||||
|
|||||||
@@ -39,6 +39,16 @@ app.config([ '$routeProvider', '$stateProvider', '$urlRouterProvider',
|
|||||||
templateUrl : 'templates/feeds.help.html',
|
templateUrl : 'templates/feeds.help.html',
|
||||||
controller : trackCtrl
|
controller : trackCtrl
|
||||||
});
|
});
|
||||||
|
$stateProvider.state('feeds.settings', {
|
||||||
|
url : '/settings',
|
||||||
|
templateUrl : 'templates/settings.html',
|
||||||
|
controller : 'SettingsCtrl'
|
||||||
|
});
|
||||||
|
$stateProvider.state('feeds.profile', {
|
||||||
|
url : '/profile',
|
||||||
|
templateUrl : 'templates/profile.html',
|
||||||
|
controller : 'ProfileCtrl'
|
||||||
|
});
|
||||||
|
|
||||||
$stateProvider.state('admin', {
|
$stateProvider.state('admin', {
|
||||||
'abstract' : true,
|
'abstract' : true,
|
||||||
@@ -66,18 +76,6 @@ app.config([ '$routeProvider', '$stateProvider', '$urlRouterProvider',
|
|||||||
controller : 'ManageSettingsCtrl'
|
controller : 'ManageSettingsCtrl'
|
||||||
});
|
});
|
||||||
|
|
||||||
$stateProvider.state('settings', {
|
|
||||||
url : '/settings',
|
|
||||||
templateUrl : 'templates/settings.html',
|
|
||||||
controller : 'SettingsCtrl'
|
|
||||||
});
|
|
||||||
|
|
||||||
$stateProvider.state('profile', {
|
|
||||||
url : '/profile',
|
|
||||||
templateUrl : 'templates/profile.html',
|
|
||||||
controller : 'ProfileCtrl'
|
|
||||||
});
|
|
||||||
|
|
||||||
$urlRouterProvider.when('/', '/feeds/view/category/all');
|
$urlRouterProvider.when('/', '/feeds/view/category/all');
|
||||||
$urlRouterProvider.when('/admin', '/admin/settings');
|
$urlRouterProvider.when('/admin', '/admin/settings');
|
||||||
$urlRouterProvider.otherwise('/');
|
$urlRouterProvider.otherwise('/');
|
||||||
|
|||||||
@@ -1,8 +1,14 @@
|
|||||||
<div class="container profile">
|
<div class="container-fluid profile">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Profile</h1>
|
<h1>Profile</h1>
|
||||||
</div>
|
</div>
|
||||||
<form name="profileForm" ng-submit="save()" class="form-horizontal">
|
<form name="profileForm" ng-submit="save()" class="form-horizontal">
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label" for="email">User name</label>
|
||||||
|
<div class="controls horizontal-align">
|
||||||
|
<span>{{user.name}}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="email">E-mail</label>
|
<label class="control-label" for="email">E-mail</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="container settings">
|
<div class="container-fluid settings">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1>Settings</h1>
|
<h1>Settings</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user