Skip to content

Commit 3377145

Browse files
authored
fixes for disallowing submissions on osfpreprints (#2611)
1 parent 75d05df commit 3377145

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

app/preprints/index/template.hbs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,30 @@
4848
</OsfLink>
4949
</div>
5050
</div>
51+
{{else}}
52+
{{#if (eq this.theme.id 'osf')}}
53+
<div local-class='submit-container'>
54+
<div local-class='or-container'>{{t 'preprints.header.or'}}</div>
55+
<OsfLink
56+
data-test-submit-button
57+
data-analytics-name='submit button'
58+
local-class='btn btn-success btn-lg'
59+
@route='preprints.select'
60+
>
61+
{{t 'preprints.header.submit_label' documentType=this.theme.provider.documentType.singular}}
62+
</OsfLink>
63+
<div local-class='example-container'>
64+
<OsfLink
65+
data-test-submission-see-submission-example
66+
data-analytics-name='See Submission Example'
67+
@route='resolve-guid'
68+
@models={{array (if this.theme.provider.example this.theme.provider.example 'khbvy')}}
69+
>
70+
{{t 'preprints.header.example'}}
71+
</OsfLink>
72+
</div>
73+
</div>
74+
{{/if}}
5175
{{/if}}
5276
{{/branded-header.row}}
5377
</BrandedHeader>

lib/osf-components/addon/components/osf-navbar/preprint-links/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</OsfLink>
1919
</li>
2020
{{/if}}
21-
{{#if this.theme.provider.allowSubmissions}}
21+
{{#if (or (eq this.theme.id 'osf') this.theme.provider.allowSubmissions)}}
2222
<li data-test-nav-submit-preprint-link>
2323
<OsfLink
2424
data-test-add-a-preprint-osf-navbar

0 commit comments

Comments
 (0)