add extension point

This commit is contained in:
Maren Süwer
2018-09-25 15:38:59 +02:00
parent 9ee7fc7499
commit 24589556c7
2 changed files with 34 additions and 29 deletions

View File

@@ -3,6 +3,7 @@ import React from "react";
import type { Changeset } from "@scm-manager/ui-types"; import type { Changeset } from "@scm-manager/ui-types";
import { translate } from "react-i18next"; import { translate } from "react-i18next";
import { MailLink, DateFromNow } from "@scm-manager/ui-components"; import { MailLink, DateFromNow } from "@scm-manager/ui-components";
import ChangesetAvatar from "./ChangesetAvatar";
type Props = { type Props = {
changeset: Changeset, changeset: Changeset,
@@ -13,34 +14,39 @@ class ChangesetDetails extends React.Component<Props> {
render() { render() {
const { changeset, t } = this.props; const { changeset, t } = this.props;
return ( return (
<table className="table"> <div>
<tbody> <figure className="media-left">
<tr> <ChangesetAvatar changeset={changeset} />
<td>{t("changeset.id")}</td> </figure>
<td>{changeset.id}</td> <table className="table">
</tr> <tbody>
<tr> <tr>
<td>{t("author.name")}</td> <td>{t("changeset.id")}</td>
<td>{changeset.author.name}</td> <td>{changeset.id}</td>
</tr> </tr>
<tr> <tr>
<td>{t("author.mail")}</td> <td>{t("author.name")}</td>
<td> <td>{changeset.author.name}</td>
<MailLink address={changeset.author.mail} /> </tr>
</td> <tr>
</tr> <td>{t("author.mail")}</td>
<tr> <td>
<td>{t("changeset.description")}</td> <MailLink address={changeset.author.mail} />
<td>{changeset.description}</td> </td>
</tr> </tr>
<tr> <tr>
<td>{t("changeset.date")}</td> <td>{t("changeset.description")}</td>
<td> <td>{changeset.description}</td>
<DateFromNow date={changeset.date} /> </tr>
</td> <tr>
</tr> <td>{t("changeset.date")}</td>
</tbody> <td>
</table> <DateFromNow date={changeset.date} />
</td>
</tr>
</tbody>
</table>
</div>
); );
} }
} }

View File

@@ -11,7 +11,6 @@ import { getFailure } from "../../modules/failure";
import { combineReducers } from "redux"; import { combineReducers } from "redux";
import type { Action, PagedCollection } from "@scm-manager/ui-types"; import type { Action, PagedCollection } from "@scm-manager/ui-types";
import * as types from "../../modules/types"; import * as types from "../../modules/types";
import { CREATE_USER_RESET } from "../../users/modules/users";
export const FETCH_CHANGESETS = "scm/repos/FETCH_CHANGESETS"; export const FETCH_CHANGESETS = "scm/repos/FETCH_CHANGESETS";
export const FETCH_CHANGESETS_PENDING = `${FETCH_CHANGESETS}_${PENDING_SUFFIX}`; export const FETCH_CHANGESETS_PENDING = `${FETCH_CHANGESETS}_${PENDING_SUFFIX}`;