refine about page
This commit is contained in:
parent
035366ddcf
commit
7ca1ac8498
3
app.moon
3
app.moon
|
@ -11,5 +11,8 @@ class extends lapis.Application
|
|||
[contact: "/contact"]: =>
|
||||
render: true
|
||||
|
||||
[error: "/error"]: =>
|
||||
render: true, status: 500
|
||||
|
||||
handle_404: =>
|
||||
status: 404, render: "notfound"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -7,4 +7,7 @@ class Error extends Widget
|
|||
|
||||
img src: "/static/img/error.png"
|
||||
|
||||
p @err
|
||||
if @err
|
||||
p @err
|
||||
else
|
||||
p "If this was a real error there would be debug text here"
|
||||
|
|
Loading…
Reference in New Issue