-
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.
Update the projectSection helper to include organisations. Update main Talk page and recent comments to use projectSection.
- Loading branch information
1 parent
0ee5d93
commit 4d86436
Showing
3 changed files
with
9 additions
and
4 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
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# takes in a project id and returns a correctly formatted talk section for that project | ||
|
||
module.exports = (project) -> "project-#{project.id}" | ||
module.exports = (project) -> | ||
type = project._type._name | ||
switch type | ||
when 'organizations' then "org-#{project.id}" | ||
when 'projects' then "project-#{project.id}" |
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