Add versioning functionality

This commit is contained in:
Frank Li 2017-08-03 10:25:01 -07:00
parent 58452ea963
commit 3598dffc58
12 changed files with 568 additions and 132 deletions

View file

@ -13,7 +13,7 @@ const Marked = require("./Marked.js");
class Doc extends React.Component {
render() {
let editLink =
this.props.config.editUrl &&
!this.props.version && this.props.config.editUrl &&
<a
className="edit-page-link button"
href={
@ -28,7 +28,7 @@ class Doc extends React.Component {
</a>;
if (this.props.language != "en") {
editLink =
this.props.config.recruitingLink &&
!this.props.version && this.props.config.recruitingLink &&
<a
className="edit-page-link button"
href={this.props.config.recruitingLink + "/" + this.props.language}