Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions app/preprints/index/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,30 @@
</OsfLink>
</div>
</div>
{{else}}
{{#if (eq this.theme.id 'osf')}}
<div local-class='submit-container'>
<div local-class='or-container'>{{t 'preprints.header.or'}}</div>
<OsfLink
data-test-submit-button
data-analytics-name='submit button'
local-class='btn btn-success btn-lg'
@route='preprints.select'
>
{{t 'preprints.header.submit_label' documentType=this.theme.provider.documentType.singular}}
</OsfLink>
<div local-class='example-container'>
<OsfLink
data-test-submission-see-submission-example
data-analytics-name='See Submission Example'
@route='resolve-guid'
@models={{array (if this.theme.provider.example this.theme.provider.example 'khbvy')}}
>
{{t 'preprints.header.example'}}
</OsfLink>
</div>
</div>
{{/if}}
{{/if}}
{{/branded-header.row}}
</BrandedHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</OsfLink>
</li>
{{/if}}
{{#if this.theme.provider.allowSubmissions}}
{{#if (or (eq this.theme.id 'osf') this.theme.provider.allowSubmissions)}}
<li data-test-nav-submit-preprint-link>
<OsfLink
data-test-add-a-preprint-osf-navbar
Expand Down