mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 11:35:57 +01:00
repository navigation
This commit is contained in:
@@ -19,13 +19,11 @@
|
|||||||
"repository-root": {
|
"repository-root": {
|
||||||
"error-title": "Error",
|
"error-title": "Error",
|
||||||
"error-subtitle": "Unknown repository error",
|
"error-subtitle": "Unknown repository error",
|
||||||
"actions-label": "Actions",
|
"navigationLabel": "Repository Navigation",
|
||||||
"back-label": "Back",
|
"historyNavLink": "Commits",
|
||||||
"navigation-label": "Navigation",
|
"informationNavLink": "Information",
|
||||||
"history": "Commits",
|
"permissionsNavLink": "Permissions",
|
||||||
"information": "Information",
|
"sourcesNavLink": "Sources"
|
||||||
"permissions": "Permissions",
|
|
||||||
"sources": "Sources"
|
|
||||||
},
|
},
|
||||||
"create": {
|
"create": {
|
||||||
"title": "Create Repository",
|
"title": "Create Repository",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class PermissionsNavLink extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
const { permissionUrl, t } = this.props;
|
const { permissionUrl, t } = this.props;
|
||||||
return (
|
return (
|
||||||
<NavLink to={permissionUrl} label={t("repository-root.permissions")} />
|
<NavLink to={permissionUrl} label={t("repository-root.permissionsNavLink")} />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -168,13 +168,13 @@ class RepositoryRoot extends React.Component<Props> {
|
|||||||
</div>
|
</div>
|
||||||
<div className="column">
|
<div className="column">
|
||||||
<Navigation>
|
<Navigation>
|
||||||
<Section label={t("repository-root.navigation-label")}>
|
<Section label={t("repository-root.navigationLabel")}>
|
||||||
<NavLink to={url} label={t("repository-root.information")} />
|
<NavLink to={url} label={t("repository-root.informationNavLink")} />
|
||||||
<RepositoryNavLink
|
<RepositoryNavLink
|
||||||
repository={repository}
|
repository={repository}
|
||||||
linkName="changesets"
|
linkName="changesets"
|
||||||
to={`${url}/changesets/`}
|
to={`${url}/changesets/`}
|
||||||
label={t("repository-root.history")}
|
label={t("repository-root.historyNavLink")}
|
||||||
activeWhenMatch={this.matches}
|
activeWhenMatch={this.matches}
|
||||||
activeOnlyWhenExact={false}
|
activeOnlyWhenExact={false}
|
||||||
/>
|
/>
|
||||||
@@ -182,24 +182,19 @@ class RepositoryRoot extends React.Component<Props> {
|
|||||||
repository={repository}
|
repository={repository}
|
||||||
linkName="sources"
|
linkName="sources"
|
||||||
to={`${url}/sources`}
|
to={`${url}/sources`}
|
||||||
label={t("repository-root.sources")}
|
label={t("repository-root.sourcesNavLink")}
|
||||||
activeOnlyWhenExact={false}
|
activeOnlyWhenExact={false}
|
||||||
/>
|
/>
|
||||||
<PermissionsNavLink
|
<PermissionsNavLink
|
||||||
permissionUrl={`${url}/permissions`}
|
permissionUrl={`${url}/permissions`}
|
||||||
repository={repository}
|
repository={repository}
|
||||||
/>
|
/>
|
||||||
<EditNavLink repository={repository} editUrl={`${url}/edit`} />
|
|
||||||
<ExtensionPoint
|
<ExtensionPoint
|
||||||
name="repository.navigation"
|
name="repository.navigation"
|
||||||
props={extensionProps}
|
props={extensionProps}
|
||||||
renderAll={true}
|
renderAll={true}
|
||||||
/>
|
/>
|
||||||
</Section>
|
</Section>
|
||||||
<Section label={t("repository-root.actions-label")}>
|
|
||||||
<DeleteNavAction repository={repository} delete={this.delete} />
|
|
||||||
<NavLink to="/repos" label={t("repository-root.back-label")} />
|
|
||||||
</Section>
|
|
||||||
</Navigation>
|
</Navigation>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user