ソースを参照

tweaked markup

postman0 9 年 前
コミット
e30e0e817a
2 ファイル変更22 行追加5 行削除
  1. 12 0
      static/css/default.css
  2. 10 5
      tpl/stat.tpl

+ 12 - 0
static/css/default.css

@@ -5,3 +5,15 @@ html, body {
     padding: 0;
     font-family: 'Roboto', sans-serif;
 }
+
+.col {
+	float: left;
+}
+
+.col-userlist {
+	width: 20%;
+}
+
+.clearfix {
+	clear: both;
+}

+ 10 - 5
tpl/stat.tpl

@@ -9,11 +9,16 @@
 		<script src="http://code.highcharts.com/highcharts.js"></script>
 	</head>
 	<body>
-		<a href="/">логи</a>
-		<h1>стата</h1>
-		<p><em>всего</em>: {{.Total}}</p>
-		{{range .Stat}}<em>{{.User}}</em>: {{printf "%.2f" .Count}}%<br/>{{else}}ничего ._.{{end}}
-		<div id="chart-container">
+		<div class="container">
+			<a href="/">логи</a>
+			<div class="clearfix"></div>
+			<div class="col col-userlist">
+				<h1>стата</h1>
+				<p><em>всего</em>: {{.Total}}</p>
+				{{range .Stat}}<em>{{.User}}</em>: {{printf "%.2f" .Count}}%<br/>{{else}}ничего ._.{{end}}
+			</div>
+			<div id="chart-container" class="col">
+			</div>
 		</div>
 	</body>
 	<script type="text/javascript">