-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A simple experiment in adding a Talk page for organisation. It looks for a Talk section called org-{organisation.id}.
- Loading branch information
1 parent
940a84f
commit 7dad491
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<div className="project-text-content talk project"> | ||
<Helmet title={pageTitle} /> | ||
<div className="content-container"> | ||
<h1 className="talk-main-link"> | ||
<Link to={`/organizations/${props.organization.slug}/talk`}> | ||
{props.organization.display_name} Talk | ||
</Link> | ||
</h1> | ||
<TalkBreadcrumbs {...props} /> | ||
|
||
<TalkSearchInput {...props} /> | ||
|
||
{React.cloneElement(props.children, { section, organization: props.organization, user: props.user })} | ||
|
||
<TalkFootnote /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters