mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	Render namespace as link in repo detail header
This commit is contained in:
		| @@ -23,7 +23,7 @@ | ||||
|  */ | ||||
| import React from "react"; | ||||
| import { connect } from "react-redux"; | ||||
| import { Redirect, Route, RouteComponentProps, Switch } from "react-router-dom"; | ||||
| import { Link, Redirect, Route, RouteComponentProps, Switch } from "react-router-dom"; | ||||
| import { WithTranslation, withTranslation } from "react-i18next"; | ||||
| import { binder, ExtensionPoint } from "@scm-manager/ui-extensions"; | ||||
| import { Changeset, Repository } from "@scm-manager/ui-types"; | ||||
| @@ -186,10 +186,13 @@ class RepositoryRoot extends React.Component<Props> { | ||||
|       return links.map(({ url, label }) => <JumpToFileButton tooltip={label} link={url} />); | ||||
|     }; | ||||
|  | ||||
|     const titleComponent = <><Link to={`/repos/${repository.namespace}/`}>{repository.namespace}</Link>/{repository.name}</>; | ||||
|  | ||||
|     return ( | ||||
|       <StateMenuContextProvider> | ||||
|         <Page | ||||
|           title={repository.namespace + "/" + repository.name} | ||||
|           titleComponent={titleComponent} | ||||
|           title={`${repository.namespace}/${repository.name}`} | ||||
|           afterTitle={<ExtensionPoint name={"repository.afterTitle"} props={{ repository }} />} | ||||
|         > | ||||
|           <CustomQueryFlexWrappedColumns> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user