зеркало из https://github.com/docker/kitematic.git
Changes made in response to code review.
This commit is contained in:
Родитель
d9aa828dd0
Коммит
1b8e25501c
|
@ -42,11 +42,11 @@ var ImageCard = React.createClass({
|
||||||
$tagOverlay.fadeOut(300);
|
$tagOverlay.fadeOut(300);
|
||||||
},
|
},
|
||||||
handleRepoClick: function () {
|
handleRepoClick: function () {
|
||||||
var $repoUri = 'https://registry.hub.docker.com/'
|
var $repoUri = 'https://registry.hub.docker.com/';
|
||||||
if (this.props.image.is_official) {
|
if (this.props.image.is_official) {
|
||||||
$repoUri = $repoUri + "_/"
|
$repoUri = $repoUri + "_/";
|
||||||
} else {
|
} else {
|
||||||
$repoUri = $repoUri + "u/"
|
$repoUri = $repoUri + "u/";
|
||||||
}
|
}
|
||||||
util.exec(['open', $repoUri + this.props.image.name]);
|
util.exec(['open', $repoUri + this.props.image.name]);
|
||||||
},
|
},
|
||||||
|
@ -67,7 +67,7 @@ var ImageCard = React.createClass({
|
||||||
name = (
|
name = (
|
||||||
<div>
|
<div>
|
||||||
<div className="namespace official">{namespace}</div>
|
<div className="namespace official">{namespace}</div>
|
||||||
<OverlayTrigger placement="bottom" overlay={<Tooltip>{this.props.image.name}</Tooltip>}>
|
<OverlayTrigger placement="bottom" overlay={<Tooltip>View on DockerHub</Tooltip>}>
|
||||||
<span className="repo" onClick={this.handleRepoClick}>{repo}</span>
|
<span className="repo" onClick={this.handleRepoClick}>{repo}</span>
|
||||||
</OverlayTrigger>
|
</OverlayTrigger>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -187,11 +187,6 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
&:hover {
|
|
||||||
background-color: @brand-action;
|
|
||||||
color: white;
|
|
||||||
border-radius: 20px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.description {
|
.description {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче