Issue #919 : Show DocumentPath in Breadcrumbs at Publishing Info, instead of only showing collection's name (#920)
closes https://github.com/outline/outline/issues/919
This commit is contained in:
@@ -5,6 +5,7 @@ import Collection from 'models/Collection';
|
||||
import Document from 'models/Document';
|
||||
import Flex from 'shared/components/Flex';
|
||||
import Time from 'shared/components/Time';
|
||||
import Breadcrumb from 'shared/components/Breadcrumb';
|
||||
|
||||
const Container = styled(Flex)`
|
||||
color: ${props => props.theme.textTertiary};
|
||||
@@ -75,7 +76,10 @@ function PublishingInfo({ collection, showPublished, document }: Props) {
|
||||
{content}
|
||||
{collection && (
|
||||
<span>
|
||||
in <strong>{isDraft ? 'Drafts' : collection.name}</strong>
|
||||
in
|
||||
<strong>
|
||||
{isDraft ? 'Drafts' : <Breadcrumb document={document} onlyText />}
|
||||
</strong>
|
||||
</span>
|
||||
)}
|
||||
</Container>
|
||||
|
||||
Reference in New Issue
Block a user