Commit b472d1b7 authored by lepdou's avatar lepdou

style

parent 2fb37008
...@@ -19,7 +19,11 @@ ...@@ -19,7 +19,11 @@
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-xs-12"><h1>Apollo</h1> <div class="col-xs-12"><h1>Apollo</h1>
<p>携程统一配置中心<br><span class="package-amount">共收录了 <strong>8888</strong> 个项目</span></p> <p>携程统一配置中心<br>
<span class="package-amount">共收录了 <strong>{{appsCount}}</strong> 个项目</span>
<a class="btn btn-success btn-lg" href="views/create-app.html">创建项目</a>
</p>
<form class="" role="search"> <form class="" role="search">
<div class="form-group"><input type="text" class="form-control search clearable" <div class="form-group"><input type="text" class="form-control search clearable"
placeholder="搜索App, 例如:900088" ng-model="searchKey" ng-change="search()"></div> placeholder="搜索App, 例如:900088" ng-model="searchKey" ng-change="search()"></div>
...@@ -45,41 +49,11 @@ ...@@ -45,41 +49,11 @@
</p> </p>
</div> </div>
<div class="package-extra-info col-md-9 col-md-offset-3 col-xs-12"><span><i
class="glyphicon glyphicon-fire"></i> 92793</span>
</div>
</div>
</a>
<!--<a href="/bootstrap/" class="package list-group-item" data-library-name="bootstrap" target="_blank"-->
<!--onclick="_hmt.push(['_trackEvent', 'packages', 'click', 'bootstrap'])" style="display: block;">-->
<!--<div class="row">-->
<!--<div class="col-md-3"><h4 class="apps-name">{{app.appId}}</h4></div>-->
<!--<div class="col-md-7 hidden-xs">-->
<!--<p class="apps-description">{{app.name}}</p>-->
<!--</div>-->
<!--<div class="col-md-2">-->
<!--<p class="apps-description">-->
<!--{{app.ownerName}}-->
<!--<br>-->
<!--{{app.ownerEmail}}-->
<!--</p>-->
<!--</div>-->
<!--<div class="package-extra-info col-md-9 col-md-offset-3 col-xs-12"><span><i--> <!--<div class="package-extra-info col-md-9 col-md-offset-3 col-xs-12"><span><i-->
<!--class="glyphicon glyphicon-fire"></i> 92793</span>--> <!--class="glyphicon glyphicon-fire"></i> 92793</span>-->
<!--</div>--> <!--</div>-->
<!--</div>--> </div>
<!--</a>--> </a>
<!--<a href="/bootstrap/" class="package list-group-item" data-library-name="bootstrap" target="_blank"-->
<!--onclick="_hmt.push(['_trackEvent', 'packages', 'click', 'bootstrap'])" style="display: block;">-->
<!--<div class="row">-->
<!--<div class="col-md-3"><h4 class="package-name">2222</h4></div>-->
<!--<div class="col-md-9 hidden-xs"><p class="package-description">The most popular front-end framework for-->
<!--developing responsive, mobile first projects on the web.</p></div>-->
<!--<div class="package-extra-info col-md-9 col-md-offset-3 col-xs-12"><span><i class="fa fa-star"></i> 92793</span>-->
<!--</div>-->
<!--</div>-->
<!--</a>-->
</div> </div>
</div> </div>
......
create_app_module.controller('CreateAppController', ['$scope', '$window', 'toastr', 'AppService', create_app_module.controller('CreateAppController', ['$scope', '$window', 'toastr', 'AppService',
function ($scope, $window, toastr, AppService) { function ($scope, $window, toastr, AppService) {
//todo 便于测试,后续删掉
$scope.app = {
appId: 1001,
name: 'lepdou',
ownerEmail: 'qqq@qq.com',
ownerName: 'le'
};
$scope.save = function () { $scope.save = function () {
AppService.add($scope.app).then(function (result) { AppService.add($scope.app).then(function (result) {
toastr.success('添加成功!'); toastr.success('添加成功!');
......
...@@ -7,6 +7,7 @@ index_module.controller('IndexController', ['$scope', '$window', 'toastr', 'AppS ...@@ -7,6 +7,7 @@ index_module.controller('IndexController', ['$scope', '$window', 'toastr', 'AppS
AppService.find_all_app($scope.env).then(function (result) { AppService.find_all_app($scope.env).then(function (result) {
apps = result; apps = result;
$scope.apps = apps; $scope.apps = apps;
$scope.appsCount = apps.length;
}); });
$scope.search = function () { $scope.search = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment