mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
merged
This commit is contained in:
@@ -16,24 +16,22 @@ type Props = {
|
||||
class ChangesetButtonGroup extends React.Component<Props> {
|
||||
render() {
|
||||
const { repository, changeset, t } = this.props;
|
||||
|
||||
const changesetLink = createChangesetLink(repository, changeset);
|
||||
const sourcesLink = createSourcesLink(repository, changeset);
|
||||
|
||||
return (
|
||||
<ButtonAddons className="is-marginless">
|
||||
<Button link={changesetLink} className="reduced-mobile">
|
||||
<span className="icon">
|
||||
<i className="fas fa-exchange-alt" />
|
||||
</span>
|
||||
<span>{t("changeset.buttons.details")}</span>
|
||||
</Button>
|
||||
<Button link={sourcesLink} className="reduced-mobile">
|
||||
<span className="icon">
|
||||
<i className="fas fa-code" />
|
||||
</span>
|
||||
<span>{t("changeset.buttons.sources")}</span>
|
||||
</Button>
|
||||
<Button
|
||||
link={changesetLink}
|
||||
icon="exchange-alt"
|
||||
label={t("changeset.buttons.details")}
|
||||
reducedMobile={true}
|
||||
/>
|
||||
<Button
|
||||
link={sourcesLink}
|
||||
icon="code"
|
||||
label={t("changeset.buttons.sources")}
|
||||
reducedMobile={true}
|
||||
/>
|
||||
</ButtonAddons>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -25,18 +25,18 @@ class BranchButtonGroup extends React.Component<Props> {
|
||||
|
||||
return (
|
||||
<ButtonAddons>
|
||||
<Button link={changesetLink} className="reduced-mobile">
|
||||
<span className="icon">
|
||||
<i className="fas fa-exchange-alt" />
|
||||
</span>
|
||||
<span>{t("branch.commits")}</span>
|
||||
</Button>
|
||||
<Button link={sourcesLink} className="reduced-mobile">
|
||||
<span className="icon">
|
||||
<i className="fas fa-code" />
|
||||
</span>
|
||||
<span>{t("branch.sources")}</span>
|
||||
</Button>
|
||||
<Button
|
||||
link={changesetLink}
|
||||
icon="exchange-alt"
|
||||
label={t("branch.commits")}
|
||||
reducedMobile={true}
|
||||
/>
|
||||
<Button
|
||||
link={sourcesLink}
|
||||
icon="code"
|
||||
label={t("branch.sources")}
|
||||
reducedMobile={true}
|
||||
/>
|
||||
</ButtonAddons>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user