mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
show mail only if set
This commit is contained in:
@@ -23,6 +23,16 @@ type Props = {
|
|||||||
class ChangesetDetails extends React.Component<Props> {
|
class ChangesetDetails extends React.Component<Props> {
|
||||||
render() {
|
render() {
|
||||||
const { changeset, repository, t, classes } = this.props;
|
const { changeset, repository, t, classes } = this.props;
|
||||||
|
|
||||||
|
const mailadress = changeset.author.mail ? (
|
||||||
|
<tr>
|
||||||
|
<td>{t("author.mail")}</td>
|
||||||
|
<td>
|
||||||
|
<MailLink address={changeset.author.mail} />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
) : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<table className={classNames("table", classes.floatLeft)}>
|
<table className={classNames("table", classes.floatLeft)}>
|
||||||
@@ -35,12 +45,7 @@ class ChangesetDetails extends React.Component<Props> {
|
|||||||
<td>{t("author.name")}</td>
|
<td>{t("author.name")}</td>
|
||||||
<td>{changeset.author.name}</td>
|
<td>{changeset.author.name}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
{mailadress}
|
||||||
<td>{t("author.mail")}</td>
|
|
||||||
<td>
|
|
||||||
<MailLink address={changeset.author.mail} />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{t("changeset.description")}</td>
|
<td>{t("changeset.description")}</td>
|
||||||
<td>{changeset.description}</td>
|
<td>{changeset.description}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user