public
Description: probably a waste of time
Clone URL: git://github.com/claude/git_local.git
Search Repo:
More sassy goodness
claude (author)
Mon Apr 28 21:46:03 -0700 2008
commit  89322bab5af3db468f5e9b00ee1396bb44574bd5
tree    1424bb946884103e0e5388aead93728d6dbb2b5e
parent  d3756c890fd726ff2ae1be16b8d9af0eb7fc46c3
...
21
22
23
24
 
25
26
27
...
37
38
39
40
 
41
42
43
...
21
22
23
 
24
25
26
27
...
37
38
39
 
40
41
42
43
0
@@ -21,7 +21,7 @@
0
 get "/history/:name/:id" do
0
   repo = get_repo(params[:name])
0
   commit = repo.commit(params[:id])
0
- diff_text = "[code lang=\"diff\"]" + repo.diff(commit.parents[0], commit) + "[/code]"
0
+ diff_text = '[code lang="diff"]' + repo.diff(commit.parents[0], commit) + '[/code]'
0
   @formatted_text = Syntaxi.new(diff_text).process
0
   haml :diff
0
 end
0
@@ -37,7 +37,7 @@
0
     new_tree = path.split('/').pop
0
     @tree = get_repo(params[:name]).tree(new_tree)
0
     @blob = get_repo(params[:name]).blob(new_tree)
0
- file_text = "[code lang=\"ruby\"]" + @blob.data + "[/code]"
0
+ file_text = '[code lang="ruby"]' + @blob.data + '[/code]'
0
     @formatted_text = Syntaxi.new(file_text).process
0
   else
0
     @tree = get_repo(params[:name]).tree
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
...
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
57
58
59
60
61
62
 
63
64
65
66
67
68
69
 
70
71
72
0
@@ -1,46 +1,73 @@
0
+// normal grey
0
+!color1 = #555
0
+// black
0
+!color2 = #000
0
+// palm green
0
+!color3 = #608341
0
+// darker palm green
0
+!color4 = #324F17
0
+// gold
0
+!color5 = #E3CF57
0
+// white
0
+!color6 = #fff
0
+// light gray
0
+!color7 = #eaeaea
0
+
0
 body
0
   :font-family 'Lucida Grande'
0
- :background-color #608341
0
- :color #555
0
+ :background-color = !color3
0
+ :color = !color1
0
 
0
 h1
0
   :margin-left 20px
0
- :color #555
0
+ :color = !color1
0
 
0
 a
0
- :color #324F17
0
+ :color = !color4
0
   :text-decoration none
0
   &:hover
0
- :background-color #324f17
0
- :color #E3CF57
0
+ :background-color = !color4
0
+ :color = !color5
0
 
0
 p
0
   :margin-left 20px
0
- :color #555
0
+ :color = !color1
0
 
0
 p.history
0
   :text-align right
0
   :padding-right 20px
0
 
0
+code
0
+ :font
0
+ :family Monaco, monospace
0
+ :size 13px
0
+ &.line_number
0
+ :margin-left 4px
0
+
0
 div#wrapper
0
   :width 1000px
0
   :margin 70px auto
0
- :border solid 4px #E3CF57
0
- :background #fff
0
+ :border solid 4px
0
+ :color = !color5
0
+ :background = !color6
0
 
0
 div#diff
0
- :color #000
0
+ :color = !color2
0
   
0
+div#file
0
+ :margin 0px 10px
0
+ :background-color = !color7
0
+
0
 li.sha
0
   :margin-top 10px
0
- :color #555
0
+ :color = !color1
0
 
0
 div#admin_repos
0
   :float right
0
   :width 475px
0
   :margin 20px
0
   :margin-top -150px
0
- :background #eaeaea
0
+ :background = !color7
0
   :-webkit-border-radius 5px
0
   :padding 10px
...
10
11
12
13
14
 
15
...
10
11
12
 
 
13
14
0
@@ -10,7 +10,6 @@
0
   - end
0
   - end
0
 - if @formatted_text && @tree.contents.empty?
0
-%div#file
0
- = @formatted_text
0
+%div#file~ @formatted_text
0
 - end

Comments

    No one has commented yet.