File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 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({
1616 } ,
1717
1818 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+
1927 return (
2028 < div >
2129 < div className = 'row repository' >
2230 < 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 >
2435 </ div >
2536
2637 { this . props . repo . map ( function ( obj ) {
Original file line number Diff line number Diff line change @@ -302,6 +302,15 @@ input {
302302 font-size : 18px ;
303303 .FontOpenSansSemibold ();
304304 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+ }
305314 }
306315}
307316
You can’t perform that action at this time.
0 commit comments