Use clearer urls fro documents

This commit is contained in:
Jori Lallo
2016-08-15 21:41:51 +02:00
parent 537341c01c
commit 3089ac7bc8
14 changed files with 88 additions and 56 deletions

View File

@@ -8,7 +8,7 @@ import styles from './DocumentLink.scss';
const DocumentLink = observer((props) => {
return (
<Link to={ `/documents/${props.document.id}` } className={ styles.link }>
<Link to={ props.document.url } className={ styles.link }>
<h3 className={ styles.title }>{ props.document.title }</h3>
<span className={ styles.timestamp }>{ moment(props.document.updatedAt).fromNow() }</span>
</Link>