move cc 3.0 under legacy license types
This commit is contained in:
parent
2c1a649f0c
commit
bab03e415d
3 changed files with 16 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import { FormField } from 'component/common/form';
|
||||
import { CC_LICENSES, COPYRIGHT, OTHER, PUBLIC_DOMAIN, NONE } from 'constants/licenses';
|
||||
import { CC_LICENSES, LEGACY_CC_LICENSES, COPYRIGHT, OTHER, PUBLIC_DOMAIN, NONE } from 'constants/licenses';
|
||||
|
||||
type Props = {
|
||||
licenseType: ?string,
|
||||
|
@ -59,6 +59,12 @@ class LicenseType extends React.PureComponent<Props> {
|
|||
|
||||
<option value={COPYRIGHT}>{__('Copyrighted...')}</option>
|
||||
<option value={OTHER}>{__('Other...')}</option>
|
||||
<option disabled>{__('Legacy Licences')}</option>
|
||||
{LEGACY_CC_LICENSES.map(({ value, url }) => (
|
||||
<option key={value} value={value} data-url={url}>
|
||||
{value}
|
||||
</option>
|
||||
))}
|
||||
</FormField>
|
||||
|
||||
{licenseType === COPYRIGHT && (
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
export const CC_LICENSES = [
|
||||
{
|
||||
value: 'Creative Commons Attribution 3.0',
|
||||
url: 'https://creativecommons.org/licenses/by/3.0/legalcode',
|
||||
},
|
||||
{
|
||||
value: 'Creative Commons Attribution 4.0 International',
|
||||
url: 'https://creativecommons.org/licenses/by/4.0/legalcode',
|
||||
|
@ -29,6 +25,13 @@ export const CC_LICENSES = [
|
|||
},
|
||||
];
|
||||
|
||||
export const LEGACY_CC_LICENSES = [
|
||||
{
|
||||
value: 'Creative Commons Attribution 3.0',
|
||||
url: 'https://creativecommons.org/licenses/by/3.0/legalcode',
|
||||
},
|
||||
];
|
||||
|
||||
export const NONE = 'None';
|
||||
export const PUBLIC_DOMAIN = 'Public Domain';
|
||||
export const OTHER = 'other';
|
||||
|
|
|
@ -843,5 +843,6 @@
|
|||
"Password for %email%": "Password for %email%",
|
||||
"help guide": "help guide",
|
||||
"If you are having issues, checkout our %help% or email us at %email%.": "If you are having issues, checkout our %help% or email us at %email%.",
|
||||
"Wrong password for %email%": "Wrong password for %email%"
|
||||
"Wrong password for %email%": "Wrong password for %email%",
|
||||
"Legacy Licences": "Legacy Licences"
|
||||
}
|
Loading…
Reference in a new issue