Remove creator name in template menu, closes #5976
This commit is contained in:
@@ -3,8 +3,6 @@ import { DocumentIcon } from "outline-icons";
|
||||
import * as React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { MenuButton, useMenuState } from "reakit/Menu";
|
||||
import styled from "styled-components";
|
||||
import { ellipsis } from "@shared/styles";
|
||||
import Document from "~/models/Document";
|
||||
import Button from "~/components/Button";
|
||||
import ContextMenu from "~/components/ContextMenu";
|
||||
@@ -49,17 +47,7 @@ function TemplatesMenu({ onSelectTemplate, document }: Props) {
|
||||
}
|
||||
{...menu}
|
||||
>
|
||||
<TemplateItem>
|
||||
<strong>
|
||||
{replaceTitleVariables(template.titleWithDefault, user)}
|
||||
</strong>
|
||||
<br />
|
||||
<Author>
|
||||
{t("By {{ author }}", {
|
||||
author: template.createdBy.name,
|
||||
})}
|
||||
</Author>
|
||||
</TemplateItem>
|
||||
{replaceTitleVariables(template.titleWithDefault, user)}
|
||||
</MenuItem>
|
||||
);
|
||||
|
||||
@@ -83,13 +71,4 @@ function TemplatesMenu({ onSelectTemplate, document }: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
const TemplateItem = styled.div`
|
||||
text-align: left;
|
||||
${ellipsis()}
|
||||
`;
|
||||
|
||||
const Author = styled.div`
|
||||
font-size: 13px;
|
||||
`;
|
||||
|
||||
export default observer(TemplatesMenu);
|
||||
|
||||
@@ -395,7 +395,6 @@
|
||||
"Contents": "Contents",
|
||||
"Headings you add to the document will appear here": "Headings you add to the document will appear here",
|
||||
"Table of contents": "Table of contents",
|
||||
"By {{ author }}": "By {{ author }}",
|
||||
"Change role to admin": "Change role to admin",
|
||||
"Change role to member": "Change role to member",
|
||||
"Change role to viewer": "Change role to viewer",
|
||||
|
||||
Reference in New Issue
Block a user