Skip to content

Commit

Permalink
https://github.com/cschleiden/imperaplus-client/issues/30
Browse files Browse the repository at this point in the history
  • Loading branch information
renebaudisch committed Jan 19, 2020
1 parent 2ebd171 commit 6f1f9e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions loc/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"Close": "Schließen",
"Enter your message...": "Nachricht eingeben...",
"Send": "Senden",
"max. turns": "max. Züge",
"You have to be 13 years or older to play Impera.": "Du must 13 Jahre oder älter sein um Impera zu spielen.",
"Password changed.": "Passwort geändert.",
"Your session expired. Please login again.": "Deine Session ist abgelaufen. Bitte erneut einloggen.",
Expand Down
11 changes: 11 additions & 0 deletions src/pages/play/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ class Header extends React.Component<IHeaderProps & IHeaderDispatchProps> {
<Timer key={`${game.id}-${game.turnCounter}`} startInMs={game.timeoutSecondsLeft * 1000} />
</div>

{/* max. moves */}
<div className="play-header-block full-text hidden-xs">
{this._renderMoves()}
</div>

{/* Cards */}
<div className="play-header-block hidden-xs">
{this._renderCards()}
Expand Down Expand Up @@ -224,6 +229,12 @@ class Header extends React.Component<IHeaderProps & IHeaderDispatchProps> {
);
}

private _renderMoves() {
return (
<span>{__("max. moves:")} {this.props.game.options.movesPerTurn}</span>
);
}

private _renderCards() {
const { game, player } = this.props;

Expand Down

0 comments on commit 6f1f9e1

Please sign in to comment.