Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/docs/AMP_CLI_Administration_Handbook_3.7.pdf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/pdf
Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/docs/AMP_CLI_Administration_Handbook_3.7.pdf
===================================================================
--- /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/docs/AMP_CLI_Administration_Handbook_3.7.pdf	(revision 2551)
+++ /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/docs/AMP_CLI_Administration_Handbook_3.7.pdf	(working copy)

Property changes on: src/webui/webui/htdocs/new/src/client/app/docs/AMP_CLI_Administration_Handbook_3.7.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/docs/AMP_User_Guide_3.7.pdf
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/pdf
Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/common/controller/api.controller.js
===================================================================
--- /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/common/controller/api.controller.js	(revision 2551)
+++ /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/common/controller/api.controller.js	(working copy)
@@ -35,6 +35,19 @@
                 }
                 return false;
             };
+
+            $scope.cliGuide = function(){
+                var app = CMSettings.app;
+                var cli_guide = ";"
+                if (app === 'AMP') {
+                    var cur_lang = window.localStorage.lang || "zh-cn";
+                    if (CMSettings.manual.length >= 2 && CMSettings.manual[1]["lang"] === cur_lang) {
+                        cli_guide = CMSettings.manual[1].link.cli_guide;
+                    }
+                    $window.open(cli_guide, '_blank');
+                }
+                return false;
+            };
         }
     ])
     .controller('SaveConfigCtrl',[
@@ -53,7 +66,7 @@
                     resolve: {}
                 });
             };
-            
+
         }
     ])
     .controller('HTMLGuideCtrl',[
@@ -75,36 +88,36 @@
         }
     ])
     .controller('LanguageSwitchingCtrl', [
-    	'$scope',
+        '$scope',
         '$rootScope',
-    	'$translate',
+        '$translate',
         'CMSettings',
         'cmService',
-    	function ($scope, $rootScope, $translate, CMSettings, cmService) {
+        function ($scope, $rootScope, $translate, CMSettings, cmService) {
             var default_lang = CMSettings.language[0].name;
             $scope.langs = CMSettings.language;
-	        $scope.switching = function(lang){
+            $scope.switching = function(lang){
                 lang = lang || default_lang;
                 //$translate.use(lang);
                 window.localStorage.lang = lang;
                 cmService.post_composer_language(lang).then(function(res) {
                     window.location.reload();
                 });
-	        };
+            };
         }
     ])
     .controller('ThemeSwitchingCtrl', [
-    	'$scope',
+        '$scope',
         '$rootScope',
         'CMSettings',
-    	function ($scope, $rootScope, CMSettings) {
+        function ($scope, $rootScope, CMSettings) {
             var default_theme = CMSettings.theme[0].name;
             $scope.themes = CMSettings.theme;
-	        $scope.switching = function(theme){
+            $scope.switching = function(theme){
                 theme = theme || default_theme;
                 window.localStorage.theme = theme;
                 window.location.reload();
-	        };
+            };
         }
     ])
     .controller("showProgressCtrl", [
@@ -317,7 +330,7 @@
                                 } else {
                                     $rootScope.TipService.setMessage($filter("T")("Internal error"));
                                 }
-                            } 
+                            }
                             if (resp.data.task && resp.data.task.state) {
                                 $scope.task_notification = resp.data.task.data;
                                 $scope.task_notification_total = resp.data.task.total;
@@ -350,7 +363,7 @@
             $scope.routeToTask = function () {
                 $scope.displayDetail = false;
             };
-            
+
         }
     ])
     .controller('SearchCtrl',[
@@ -509,3 +522,4 @@
             }
         }
     ]);
+
Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/main/navbar.html
===================================================================
--- /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/main/navbar.html	(revision 2551)
+++ /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/main/navbar.html	(working copy)
@@ -134,6 +134,12 @@
                             </a>
                         </li>
                         <li class="divider"></li>
+                        <li class="link">
+                            <a ng-controller="DownloadCtrl" ng-click="cliGuide()">
+                                <i title="{{ 'CLI Admin Handbook' | T }}" class="fa fa-download"></i>&nbsp;&nbsp;CLI Admin Handbook
+                            </a>
+                        </li>
+                        <li class="divider"></li>
                         <li class="link" ng-if="role_info['user_type'] != 'Device Admin'">
                             <a href="" ng-controller="largeScreenCtrl" ng-click="largeScreen()"><i
                                 title="{{'Large Screen Display'|T }}" class="fa fa-television"></i>&nbsp;&nbsp;Large
@@ -231,3 +237,4 @@
         fill: #1170cf;
     }
 </style>
+
Index: /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/main/profile.js
===================================================================
--- /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/main/profile.js	(revision 2551)
+++ /branches/amp_3_7/src/webui/webui/htdocs/new/src/client/app/modules/main/profile.js	(working copy)
@@ -15,6 +15,12 @@
                     'user_guide': '/app/app/docs/AMP_User_Guide_3.7.pdf'
                 }
             },
+            {
+                'lang': 'en',
+                'link': {
+                    'cli_guide': '/app/app/docs/AMP_CLI_Administration_Handbook_3.7.pdf'
+                }
+            },
         ],
         'language': [
             {
@@ -37,3 +43,4 @@
             },
         ],
     });
+
