Browse Source

Merge branch 'master' of https://github.com/kpmy/xep

kpmy 9 years ago
parent
commit
1c3fa5ab7c
3 changed files with 26 additions and 5 deletions
  1. 4 0
      static/bootstrap.lua
  2. 12 0
      static/css/default.css
  3. 10 5
      tpl/stat.tpl

+ 4 - 0
static/bootstrap.lua

@@ -1,3 +1,7 @@
 chat.onmessage("пщ", function(s, m)
    if m == "пщ" then chat.send("пщ") end
 end)
+
+chat.onmessage("зига", function(s, m)
+   if m == "o/" then chat.send("\\o,") end
+end)

+ 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">