Skip to content

Commit

Permalink
Set programmes titles as links to full programme transcriptions for #94
Browse files Browse the repository at this point in the history
  • Loading branch information
carmen-tm committed Feb 28, 2020
1 parent ddf786d commit c0f85f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion web/src/components/ResultContext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default {
},
onGoToFullTranscriptionBtnClick() {
const programme_id = this.currentResult.programme.id
const context_start_time = this.resultContext[0].time_start
const current_start_time = this.currentResult.time_start
const URL = `/programmes/${programme_id}#${current_start_time}`
window.open(URL, '_blank')
Expand Down
9 changes: 7 additions & 2 deletions web/src/components/Results.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
<path fill="none" d="M0 0h24v24H0z" />
</svg>
<!-- Add link to programme -->
<!-- <div class="programme-title"> -->
<strong @click="onGoToProgrammeClick(items)">{{ formatDate(items[0].programme.date) }}</strong>
| TD {{ items[0].programme.date.substring(11, 13) }}h
<!-- </div> -->
</div>
<div v-for="item in items" :key="item.id" class="card-body">
<span class="badge badge-secondary">
Expand Down Expand Up @@ -196,9 +198,10 @@ export default {
onGoToProgrammeClick(items) {
console.log(items)
const programme_id = items[0].programme.id
const context_start_time = items[0].time_start
const current_start_time = items[0].time_start
const URL = `/programmes/${programme_id}#${current_start_time}`

const URL = `/programmes/${programme_id}#${context_start_time}`
window.open(URL, '_blank')
}
}
}
Expand Down Expand Up @@ -265,6 +268,8 @@ export default {
padding-bottom: 0.5rem;
margin-bottom: 1rem;

cursor: pointer;
text-decoration: underline;
strong {
color: $color-neutral-1000;
font-weight: 600;
Expand Down

0 comments on commit c0f85f1

Please sign in to comment.