Permalink
Browse files

Completed basic door log functionality.

  • Loading branch information...
1 parent 2f44209 commit a6a7c0239cb6d485fc7b5b8335ae3ecf6d724fe6 @sarahemm committed May 23, 2010
Showing with 8 additions and 3 deletions.
  1. +1 −1 frontend/hacktouch-frontend.rb
  2. +2 −2 frontend/views/_door.haml
  3. +5 −0 frontend/views/main.sass
@@ -89,7 +89,7 @@
msg = Hash.new
msg['command'] = 'recent'
- msg['entries'] = 5
+ msg['entries'] = 8
begin
response_msg = HacktouchMQ.mq_request("hacktouch.door.request", msg)
rescue TimeoutException
@@ -19,7 +19,7 @@
var time_ago;
if(entry['mins_ago'] < 60) {
time_ago = entry['mins_ago'] + "m"
- } else if(entry['mins_ago'] > 60*24) {
+ } else if(entry['mins_ago'] > 60*48) {
time_ago = (Math.floor(entry['mins_ago'] / (60*24))) + "d"
} else {
time_ago = (Math.floor(entry['mins_ago'] / 60)) + "h"
@@ -38,5 +38,5 @@
.boxSquare
.boxHeader
Recent Visitors
- %div#recent_visitors
+ %div#recent_visitors{'style' => 'padding-left: 5mm;'}
Retrieving list...
View
@@ -22,6 +22,10 @@ ul
line-height: 1.25em
text-align: left
list-style: none
+ padding: 0
+ padding-left: 1cm
+ text-indent: -1cm
+ margin: 0
=box
font-family: sans-serif
@@ -32,6 +36,7 @@ ul
margin: 0.25cm
float: left
line-height: 1.5cm
+ overflow: hidden
.boxSquare
+box

0 comments on commit a6a7c02

Please sign in to comment.