|
5 | 5 | <meta http-equiv="Content-Language" content="en">
|
6 | 6 | <title>Turtl admin dashboard</title>
|
7 | 7 | <style type="text/css">
|
| 8 | + .clearMe {display: block; height: 0; clear: both; font-size: 0;} |
| 9 | + .clear:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;} |
| 10 | + .clear {display: inline-block;} |
| 11 | + /* hide IE mac \*/ |
| 12 | + * html .clear {height: 1%;} |
| 13 | + .clear {display: block;} |
| 14 | + /* */ |
| 15 | + |
8 | 16 | body {font-size: 14px; font-family: arial; color: #222; background: #fff;}
|
9 | 17 | header h1 {font-size: 64px; font-weight: normal; color: #999; text-transform: lowercase;}
|
10 | 18 | header h1 small {font-size: 14px;}
|
| 19 | + h2 {font-weight: normal; color: #777;} |
11 | 20 | div.admin {width: 960px; margin: 0 auto;}
|
12 |
| - ul.stats {margin: 0; padding: 0; list-style: none;} |
| 21 | + ul.stats {margin: 0 0 32px 0; padding: 0; list-style: none;} |
13 | 22 | ul.stats li {float: left; display: block; width: 132px; height: 132px; margin: 0 16px 16px 0; padding: 16px; font-size: 17px; color: #666; text-align: center; background: #f4f4f4;}
|
14 | 23 | ul.stats li span {display: block; margin: 32px 0 0 0; font-size: 32px; color: #79a;}
|
| 24 | + ul.logs {list-style: none; margin: 0; padding: 0;} |
| 25 | + ul.logs li {} |
| 26 | + ul.logs li:hover .summary {background: #f4fff4;} |
| 27 | + ul.logs li:nth-child(2n) {background: #f4f4f4;} |
| 28 | + ul.logs li .summary {padding: 4px; cursor: pointer; font-family: Consolas, "Liberation Mono", Courier, monospace;} |
| 29 | + ul.logs li .summary .count {display: inline-block; width: 32px;} |
| 30 | + ul.logs li .summary .id {display: inline-block; width: 64px; margin: 0 12px -4px 0; overflow: hidden; text-overflow: ellipsis;} |
| 31 | + ul.logs li .expanded {display: none; padding: 16px;} |
| 32 | + ul.logs li.open .expanded {display: block;} |
15 | 33 | </style>
|
16 | 34 | </head>
|
17 | 35 | <body>
|
18 | 36 | <div class="admin">
|
19 | 37 | <header>
|
20 | 38 | <h1>Turtl. <small>admin</small></h1>
|
21 | 39 | </header>
|
22 |
| - <ul class="stats"> |
| 40 | + <ul class="stats clear"> |
23 | 41 | <li>Users <span>{{stat:num-users}}</span></li>
|
24 | 42 | <li>Personas <span>{{stat:num-personas}}</span></li>
|
25 | 43 | <li>Personas no RSA <span>{{stat:num-personas-wo-rsa}}</span></li>
|
26 | 44 | <li>Boards <span>{{stat:num-boards}}</span></li>
|
27 | 45 | <li>Notes <span>{{stat:num-notes}}</span></li>
|
28 | 46 | </ul>
|
| 47 | + |
| 48 | + <h2>Error log</h2> |
| 49 | + <ul class="logs"> |
| 50 | + {{logs}} |
| 51 | + </ul> |
29 | 52 | </div>
|
| 53 | + <script> |
| 54 | + (function() { |
| 55 | + var ul = document.getElementsByClassName('logs')[0]; |
| 56 | + var lis = ul.children; |
| 57 | + for(var i = 0; i < lis.length; i++) |
| 58 | + { |
| 59 | + (function (li) { |
| 60 | + var summary = li.children[0]; |
| 61 | + summary.addEventListener('click', function() { |
| 62 | + if(li.className.match(/open/)) |
| 63 | + { |
| 64 | + li.className = li.className.replace(/open/, ''); |
| 65 | + } |
| 66 | + else |
| 67 | + { |
| 68 | + li.className += 'open'; |
| 69 | + } |
| 70 | + }, false); |
| 71 | + })(lis[i]); |
| 72 | + } |
| 73 | + })(); |
| 74 | + </script> |
30 | 75 | </body>
|
31 | 76 | </html>
|
0 commit comments