From 225921c0a41d46764036f05ef8ef2bf850c401ca Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Sun, 7 May 2017 14:07:40 +0700 Subject: [PATCH] Use HTML from master file tile stream --- ui/js/component/fileTileStream/view.jsx | 110 +++++++++++++++--------- 1 file changed, 71 insertions(+), 39 deletions(-) diff --git a/ui/js/component/fileTileStream/view.jsx b/ui/js/component/fileTileStream/view.jsx index 70738668a..9453f0cb0 100644 --- a/ui/js/component/fileTileStream/view.jsx +++ b/ui/js/component/fileTileStream/view.jsx @@ -83,49 +83,81 @@ class FileTileStream extends React.Component { } return ( -
-
-
- navigate('/show', { uri })}> - {metadata && metadata.thumbnail ? - - : - - } - -
-
-
- { !this.props.hidePrice - ? - : null} -
navigate('/show', { uri })}>{uri}
-

- navigate('/show', { uri })} title={title}> - - {title} - - -

+
+
+ navigate('/show', { uri })} className="card__link"> +
+
{title}
+
+ { !this.props.hidePrice ? : null} + +
-
+ { metadata && metadata.thumbnail ? +
: +
+ } +
+ + {isConfirmed + ? metadata.description + : This file is pending confirmation.} +
-
-

- {description} -

-
-
+ + {this.state.showNsfwHelp && this.state.hovered + ?
+

+ This content is Not Safe For Work. + To view adult content, please change your navigate('/settings')} label="Settings" />. +

+
+ : null}
- {this.state.showNsfwHelp - ?
-

- This content is Not Safe For Work. - To view adult content, please change your navigate('/settings')} label="Settings" />. -

-
- : null}
+ //
+ //
+ //
+ // navigate('/show', { uri })}> + // {metadata && metadata.thumbnail ? + // + // : + // + // } + // + //
+ //
+ //
+ // { !this.props.hidePrice + // ? + // : null} + //
navigate('/show', { uri })}>{uri}
+ //

+ // navigate('/show', { uri })} title={title}> + // + // {title} + // + // + //

+ //
+ //
+ //
+ //
+ //

+ // {description} + //

+ //
+ //
+ //
+ // {this.state.showNsfwHelp + // ?
+ //

+ // This content is Not Safe For Work. + // To view adult content, please change your navigate('/settings')} label="Settings" />. + //

+ //
+ // : null} + //
); } }