Add polochon download button in the show details

This commit is contained in:
Grégoire Delattre 2017-01-26 13:32:37 +01:00
parent bfedb6ffd4
commit 0fbcd094c3

View File

@ -148,6 +148,7 @@ function Episode(props) {
/> />
) )
})} })}
<DownloadButton data={props.data}/>
</span> </span>
</td> </td>
</tr> </tr>
@ -176,3 +177,17 @@ class Torrent extends React.Component {
) )
} }
} }
function DownloadButton(props) {
if (props.data.polochon_url === "") {
return null
}
return (
<span>
<a type="button" className="btn btn-xs btn-warning" href={props.data.polochon_url}>
<i className="fa fa-download"></i> Download
</a>
</span>
);
}