Skip to content

Commit

Permalink
Merge pull request #75 from nypublicradio/mwalsh/WNYC-45
Browse files Browse the repository at this point in the history
Add transcript links
  • Loading branch information
walsh9 authored Jan 30, 2024
2 parents 1ad74ff + a096f0c commit c66c9ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/templates/components/story-tease.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
</div>
{{/if}}

{{#if item.transcript}}
<a href="{{item.url}}?tab=transcript" class="story-tease__transcript-link">Read Transcript</a>
{{/if}}

{{#if isStaff}}
<a href="{{adminURL}}/{{item.editLink}}" class="story-tease__staff-btn" target="_blank" data-test-selector="admin-link">Edit this</a>
{{/if}}
Expand Down
6 changes: 6 additions & 0 deletions app/styles/nypr-publisher-lib/_story-tease.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,12 @@
@include btn--lightgreen;
}

.story-tease__transcript-link {
font-size: 14px;
border-bottom: 1px solid #f1f1f1;
margin-left: 16px;
}

.story-tease__floating-header {
text-align: left;
position: absolute;
Expand Down

0 comments on commit c66c9ec

Please sign in to comment.