From 27f125ecf5e63b9aa82e6338a0d1a34f7587fc6b Mon Sep 17 00:00:00 2001
From: Alex Weiksnar
Date: Thu, 20 Aug 2015 14:18:07 -0500
Subject: [PATCH 1/4] Pass project to markdown component
- Cooresponds with https://github.com/zooniverse-ui/markdownz/pull/12
---
app/pages/lab/project-details.cjsx | 2 +-
app/pages/project/education.cjsx | 2 +-
app/pages/project/faq.cjsx | 2 +-
app/pages/project/home.cjsx | 2 +-
app/pages/project/research.cjsx | 2 +-
app/pages/project/results.cjsx | 2 +-
app/partials/project-page-editor.cjsx | 1 +
app/talk/comment-box.cjsx | 2 +-
app/talk/discussion.cjsx | 1 +
9 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/app/pages/lab/project-details.cjsx b/app/pages/lab/project-details.cjsx
index 9cccb00566..435137dbda 100644
--- a/app/pages/lab/project-details.cjsx
+++ b/app/pages/lab/project-details.cjsx
@@ -153,7 +153,7 @@ module.exports = React.createClass
Introduction
-
+
Add a brief introduction to get people interested in your project. This will display on your landing page.
diff --git a/app/pages/project/education.cjsx b/app/pages/project/education.cjsx
index 6076623099..4493e2ffa1 100644
--- a/app/pages/project/education.cjsx
+++ b/app/pages/project/education.cjsx
@@ -13,7 +13,7 @@ module.exports = React.createClass
render: ->
{(education) =>
- {
+ {
if education?.content
education?.content
else
diff --git a/app/pages/project/faq.cjsx b/app/pages/project/faq.cjsx
index 1a88915fab..ebd4f36edb 100644
--- a/app/pages/project/faq.cjsx
+++ b/app/pages/project/faq.cjsx
@@ -13,7 +13,7 @@ module.exports = React.createClass
render: ->
{(faq) =>
- {
+ {
if faq?.content
faq?.content
else
diff --git a/app/pages/project/home.cjsx b/app/pages/project/home.cjsx
index e1b6d9adc1..43ec3536af 100644
--- a/app/pages/project/home.cjsx
+++ b/app/pages/project/home.cjsx
@@ -55,6 +55,6 @@ module.exports = React.createClass
About {@props.project.display_name}
- {@props.project.introduction ? ''}
+ {@props.project.introduction ? ''}
diff --git a/app/pages/project/research.cjsx b/app/pages/project/research.cjsx
index 63af7f5681..78b5f33333 100644
--- a/app/pages/project/research.cjsx
+++ b/app/pages/project/research.cjsx
@@ -27,7 +27,7 @@ module.exports = React.createClass
{(science_case) =>
- {
+ {
if science_case?.content
science_case?.content
else
diff --git a/app/pages/project/results.cjsx b/app/pages/project/results.cjsx
index 1445812335..2220e7a1ae 100644
--- a/app/pages/project/results.cjsx
+++ b/app/pages/project/results.cjsx
@@ -13,7 +13,7 @@ module.exports = React.createClass
render: ->
{(faq) =>
- {
+ {
if faq?.content
faq?.content
else
diff --git a/app/partials/project-page-editor.cjsx b/app/partials/project-page-editor.cjsx
index 1906f175c9..73ff14462a 100644
--- a/app/partials/project-page-editor.cjsx
+++ b/app/partials/project-page-editor.cjsx
@@ -46,6 +46,7 @@ module.exports = React.createClass
{ =>
}
From e3fb549a7fe29faf732ffc97fcd789d779043cb0 Mon Sep 17 00:00:00 2001
From: Alex Weiksnar
Date: Wed, 26 Aug 2015 12:32:59 -0500
Subject: [PATCH 4/4] Use markdown renderer instead of comment-preview
---
app/talk/comment-box.cjsx | 1 -
app/talk/comment.cjsx | 5 ++---
app/talk/discussion.cjsx | 1 +
app/talk/search-result.cjsx | 4 ++--
4 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/app/talk/comment-box.cjsx b/app/talk/comment-box.cjsx
index 6edab0f6e5..6ae3f2f19b 100644
--- a/app/talk/comment-box.cjsx
+++ b/app/talk/comment-box.cjsx
@@ -1,7 +1,6 @@
React = require 'react'
ToggleChildren = require './mixins/toggle-children'
Feedback = require './mixins/feedback'
-CommentPreview = require './comment-preview'
CommentHelp = require './comment-help'
CommentImageSelector = require './comment-image-selector'
getSubjectLocation = require '../lib/get-subject-location'
diff --git a/app/talk/comment.cjsx b/app/talk/comment.cjsx
index 6efdd625fd..2ba374687e 100644
--- a/app/talk/comment.cjsx
+++ b/app/talk/comment.cjsx
@@ -7,7 +7,6 @@ CommentBox = require './comment-box'
CommentReportForm = require './comment-report-form'
CommentLink = require './comment-link'
upvotedByCurrentUser = require './lib/upvoted-by-current-user'
-CommentPreview = require './comment-preview'
PromiseRenderer = require '../components/promise-renderer'
{Link} = require 'react-router'
{timestamp} = require './lib/time'
@@ -17,7 +16,7 @@ Avatar = require '../partials/avatar'
SubjectViewer = require '../components/subject-viewer'
DisplayRoles = require './lib/display-roles'
merge = require 'lodash.merge'
-
+{Markdown} = require 'markdownz'
DEFAULT_AVATAR = './assets/simple-avatar.jpg'
module?.exports = React.createClass
@@ -133,7 +132,7 @@ module?.exports = React.createClass
catch={null}
/>}
-
+