Permalink
Browse files

squeezing in some junk during lunch

  • Loading branch information...
1 parent d8d52bb commit 95b3d8b224008ef561bc69fa1df2d0e3dbbf179a flores committed Jan 30, 2012
Showing with 28 additions and 25 deletions.
  1. +2 −5 package.json
  2. +0 −4 server.js
  3. +8 −14 views/index.html
  4. +18 −2 views/layout.html
View
@@ -3,14 +3,11 @@
"description": "webui and upvotes for the monitoring sucks tracking repos",
"author": "flores <github@petalphile.com>",
"version": "0.0.1",
- "scripts": {
- "start": "node server.js"
- },
"dependencies": {
"express": "2.5.2",
- "node-markdown": "latest",
+ "node-markdown": "0.1.0",
"jade": "0.19.0"
},
- "engine": "node >= 0.6"
+ "engine": "node = latest"
}
View
@@ -1,7 +1,3 @@
-var util = require('util'),
- exec = require('child_process').exec,
- child;
-
var app = require('express').createServer();
app.register('.html', require('jade'));
var md = require("node-markdown").Markdown;
View
@@ -1,16 +1,10 @@
-h1 Monitoring Sucks
-h2 tool-repos
-table
- thead
- tr
- th project
- th info
- th git
- tbody
- - each key,value in repos
- tr
- td #{value}
- td= md(key["readme"])
- td #{key["git"]}
+h1 Monitoring Sucks tool-repos
+- each key,value in repos
+ #entry
+ #default
+ #project
+ a(href="#", onClick='toggle("#{value}_desc")') #{value}
+ #desc(id="#{value}_desc", style="display:none")!= md(key["readme"])
+ a(href="#{key['git']}") git
h3 pie
View
@@ -2,6 +2,22 @@
html
head
title = "Monitoring Sucks"
+ style(type='text/css')
+ * {
+ }
+ #project {
+ font-size: 1.2em;
+ }
+ #desc {
+ font-size: 0.8em;
+ }
+ script(type='text/javascript')
+ function toggle(somediv) {
+ if ( document.getElementById(somediv).style.display == 'none' ) {
+ document.getElementById(somediv).style.display = 'block';
+ } else {
+ document.getElementById(somediv).style.display = 'none';
+ };
+ }
body
- center
- != body
+ != body

0 comments on commit 95b3d8b

Please sign in to comment.