Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
use new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Sep 26, 2011
1 parent 956403e commit 7fdbdbb
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions blarghhhh.rb
Expand Up @@ -6,16 +6,17 @@
require "dalli"

set :base_uri, 'http://github.com/api/v2/json'
set :userid, ENV['GITHUB_USER']
set :repoid, ENV['GITHUB_REPO']
set :userid, 'zzak'
set :repoid, 'blog.zacharyscott.net'
#set :userid, ENV['GITHUB_USER']
#set :repoid, ENV['GITHUB_REPO']
set :public, File.dirname(__FILE__) + '/public'
set :cache, Dalli::Client.new(
ENV['MEMCACHE_SERVERS'],
:username => ENV['MEMCACHE_USERNAME'],
:password => ENV['MEMCACHE_PASSWORD'],
:expires_in => 300)

set :markdown, :layout_engine => :haml
set :views, File.dirname(__FILE__)

get '/' do
Expand Down Expand Up @@ -83,7 +84,7 @@
%ul#blog_stats
%li
%a{:href=>"https://github.com/#{settings.userid}/#{settings.repoid}/commits/master.atom"}
%img{:src=>"/images/rss.png"}
%img{:src=>"/images/rss2.png"}
%li
%a{:href=>"https://github.com/#{settings.userid}/#{settings.repoid}/watchers"}
= @info["repository"]["watchers"]
Expand Down Expand Up @@ -112,15 +113,20 @@
%h1#username
= @user["user"]["name"]
%a{:href=>"http://github.com/#{settings.userid}/followers"}
%sup= @user["user"]["followers_count"]
%h2#location= @user["user"]["location"]
%sup
= @user["user"]["followers_count"]
%img{:src=>"/images/watchers.png"}
%ul#user_stats
%li
%a{:href=>@user["user"]["blog"]} home
%a{:href=>@user["user"]["blog"]}
%img{:src=>"/images/home.png"}
%li
%a{:href=>"http://github.com/#{@user["user"]["login"]}"} code
%a{:href=>"http://github.com/#{@user["user"]["login"]}"}
%img{:src=>"/images/code.png"}
%li
%a{:href=>"mailto:#{@user["user"]["email"]}"} email
%a{:href=>"mailto:#{@user["user"]["email"]}"}
%img{:src=>"/images/mail.png"}
%h2#location= @user["user"]["location"]

@@show
#post_info
Expand Down Expand Up @@ -210,10 +216,12 @@
#user_stats
text-align: right
li
float: left
margin-left: 10px
float: right
margin-right: 10px
#avatar
float: left
#location
clear: both

.page_header
margin: 20px
Expand Down

0 comments on commit 7fdbdbb

Please sign in to comment.