added static help and legal pages for native apps

This commit is contained in:
arzynik 2013-08-13 00:15:53 -07:00
parent e5e9236f4b
commit 97fdce5c09
3 changed files with 24 additions and 9 deletions

View File

@ -1 +1,5 @@
<div ng-bind-html-unsafe="help"></div>
<? if (!$this->export) : ?>
<div ng-bind-html-unsafe="help"></div>
<? else : ?>
<?=$this->display('help/index')?>
<? endif ; ?>

View File

@ -1 +1,5 @@
<div ng-bind-html-unsafe="legal"></div>
<? if (!$this->export) : ?>
<div ng-bind-html-unsafe="legal"></div>
<? else : ?>
<?=$this->display('legal/index')?>
<? endif ; ?>

View File

@ -2,9 +2,11 @@
* legal page
*/
NGApp.controller('legal', function ($scope, $http) {
$http.get(App.service + 'legal').success(function(data) {
$scope.legal = data.data;
});
if (!App.isPhoneGap) {
$http.get(App.service + 'legal').success(function(data) {
$scope.legal = data.data;
});
}
});
@ -12,10 +14,15 @@ NGApp.controller('legal', function ($scope, $http) {
* help page
*/
NGApp.controller('help', function ($scope, $http) {
$http.get(App.service + 'help').success(function(data) {
$scope.help = data.data;
$('.crunchbutton-join-mail').html('moc.nottubhcnurc@nioj'.split('').reverse().join(''));
});
var fm = function() {
$('.crunchbutton-join-mail').html('moc.nottubhcnurc@nioj'.split('').reverse().join(''));
}
if (!App.isPhoneGap) {
$http.get(App.service + 'help').success(function(data) {
$scope.help = data.data;
fm();
});
}
});