mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Merge branch 'master' of github.com:ascribe/onion
This commit is contained in:
commit
6821ab9e44
@ -70,7 +70,7 @@ let Edition = React.createClass({
|
||||
<div className="ascribe-detail-header">
|
||||
<hr className="hidden-print" style={{marginTop: 0}}/>
|
||||
<h1 className="ascribe-detail-title">{edition.title}</h1>
|
||||
<DetailProperty label="BY" value={edition.artist_name} />
|
||||
<DetailProperty label="CREATED BY" value={edition.artist_name} />
|
||||
<DetailProperty label="DATE" value={Moment(edition.date_created, 'YYYY-MM-DD').year()} />
|
||||
<hr/>
|
||||
</div>
|
||||
|
@ -14,7 +14,9 @@ import CollapsibleButton from './../ascribe_collapsible/collapsible_button';
|
||||
|
||||
import AclProxy from '../acl_proxy';
|
||||
|
||||
import { getLangText } from '../../utils/lang_utils.js';
|
||||
import { getLangText } from '../../utils/lang_utils';
|
||||
import { extractFileExtensionFromString } from '../../utils/file_utils';
|
||||
|
||||
|
||||
const EMBED_IFRAME_HEIGHT = {
|
||||
video: 315,
|
||||
@ -63,6 +65,7 @@ let MediaContainer = React.createClass({
|
||||
// We also force uniqueness of usernames, so this check is safe to dtermine if the
|
||||
// content was registered by the current user.
|
||||
const didUserRegisterContent = currentUser && (currentUser.username === content.user_registered);
|
||||
const fileExtension = extractFileExtensionFromString(content.digital_work.url);
|
||||
|
||||
let thumbnail = content.thumbnail.thumbnail_sizes && content.thumbnail.thumbnail_sizes['600x600'] ?
|
||||
content.thumbnail.thumbnail_sizes['600x600'] : content.thumbnail.url_safe;
|
||||
@ -120,7 +123,7 @@ let MediaContainer = React.createClass({
|
||||
className="ascribe-margin-1px"
|
||||
href={content.digital_work.url}
|
||||
target="_blank">
|
||||
{getLangText('Download')} .{mimetype} <Glyphicon glyph="cloud-download"/>
|
||||
{getLangText('Download')} .{fileExtension} <Glyphicon glyph="cloud-download"/>
|
||||
</Button>
|
||||
</AclProxy>
|
||||
{embed}
|
||||
|
@ -269,7 +269,7 @@ let PieceContainer = React.createClass({
|
||||
<div className="ascribe-detail-header">
|
||||
<hr className="hidden-print" style={{marginTop: 0}} />
|
||||
<h1 className="ascribe-detail-title">{piece.title}</h1>
|
||||
<DetailProperty label="BY" value={piece.artist_name} />
|
||||
<DetailProperty label="CREATED BY" value={piece.artist_name} />
|
||||
<DetailProperty label="DATE" value={Moment(piece.date_created, 'YYYY-MM-DD').year() } />
|
||||
{piece.num_editions > 0 ? <DetailProperty label="EDITIONS" value={ piece.num_editions } /> : null}
|
||||
<hr/>
|
||||
@ -277,7 +277,7 @@ let PieceContainer = React.createClass({
|
||||
}
|
||||
subheader={
|
||||
<div className="ascribe-detail-header">
|
||||
<DetailProperty label={getLangText('REGISTREE')} value={ piece.user_registered } />
|
||||
<DetailProperty label={getLangText('ASCRIBED BY')} value={ piece.user_registered } />
|
||||
<DetailProperty label={getLangText('ID')} value={ piece.bitcoin_id } ellipsis={true} />
|
||||
<LicenseDetail license={piece.license_type} />
|
||||
</div>
|
||||
|
@ -20,7 +20,6 @@ let PieceExtraDataForm = React.createClass({
|
||||
editable: React.PropTypes.bool,
|
||||
extraData: React.PropTypes.object,
|
||||
handleSuccess: React.PropTypes.func,
|
||||
name: React.PropTypes.string,
|
||||
title: React.PropTypes.string
|
||||
},
|
||||
|
||||
|
@ -216,9 +216,7 @@ let RegisterPieceForm = React.createClass({
|
||||
plural: getLangText('Select representative images')
|
||||
}}
|
||||
isFineUploaderActive={isFineUploaderActive}
|
||||
disabled={!isFineUploaderEditable}
|
||||
enableLocalHashing={enableLocalHashing}
|
||||
uploadMethod={location.query.method} />
|
||||
disabled={!isFineUploaderEditable} />
|
||||
</Property>
|
||||
<Property
|
||||
name='artist_name'
|
||||
|
Loading…
Reference in New Issue
Block a user