From f4a24b380c87544db1b267a9786d5fc7659ad546 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Thu, 20 Jun 2019 14:17:42 +0100 Subject: [PATCH] Add an organisation Talk page A simple experiment in adding a Talk page for organisation. It looks for a Talk section called org-{organisation.id}. --- app/pages/organization/talk/index.jsx | 31 +++++++++++++++++++++++++++ app/router.cjsx | 1 + 2 files changed, 32 insertions(+) create mode 100644 app/pages/organization/talk/index.jsx diff --git a/app/pages/organization/talk/index.jsx b/app/pages/organization/talk/index.jsx new file mode 100644 index 0000000000..6beefff3d7 --- /dev/null +++ b/app/pages/organization/talk/index.jsx @@ -0,0 +1,31 @@ +import React from 'react'; +import { Helmet } from 'react-helmet'; +import { Link } from 'react-router'; +import counterpart from 'counterpart'; +import TalkBreadcrumbs from '../../../talk/breadcrumbs'; +import TalkSearchInput from '../../../talk/search-input'; +import TalkFootnote from '../../../talk/footnote'; + +export default function OrgTalkPage(props) { + const section = `org-${props.organization.id}`; + const pageTitle = `${props.organization.display_name} ยป ${counterpart('orgTalk.title')}`; + return ( +
+ +
+

+ + {props.organization.display_name} Talk + +

+ + + + + {React.cloneElement(props.children, { section, organization: props.organization, user: props.user })} + + +
+
+ ); +} diff --git a/app/router.cjsx b/app/router.cjsx index b88d05612f..efef19d506 100644 --- a/app/router.cjsx +++ b/app/router.cjsx @@ -199,6 +199,7 @@ module.exports = +