File tree 2 files changed +21
-1
lines changed 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,22 @@ var Repository = React.createClass({
16
16
} ,
17
17
18
18
render : function ( ) {
19
+ var organisationName , repositoryName ;
20
+
21
+ if ( typeof this . props . repoName === 'string' ) {
22
+ var splitName = this . props . repoName . split ( '/' ) ;
23
+ organisationName = splitName [ 0 ] ;
24
+ repositoryName = splitName [ 1 ] ;
25
+ }
26
+
19
27
return (
20
28
< div >
21
29
< div className = 'row repository' >
22
30
< div className = 'col-xs-2' > < img className = 'avatar' src = { this . getAvatar ( ) } /> </ div >
23
- < div className = 'col-xs-10 name' onClick = { this . openBrowser } > { this . props . repoName } </ div >
31
+ < div className = 'col-xs-10 name' onClick = { this . openBrowser } >
32
+ < span > { '/' + repositoryName } </ span >
33
+ < span > { organisationName } </ span >
34
+ </ div >
24
35
</ div >
25
36
26
37
{ this . props . repo . map ( function ( obj ) {
Original file line number Diff line number Diff line change @@ -302,6 +302,15 @@ input {
302
302
font-size : 18px ;
303
303
.FontOpenSansSemibold ();
304
304
text-align : right ;
305
+
306
+ span {
307
+ display : inline-block ;
308
+ float : right ;
309
+ max-width : 50% ;
310
+ white-space : nowrap ;
311
+ text-overflow : ellipsis ;
312
+ overflow : hidden ;
313
+ }
305
314
}
306
315
}
307
316
You can’t perform that action at this time.
0 commit comments