Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi! I cleaned up your code for you! #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
task :clean do
FileUtils.rm_rf Dir['*.gem', '*.gemspec']
end

namespace :gem do

desc "Rebuild and install bigbananajour as a gem"
Expand Down Expand Up @@ -60,5 +60,5 @@ namespace :gem do
end

end

end
8 changes: 4 additions & 4 deletions lib/bigbananajour/bananajour/bananajour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Monkeypatch bananajour to override ports
# and repository resolution behaviour.
module Bananajour

class << self

include BigBananajour::EmailMangleHelper
Expand All @@ -12,11 +12,11 @@ def repositories_path
end

def web_port
9332
9332
end

def git_port
9419
9419
end

def git_uri
Expand Down
4 changes: 2 additions & 2 deletions lib/bigbananajour/bananajour/bonjour/repository.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class Bananajour::Bonjour::Repository

attr_accessor :name, :uri, :ismirror, :person
attr_accessor :name, :uri, :ismirror, :person

def initialize(name, uri, person)
@name, @uri, @person = name, uri, person
end

end
26 changes: 13 additions & 13 deletions sinatra/views/commit.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,50 @@
:sass
#title
:margin-left 0

#commit_id
:text-transform uppercase
:margin 0
&, a
:color rgb(153, 136, 0)
a:hover
:color #760

p.message
.meta
:font-size 90%
:margin-top 0
:color #796B00

.codediff
:font 90%/140% "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace
:width 100%
:border-collapse collapse
:margin-bottom 20px

th:first-child
:-webkit-border-top-left-radius 9px
tr:last-child td:last-child
:-webkit-border-bottom-right-radius 9px

.line-num-cut
:background #ccc
:border-top 1px dashed #ccc
:border-bottom 1px dashed #ccc

th, .line_numbers
:background #F0E342

th
:text-align left
:padding 3px 0

td
:padding 0 3px
&.line_numbers
:text-align right
:min-width 9px

&.code
:white-space pre-wrap
:white-space -moz-pre-wrap
Expand All @@ -68,18 +68,18 @@

&.marked
:background #ffc !important

&.ins
:background #a3ffa3
:background #a3ffa3
ins
:text-decoration none

&.del
:background #ffa3a3
del
:text-decoration none


%h2#commit_id
Commit
= @commit.id_abbrev
Expand Down
32 changes: 16 additions & 16 deletions sinatra/views/home.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
:font-size 14px
a
:color black

- if @repository_names.empty?

%h2 Nothing has been mirrored yet. Watch this space!

%style{:type => "text/css"}
:sass
.repository
Expand All @@ -22,10 +22,10 @@
:margin 10px 0
:position relative
:border 4px solid #ff0

a
:color #888

h2, p.uri
:margin 0
:display inline
Expand All @@ -37,16 +37,16 @@
:color #666
:margin 5px 0
:font-size 12px

p.branches
:margin 5px 0
:font-size 12px

ul, li
:margin 0
:padding 0
:list-style none

p.readme
:margin 0 -5px 0 0
a
Expand All @@ -65,13 +65,13 @@
&:hover
:color #666
:background-color #ddd

h3
:margin 10px 0 0 0
:font-size 12px
:color #999
:text-transform uppercase

ul.network
:margin-top 5px
li
Expand Down Expand Up @@ -125,11 +125,11 @@
:float left
:margin-left -30px
:margin-top 2px

img.gravatar
:width 20px
:height 20px

.projects, .people
:float left
:width 65%
Expand All @@ -138,7 +138,7 @@
:-webkit-border-radius 10px
:-moz-border-radius 10px
:margin-top 10px

h2
:margin 0
:text-align center
Expand All @@ -150,7 +150,7 @@

h3
:margin 0 0 5px 0

ul, li
:margin 0
:padding 0
Expand All @@ -165,14 +165,14 @@
:margin-right 0.2em
a
:color #000

.projects
ul li
ul, li
:display inline
a
:white-space nowrap

.people
:margin-left 10px
ul
Expand All @@ -186,7 +186,7 @@
:text-decoration underline
img
:vertical-align middle

.local .repository
:border-color #980

Expand Down
18 changes: 9 additions & 9 deletions sinatra/views/layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
%head
%meta{:charset => "UTF-8"}
%title= @page_title

%style{:type => "text/css"}
:sass
body
Expand All @@ -14,7 +14,7 @@
:width 750px
:margin 0 auto
:padding 30px 0

h1#title
:font-size 32px
:margin 0 0 10px 12px
Expand All @@ -41,10 +41,10 @@
:font-weight bold
:text-transform uppercase
:color #fff

pre
:overflow auto

ul.commits
:width 100%
:margin-top 5px
Expand All @@ -55,7 +55,7 @@
:padding 8px 0
:border 0px solid #ddd
:border-top-width 1px

a
:text-decoration none
:color #333
Expand Down Expand Up @@ -83,10 +83,10 @@
:width 25px
:height 25px
:float left

.clear
:clear both

#pbjt
:width 54px
:height 93px
Expand All @@ -95,7 +95,7 @@
:right -100px
&:hover
:background-image url(/peanut.png)

%script{:src => "/jquery-1.3.2.min.js", :type => "text/javascript"}

%body{:class => ("local" if local?)}
Expand All @@ -114,6 +114,6 @@
.clear

:javascript
$("#pbjt").bind("click", function(){
$("#pbjt").bind("click", function(){
$("<embed bgcolor='#000000' height='400' width='550' name='pbjt' pluginspage='http://www.adobe.com/go/getflashplayer' quality='high' src='/pbjt.swf' style='position:fixed;top:0;left:0;width:100%;height:100%' type='application/x-shockwave-flash' />").appendTo($("body"));
});
12 changes: 6 additions & 6 deletions sinatra/views/readme.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@
:border 4px solid #ff0
:font-size 75%
:line-height 1.3em

> *
:margin-left 10px
:margin-right 10px

.return
:float right
a
:color #000

body > h2
:margin-left 12px

body > h2, .return a
:color #980

code
:background-color #fff
:font-size 12px
:color #666

%p.return
%a{:href => "/"} Return to repositories

Expand Down