Merge branch 'master' into user-comment-history

This commit is contained in:
Kim Gardner
2017-06-02 17:22:48 -04:00
committed by GitHub
19 changed files with 296 additions and 209 deletions
@@ -308,15 +308,6 @@ class Comment extends React.Component {
commentId={comment.id}
inline
/>
{!disableReply &&
<ActionButton>
<ReplyButton
onClick={() => setActiveReplyBox(comment.id)}
parentCommentId={parentId || comment.id}
currentUserId={currentUser && currentUser.id}
banned={false}
/>
</ActionButton>}
<ActionButton>
<IfUserCanModifyBest user={currentUser}>
<BestButton
@@ -326,6 +317,15 @@ class Comment extends React.Component {
/>
</IfUserCanModifyBest>
</ActionButton>
{!disableReply &&
<ActionButton>
<ReplyButton
onClick={() => setActiveReplyBox(comment.id)}
parentCommentId={parentId || comment.id}
currentUserId={currentUser && currentUser.id}
banned={false}
/>
</ActionButton>}
<Slot
fill="commentActions"
data={this.props.data}
+1 -1
View File
@@ -7,7 +7,7 @@ import esTA from '../../../node_modules/timeago.js/locales/es';
import en from '../../../locales/en.yml';
import es from '../../../locales/es.yml';
// Translations are happening at https://www.transifex.com/the-coral-project/talk-1/dashboard/.
// Translations are happening at https://translate.lingohub.com/the-coral-project/dashboard
const defaultLanguage = 'en';
const translations = {...en, ...es};
@@ -1,5 +1,5 @@
import React, {Component, PropTypes} from 'react';
import t from 'coral-framework/services/i18n';
import styles from './IgnoredUsers.css';
export class IgnoredUsers extends Component {
@@ -18,7 +18,7 @@ export class IgnoredUsers extends Component {
<div>
{
users.length
? <p>Because you ignored these, you do not see their comments.</p>
? <p>{t('framework.because_you_ignored')}</p>
: null
}
<dl className={styles.ignoredUserList}>
@@ -29,7 +29,7 @@ export class IgnoredUsers extends Component {
<dd className={styles.stopListening}>
<a
onClick={() => stopIgnoring({id})}
className={styles.link}>Stop ignoring</a>
className={styles.link}>{t('framework.stop_ignoring')}</a>
</dd>
</span>
))