forked from technoweenie/seinfeld
/
widget.haml
56 lines (52 loc) · 2.36 KB
/
widget.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%html
%head
%title
= page_title
%link{:rel => 'icon', :type => 'image/png', :href => '/images/apple-touch-icon.png', :sizes => '48x48'}
%link{:rel => 'stylesheet', :type => 'text/css', :href => '/styles/main.css'}
%body
.title
%a{:rel => "me", :href => "https://github.com/#{@user.login}"}
== #{@user.login}'s
CAN Widget
%form#widget
%p
This JavaScript widget was written by
%a{:href => "https://github.com/lachlanhardy"} lachlanhardy
and uses jQuery. Please direct any requests or patches to the
%a{:href => "https://github.com/lachlanhardy/seinfeld-badge"} seinfeld-badge
repo so they can be pushed upstream to the CAN.
%p
%textarea
:preserve
<link rel="stylesheet" href="http://opensource.reality.hk/styles/widget/seinfeld-badge.css" media="screen, projection" type="text/css">
<div class="seinfeld-badge user-#{@user.login}">
<h2>I like open software</h2>
<p><a href="http://opensource.reality.hk/~#{@user.login}" rel="me">Calendar About Nothing</a> tracks my public contributions on <A href="https://github.com/#{@user.login}">GitHub</a>.</p>
</div> <!-- .seinfeld-badge .user-#{@user.login} -->
<!-- Using Google's CDN for JS -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<!-- // jQuery hosting -->
<!-- Adding Seinfeld CAN Badge -->
<script src="http://opensource.reality.hk/javascripts/widget/seinfeld-badge.js" type="text/javascript"></script>
<!-- // Seinfeld badge-->
%p
%a{:href => "/~#{@user.login}"} « BACK
#main
#stats
.current_streak
%span.type
current streak
%span.num
= @user.current_streak
%span.desc days
.longest_streak
%a{:href => @user.longest_streak_url}
%span.type
longest streak
%span.num
= @user.longest_streak
%span.desc days
#content.footnote
%a{:href => "http://calendaraboutnothing.com"} Calendar About Nothing
by <a href="http://techno-weenie.net">rick</a> and <a href="http://warpspire.com/">kyle</a> / <a href="https://github.com">GitHub</a>