mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
No tags state.
This commit is contained in:
@@ -122,7 +122,7 @@ var ImageCard = React.createClass({
|
||||
if (self.state.loading) {
|
||||
tags = <RetinaImage className="tags-loading" src="loading.png"/>;
|
||||
} else if (self.state.tags.length === 0) {
|
||||
tags = <span>No Tags</span>;
|
||||
tags = <div className="no-tags">No Tags</div>;
|
||||
} else {
|
||||
var tagDisplay = self.state.tags.map(function (t) {
|
||||
if (t === self.state.chosenTag) {
|
||||
@@ -151,7 +151,7 @@ var ImageCard = React.createClass({
|
||||
<div className="image-item">
|
||||
<div className="overlay menu-overlay">
|
||||
<div className="menu-item" onClick={this.handleTagOverlayClick.bind(this, this.props.image.name)}>
|
||||
CHOSEN TAG: <span className="selected-tag">{this.state.chosenTag}</span>
|
||||
SELECTED TAG: <span className="selected-tag">{this.state.chosenTag}</span>
|
||||
</div>
|
||||
<div className="menu-item" onClick={this.handleRepoClick}>
|
||||
VIEW ON DOCKER HUB
|
||||
|
||||
@@ -260,6 +260,11 @@
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
-webkit-animation-timing-function: linear;
|
||||
}
|
||||
.no-tags {
|
||||
color: @gray-lighter;
|
||||
text-align: center;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
}
|
||||
.logo {
|
||||
width: 60px;
|
||||
|
||||
Reference in New Issue
Block a user