import React from 'react';
import { Link } from 'react-router'; // jshint ignore:line
import Avatar from 'misago/components/avatar'; // jshint ignore:line
import Status, { StatusIcon, StatusLabel } from 'misago/components/user-status'; // jshint ignore:line
import misago from 'misago/index'; // jshint ignore:line
export default class extends React.Component {
getClassName() {
if (this.props.rank.css_class) {
return "list-group-item list-group-rank-" + this.props.rank.css_class;
} else {
return "list-group-item";
}
}
getUserStatus() {
if (this.props.user.status) {
/* jshint ignore:start */
return
;
/* jshint ignore:end */
} else {
/* jshint ignore:start */
return
;
/* jshint ignore:end */
}
}
getRankName() {
if (this.props.rank.is_tab) {
/* jshint ignore:start */
let rankUrl = misago.get('USERS_LIST_URL') + this.props.rank.slug + '/';
return
{this.props.rank.name}
;
/* jshint ignore:end */
} else {
/* jshint ignore:start */
return
{this.props.rank.name}
;
/* jshint ignore:end */
}
}
getUserTitle() {
if (this.props.user.title) {
/* jshint ignore:start */
return
{this.props.user.title}
;
/* jshint ignore:end */
} else {
return null;
}
}
render() {
/* jshint ignore:start */
return
{this.getUserStatus()}
{this.getRankName()}
{this.getUserTitle()}
#{this.props.counter}
{gettext("Rank")}
{this.props.user.meta.score}
{gettext("Ranked posts")}
{this.props.user.posts}
{gettext("Total posts")}
;
/* jshint ignore:end */
}
}