We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23d0309 commit ca755dbCopy full SHA for ca755db
1 file changed
src/js/components/repository.js
@@ -16,11 +16,23 @@ var Repository = React.createClass({
16
},
17
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
27
return (
28
<div>
29
<div className='row repository'>
30
<div className='col-xs-2'><img className='avatar' src={this.getAvatar()} /></div>
- <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
+ /
34
+ <span>{organisationName}</span>
35
+ </div>
36
</div>
37
38
{this.props.repo.map(function (obj) {
0 commit comments