refine about page

This commit is contained in:
Christine Dodrill 2015-01-31 21:50:21 -08:00
parent 035366ddcf
commit 7ca1ac8498
4 changed files with 9 additions and 2 deletions

View File

@ -11,5 +11,8 @@ class extends lapis.Application
[contact: "/contact"]: =>
render: true
[error: "/error"]: =>
render: true, status: 500
handle_404: =>
status: 404, render: "notfound"

View File

@ -1,4 +1,5 @@
gh = require('github').new({access_token: os.getenv "GITHUB_TOKEN", httpclient_driver: 'httpclient.ngx_driver'})
http = require "lapis.nginx.http"
lapis = require "lapis"

View File

@ -4,7 +4,7 @@ class About extends Widget
content: =>
link rel: "stylesheet", href: "/static/css/about/main.css"
img class: "textwrap-right", src: @user.avatar_url
img class: "textwrap-right", src: @user.avatar_url, height: 150, width: 150
p ->
text "I am a GitHub power user. As of right now, I have #{@user.public_repos} open source projects tracked on GitHub. I have #{@user.followers} followers and am following #{@user.following} users."

View File

@ -7,4 +7,7 @@ class Error extends Widget
img src: "/static/img/error.png"
if @err
p @err
else
p "If this was a real error there would be debug text here"