forked from Archives/Athou_commafeed
about page placeholder
This commit is contained in:
@@ -265,6 +265,9 @@ module.controller('ToolbarCtrl',
|
|||||||
$scope.toProfile = function() {
|
$scope.toProfile = function() {
|
||||||
$location.path('profile');
|
$location.path('profile');
|
||||||
};
|
};
|
||||||
|
$scope.toHelp = function() {
|
||||||
|
$state.transitionTo('feeds.help');
|
||||||
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
|
module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
|
||||||
|
|||||||
@@ -18,6 +18,10 @@ app.config(function($routeProvider, $stateProvider, $urlRouterProvider) {
|
|||||||
templateUrl : 'templates/feeds.view.html',
|
templateUrl : 'templates/feeds.view.html',
|
||||||
controller : 'FeedListCtrl'
|
controller : 'FeedListCtrl'
|
||||||
});
|
});
|
||||||
|
$stateProvider.state('feeds.help', {
|
||||||
|
url : '/help',
|
||||||
|
templateUrl : 'templates/feeds.help.html'
|
||||||
|
});
|
||||||
|
|
||||||
$stateProvider.state('admin', {
|
$stateProvider.state('admin', {
|
||||||
abstract : true,
|
abstract : true,
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ module.factory('SubscriptionService', function($resource, $http) {
|
|||||||
|
|
||||||
var res = $resource('rest/subscriptions/:_type/:_method', {}, actions);
|
var res = $resource('rest/subscriptions/:_type/:_method', {}, actions);
|
||||||
s.init = function(callback) {
|
s.init = function(callback) {
|
||||||
res.get(function(data) {
|
s.get(function(data) {
|
||||||
s.subscriptions = data;
|
s.subscriptions = data;
|
||||||
s.flatCategories = flatten(s.subscriptions);
|
s.flatCategories = flatten(s.subscriptions);
|
||||||
if (callback)
|
if (callback)
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
<li><a ng-click="toProfile()"><i class="icon-user"></i> Profile</a></li>
|
<li><a ng-click="toProfile()"><i class="icon-user"></i> Profile</a></li>
|
||||||
<li ng-show="session.admin"><a ng-click="toAdmin()"><i class="icon-edit"></i> Admin</a></li>
|
<li ng-show="session.admin"><a ng-click="toAdmin()"><i class="icon-edit"></i> Admin</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
|
<li><a ng-click="toHelp()"><i class="icon-question-sign"></i> About</a></li>
|
||||||
<li><a href="logout"><i class="icon-off"></i> Logout</a></li>
|
<li><a href="logout"><i class="icon-off"></i> Logout</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
19
src/main/webapp/templates/feeds.help.html
Normal file
19
src/main/webapp/templates/feeds.help.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<div>
|
||||||
|
|
||||||
|
<h3>CommaFeed</h3>
|
||||||
|
<p>
|
||||||
|
CommaFeed is an open-source project. Sources are hosted on <a href="https://github.com/Athou/commafeed" target="_blank">GitHub</a>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
If you encounter an issue, please report it on the <a href="https://github.com/Athou/commafeed/issues" target="_blank">issues page</a> of the GitHub project.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>REST API</h3>
|
||||||
|
<p>
|
||||||
|
CommaFeed is built on top of JAX-RS and AngularJS. As such, a REST API is available.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
The documentation about the API is available <a href="api" target="_blank">here</a>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user