Просмотр исходного кода

优化页面

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1349 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 10 лет назад
Родитель
Сommit
4d08c48494

+ 1 - 1
src/main/webapp/resources/js/serve/app.js

@@ -16,7 +16,7 @@ define([ 'toaster', 'ngTable', 'common/services', 'ui.router', 'ui.bootstrap', '
 			controller: 'IndexCtrl'
 		}).state('question', {			
 			url: "/question",
-			templateUrl: "static/tpl/serve/question/common.html"
+			templateUrl: "static/tpl/serve/question_index.html"
 		}).state('question.myFeedback', {
 			url: "/myFeedback",
 			templateUrl: "static/tpl/serve/self/myFeedback.html",

+ 11 - 7
src/main/webapp/resources/tpl/serve/question/class.html

@@ -22,6 +22,10 @@
     	margin:-8px 10px;
     	width:400px;
 	}
+	
+	.ng-table-pager .pagination {
+		margin: 0;
+	}
 </style>
 
 <div class="loading" ng-class="{'in': loading}">
@@ -52,15 +56,15 @@
 			</div>
 		</div>
 		<div style="min-height: 463px;">
-			<table class="queTable" ng-table="tableParams">
+			<table class="" ng-table="tableParams">
 				<tbody>
 					<tr ng-repeat="question in $data">
-					<td>
-						<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
-						▪&nbsp;&nbsp;
-						<a class="text-light ng-binding" style="color:#2a6496; " target="_blank" ng-bind="::question.title" ui-sref="question.solution({id:question.id})">
-						</a>
-					</td>
+						<td>
+							<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
+							▪&nbsp;&nbsp;
+							<a class="text-light" style="color:#2a6496; " target="_blank" ng-bind="::question.title" ui-sref="question.solution({id:question.id})">
+							</a>
+						</td>
 					</tr>
 				</tbody>
 			</table>

+ 4 - 1
src/main/webapp/resources/tpl/serve/question/common.html

@@ -21,6 +21,9 @@
     	margin:-8px 10px;
     	width:400px;
 	}
+	.ng-table-pager .pagination {
+		margin: 0;
+	}
 </style>
 <div class="loading in" ng-class="{'in': loading}">
 	<i></i>
@@ -42,7 +45,7 @@
 			</div>
 		</div>
 		
-		<div style="min-height: 463px;">
+		<div class="col-md-12">
 			<table class="queTable" ng-table="tableParams">
 				<tbody>
 					<tr ng-repeat="question in $data">

+ 3 - 0
src/main/webapp/resources/tpl/serve/self/myFeedback.html

@@ -20,6 +20,9 @@
 		margin-top: 160px;
 		margin-left: 350px;
 	}
+	.ng-table-pager .pagination {
+		margin: 0;
+	}
 </style>
 
 <div class="loading" ng-class="{'in': loading}">