Skip to content
Snippets Groups Projects
Commit 5cf1ba0b authored by Greg Fodor's avatar Greg Fodor
Browse files

Add organization attribution

parent a966b960
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,17 @@
@media (max-width: 520px) {
display: none;
}
}
}
&__org {
color: $light-text;
font-size: 1.0em;
display: inline;
@media (max-width: 520px) {
display: none;
}
}
a {
pointer-events: all;
......
......@@ -142,6 +142,7 @@ class HubCreatePanel extends Component {
const environmentTitle = meta.title || environment.name;
const environmentAuthor = (meta.authors || [])[0];
const environmentOrganization = (meta.organizations || [])[0];
const environmentThumbnail = this._getEnvironmentThumbnail(this.state.environmentIndex);
const formNameClassNames = classNames("create-panel__form__name", {
......@@ -214,6 +215,21 @@ class HubCreatePanel extends Component {
<span>{environmentAuthor.name}</span>
</span>
))}
{environmentOrganization &&
environmentOrganization.name &&
(environmentOrganization.url ? (
<a
href={environmentOrganization.url}
target="_blank"
className="create-panel__form__environment__picker__labels__header__org"
>
<span>{environmentOrganization.name}</span>
</a>
) : (
<span className="create-panel__form__environment__picker__labels__header__org">
<span>{environmentOrganization.name}</span>
</span>
))}
</div>
<div className="create-panel__form__environment__picker__labels__footer">
<FormattedMessage id="home.environment_picker_footer" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment