toolmantim-bananajour 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/bananajour +1 -1
- data/lib/bananajour/version.rb +1 -1
- data/sinatra/views/home.haml +253 -255
- metadata +1 -1
data/bin/bananajour
CHANGED
data/lib/bananajour/version.rb
CHANGED
data/sinatra/views/home.haml
CHANGED
@@ -23,286 +23,284 @@
|
|
23
23
|
Unpacking objects: 100% (3/3), done.
|
24
24
|
To #{Bananajour.repositories_path.expand_path}/myproj.git
|
25
25
|
* [new branch] master -> master
|
26
|
+
|
27
|
+
%style{:type => "text/css"}
|
28
|
+
:sass
|
29
|
+
.repository
|
30
|
+
:clear both
|
31
|
+
:background-color white
|
32
|
+
:-webkit-border-radius 10px
|
33
|
+
:-moz-border-radius 10px
|
34
|
+
:padding 7px 10px
|
35
|
+
:margin 10px 0
|
36
|
+
:position relative
|
37
|
+
:border 4px solid #ff0
|
38
|
+
|
39
|
+
a
|
40
|
+
:color #888
|
26
41
|
|
27
|
-
|
42
|
+
h2, p.uri
|
43
|
+
:margin 0
|
44
|
+
:display inline
|
28
45
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
:
|
39
|
-
:
|
46
|
+
h2
|
47
|
+
:color #333
|
48
|
+
:font-size 24px
|
49
|
+
p.uri
|
50
|
+
:color #666
|
51
|
+
:margin 5px 0
|
52
|
+
:font-size 12px
|
53
|
+
|
54
|
+
p.branches
|
55
|
+
:margin 5px 0
|
56
|
+
:font-size 12px
|
57
|
+
|
58
|
+
ul, li
|
59
|
+
:margin 0
|
60
|
+
:padding 0
|
61
|
+
:list-style none
|
40
62
|
|
63
|
+
p.readme
|
64
|
+
:margin 0 -5px 0 0
|
41
65
|
a
|
42
|
-
:
|
43
|
-
|
44
|
-
h2, p.uri
|
66
|
+
:float right
|
45
67
|
:margin 0
|
46
|
-
:
|
47
|
-
|
48
|
-
|
49
|
-
:color #
|
50
|
-
:
|
51
|
-
|
52
|
-
:
|
53
|
-
:
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
68
|
+
:text-transform uppercase
|
69
|
+
:font-size 10px
|
70
|
+
:font-weight bold
|
71
|
+
:color #999
|
72
|
+
:background-color #eee
|
73
|
+
:line-height 20px
|
74
|
+
:padding 0 5px
|
75
|
+
:text-decoration none
|
76
|
+
:-webkit-border-radius 2px
|
77
|
+
:-moz-border-radius 2px
|
78
|
+
&:hover
|
79
|
+
:color #666
|
80
|
+
:background-color #ddd
|
59
81
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
82
|
+
h3
|
83
|
+
:margin 10px 0 0 0
|
84
|
+
:font-size 12px
|
85
|
+
:color #999
|
86
|
+
:text-transform uppercase
|
87
|
+
|
88
|
+
ul.network
|
89
|
+
:margin-top 5px
|
90
|
+
li
|
91
|
+
:line-height 1em
|
92
|
+
:min-height 16px
|
93
|
+
:padding-left 30px
|
94
|
+
:margin 10px 0
|
95
|
+
&.loading
|
96
|
+
:background transparent url('/loader.gif') no-repeat 4px center
|
97
|
+
a.name
|
98
|
+
:font-size 12px
|
72
99
|
:font-weight bold
|
73
|
-
:color #
|
74
|
-
:
|
75
|
-
:line-height 20px
|
76
|
-
:padding 0 5px
|
100
|
+
:color #666
|
101
|
+
:text-transform uppercase
|
77
102
|
:text-decoration none
|
103
|
+
span.branches
|
104
|
+
:font-size 12px
|
105
|
+
:color #999
|
106
|
+
span.more
|
107
|
+
:float right
|
108
|
+
:width 15px
|
109
|
+
:height 15px
|
110
|
+
:color #fff
|
111
|
+
:background-color #ccc
|
112
|
+
:font-size 12px
|
113
|
+
:line-height 15px
|
114
|
+
:font-weight bold
|
78
115
|
:-webkit-border-radius 2px
|
79
116
|
:-moz-border-radius 2px
|
117
|
+
:text-align center
|
118
|
+
:cursor pointer
|
80
119
|
&:hover
|
81
|
-
:color #
|
82
|
-
:
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
:text-transform uppercase
|
89
|
-
|
90
|
-
ul.network
|
91
|
-
:margin-top 5px
|
92
|
-
li
|
93
|
-
:line-height 1em
|
94
|
-
:min-height 16px
|
95
|
-
:padding-left 30px
|
96
|
-
:margin 10px 0
|
97
|
-
&.loading
|
98
|
-
:background transparent url('/loader.gif') no-repeat 4px center
|
99
|
-
a.name
|
100
|
-
:font-size 12px
|
101
|
-
:font-weight bold
|
102
|
-
:color #666
|
103
|
-
:text-transform uppercase
|
120
|
+
:background-color #aaa
|
121
|
+
:color #fff
|
122
|
+
p.message
|
123
|
+
:font-size 12px
|
124
|
+
:margin 2px 0 5px 1px
|
125
|
+
a
|
126
|
+
:color #333
|
104
127
|
:text-decoration none
|
105
|
-
|
106
|
-
|
128
|
+
&:hover
|
129
|
+
:text-decoration underline
|
130
|
+
span.meta
|
131
|
+
:font-size 10px
|
107
132
|
:color #999
|
108
|
-
|
109
|
-
:float right
|
110
|
-
:width 15px
|
111
|
-
:height 15px
|
112
|
-
:color #fff
|
113
|
-
:background-color #ccc
|
114
|
-
:font-size 12px
|
115
|
-
:line-height 15px
|
133
|
+
em.branch
|
116
134
|
:font-weight bold
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
:font-weight bold
|
137
|
-
:font-style normal
|
138
|
-
:color #666
|
139
|
-
img.gravatar
|
140
|
-
:float left
|
141
|
-
:margin-left -30px
|
142
|
-
:margin-top 2px
|
143
|
-
|
144
|
-
img.gravatar
|
145
|
-
:width 20px
|
146
|
-
:height 20px
|
135
|
+
:font-style normal
|
136
|
+
:color #666
|
137
|
+
img.gravatar
|
138
|
+
:float left
|
139
|
+
:margin-left -30px
|
140
|
+
:margin-top 2px
|
141
|
+
|
142
|
+
img.gravatar
|
143
|
+
:width 20px
|
144
|
+
:height 20px
|
145
|
+
|
146
|
+
.projects, .people
|
147
|
+
:float left
|
148
|
+
:width 48%
|
149
|
+
:background-color #fff
|
150
|
+
:border 4px solid #ff0
|
151
|
+
:-webkit-border-radius 10px
|
152
|
+
:-moz-border-radius 10px
|
153
|
+
:margin-top 10px
|
147
154
|
|
148
|
-
|
149
|
-
:
|
150
|
-
:
|
151
|
-
:
|
152
|
-
:
|
153
|
-
|
154
|
-
|
155
|
-
:
|
156
|
-
|
157
|
-
h2
|
158
|
-
:margin 0
|
159
|
-
:text-align center
|
160
|
-
:font-size 16px
|
161
|
-
:line-height 28px
|
162
|
-
:background-color #ff0
|
163
|
-
:color #960
|
164
|
-
:text-transform uppercase
|
155
|
+
h2
|
156
|
+
:margin 0
|
157
|
+
:text-align center
|
158
|
+
:font-size 16px
|
159
|
+
:line-height 28px
|
160
|
+
:background-color #ff0
|
161
|
+
:color #960
|
162
|
+
:text-transform uppercase
|
165
163
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
ul, li
|
170
|
-
:margin 0
|
171
|
-
:padding 0
|
172
|
-
:list-style none
|
173
|
-
|
174
|
-
> ul
|
175
|
-
:font-size 12px
|
176
|
-
:margin 10px
|
177
|
-
> li
|
178
|
-
:margin-bottom 10px
|
179
|
-
li li
|
180
|
-
:margin-right 0.2em
|
181
|
-
a
|
182
|
-
:color #000
|
164
|
+
h3
|
165
|
+
:margin 0 0 5px 0
|
183
166
|
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
167
|
+
ul, li
|
168
|
+
:margin 0
|
169
|
+
:padding 0
|
170
|
+
:list-style none
|
171
|
+
|
172
|
+
> ul
|
173
|
+
:font-size 12px
|
174
|
+
:margin 10px
|
175
|
+
> li
|
176
|
+
:margin-bottom 10px
|
177
|
+
li li
|
178
|
+
:margin-right 0.2em
|
188
179
|
a
|
189
|
-
:
|
180
|
+
:color #000
|
190
181
|
|
191
|
-
|
192
|
-
|
193
|
-
ul
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
:margin-bottom 5px
|
198
|
-
a
|
199
|
-
:text-decoration none
|
200
|
-
.name
|
201
|
-
:text-decoration underline
|
202
|
-
img
|
203
|
-
:vertical-align middle
|
204
|
-
|
205
|
-
.local .repository
|
206
|
-
:border-color #980
|
207
|
-
|
208
|
-
- for repository in @my_repositories
|
209
|
-
- repository_id = repository.html_friendly_name
|
210
|
-
- heads = repository.grit_repo.heads
|
182
|
+
.projects
|
183
|
+
ul li
|
184
|
+
ul, li
|
185
|
+
:display inline
|
186
|
+
a
|
187
|
+
:white-space nowrap
|
211
188
|
|
212
|
-
.
|
189
|
+
.people
|
190
|
+
:margin-left 10px
|
191
|
+
ul
|
192
|
+
li
|
193
|
+
:float left
|
194
|
+
:width 50%
|
195
|
+
:margin-bottom 5px
|
196
|
+
a
|
197
|
+
:text-decoration none
|
198
|
+
.name
|
199
|
+
:text-decoration underline
|
200
|
+
img
|
201
|
+
:vertical-align middle
|
202
|
+
|
203
|
+
.local .repository
|
204
|
+
:border-color #980
|
205
|
+
|
206
|
+
- for repository in @my_repositories
|
207
|
+
- repository_id = repository.html_friendly_name
|
208
|
+
- heads = repository.grit_repo.heads
|
209
|
+
|
210
|
+
.repository{:id => repository_id, 'data-name' => repository.name}
|
213
211
|
|
214
|
-
|
215
|
-
|
216
|
-
|
212
|
+
- if repository.readme_file && !local?
|
213
|
+
%p.readme
|
214
|
+
%a{:href => "/#{repository.name}/readme"} Readme
|
217
215
|
|
218
|
-
|
219
|
-
|
216
|
+
%h2
|
217
|
+
&= repository.name
|
220
218
|
|
221
|
-
|
219
|
+
%p.uri&= repository.uri
|
222
220
|
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
221
|
+
- unless local?
|
222
|
+
%p.branches
|
223
|
+
%strong Branches:
|
224
|
+
= heads.map {|h| h.name}.join(", ")
|
225
|
+
%ul.commits
|
226
|
+
- for commit in repository.recent_commits
|
227
|
+
%li
|
228
|
+
%img.gravatar{:src => commit.author.gravatar_uri}
|
229
|
+
%p.message
|
230
|
+
%a{:href => "/#{repository.html_friendly_name}/#{commit.id}"}&= commit.short_message
|
231
|
+
%span.meta
|
232
|
+
- if head = heads.find {|h| h.commit == commit}
|
233
|
+
\-
|
234
|
+
%em.branch= head.name
|
235
|
+
\~
|
236
|
+
&= time_ago_in_words(commit.committed_date).gsub("about ","")
|
237
|
+
ago by
|
238
|
+
&= commit.author
|
239
|
+
- else
|
240
|
+
%ul.network
|
241
|
+
- for repo in @repository_browser.repositories_similar_to(repository)
|
242
|
+
%li.loading{'data-json-uri' => repo.json_uri}
|
243
|
+
%a.name{:href => "#{repo.person.uri}##{repo.html_friendly_name}"}= repo.person.name
|
246
244
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
});
|
245
|
+
- if local?
|
246
|
+
:javascript
|
247
|
+
$(function() {
|
248
|
+
$("ul.network li").each(function() {
|
249
|
+
var repoLi = $(this);
|
250
|
+
$.getJSON(repoLi.attr("data-json-uri") + "?callback=?", function(data) {
|
251
|
+
repoLi.removeClass("loading");
|
252
|
+
$("<img class='gravatar'/>").attr("src", data.bananajour.gravatar).prependTo(repoLi);
|
253
|
+
$("<span class='branches' />").text(data.heads.join(", ")).appendTo(repoLi);
|
254
|
+
$('<span class="more">+</span>')
|
255
|
+
.click(function() {
|
256
|
+
if ($(this).text() == "+") {
|
257
|
+
repoLi.find(".message").show();
|
258
|
+
$(this).text("-");
|
259
|
+
} else {
|
260
|
+
repoLi.find(".message").each(function(i) {
|
261
|
+
if (i != 0) $(this).hide();
|
262
|
+
});
|
263
|
+
$(this).text("+");
|
264
|
+
}
|
265
|
+
})
|
266
|
+
.appendTo(repoLi);
|
267
|
+
$(data.recent_commits).each(function(i) {
|
268
|
+
var commit = this;
|
269
|
+
var message = $("<p class='message'/>").html(
|
270
|
+
$("<a/>").attr("href", data.bananajour.uri + data.html_friendly_name + "/" + commit.id).text(commit.message)
|
271
|
+
).appendTo(repoLi).append(
|
272
|
+
$("<span class='meta'/>")
|
273
|
+
.append($("<em class='branch'/>").text(commit.head && (" - " + commit.head)))
|
274
|
+
.append(" ~ " + commit.committed_date_pretty + " by " + commit.author.name)
|
275
|
+
.appendTo(repoLi)
|
276
|
+
)
|
277
|
+
if (i != 0) message.hide();
|
281
278
|
});
|
282
279
|
});
|
283
280
|
});
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
281
|
+
});
|
282
|
+
|
283
|
+
.projects
|
284
|
+
- if @other_repos_by_name.empty?
|
285
|
+
%h2 No other projects
|
286
|
+
- else
|
287
|
+
%h2= pluralize @other_repos_by_name.length, "Other Project", "Other Projects"
|
288
|
+
%ul
|
289
|
+
- for repo_name in @other_repos_by_name.keys.sort
|
290
|
+
%li
|
291
|
+
%h3&= repo_name
|
292
|
+
%ul
|
293
|
+
- for repo in @other_repos_by_name[repo_name].sort_by {|r| r.person.name}
|
294
|
+
%li
|
295
|
+
%a{:href => repo.web_uri}&= repo.person.name
|
296
|
+
.people
|
297
|
+
- if @people.empty?
|
298
|
+
%h2 No other bananas
|
299
|
+
- else
|
300
|
+
%h2= pluralize @people.length, "Other Banana", "Other Bananas"
|
301
|
+
%ul
|
302
|
+
- for person in @people
|
303
|
+
%li
|
304
|
+
%a{:href => person.uri}
|
305
|
+
%img.gravatar{:src => person.gravatar}
|
306
|
+
%span.name&= person.name
|