From fb3d56c5ad3ad1f51509b46c6b68452706967576 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 | 32 +++++++++++++++++++++++++++ app/router.cjsx | 1 + 2 files changed, 33 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..98a81ff6c7 --- /dev/null +++ b/app/pages/organization/talk/index.jsx @@ -0,0 +1,32 @@ +import React from 'react'; +import { Helmet } from 'react-helmet'; +import { Link } from 'react-router'; +import counterpart from 'counterpart'; +const talkPath = '../../../talk' +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.organisation.id}`; + const pageTitle = `${props.organisation.display_name} ยป ${counterpart('orgTalk.title')}`; + return ( +
+ +
+

+ + {props.organisation.display_name} Talk + +

+ + + + + {React.cloneElement(props.children, {section, organisation: props.organisation, user: props.user})} + + +
+
+ ); +} \ No newline at end of file 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 = +