Skip to content

Commit

Permalink
Make picasso schedule entries clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
carlobeltrame committed Aug 15, 2023
1 parent ff946b8 commit 3d4c73e
Show file tree
Hide file tree
Showing 3 changed files with 710 additions and 236 deletions.
15 changes: 12 additions & 3 deletions pdf/src/campPrint/picasso/ScheduleEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
:style="{ backgroundColor: color, color: textColor }"
>
<View class="picasso-schedule-entry-spacer" />
<Text class="picasso-schedule-entry-title">
{{ category }} {{ scheduleEntry.number }} {{ title }}
</Text>
<Link class="picasso-schedule-entry-link" :href="linkTarget">
<Text class="picasso-schedule-entry-title">
{{ category }} {{ scheduleEntry.number }} {{ title }}
</Text>
</Link>
<View class="picasso-schedule-entry-spacer" />
<View class="picasso-schedule-entry-responsibles-container">
<View class="picasso-schedule-entry-spacer" />
Expand Down Expand Up @@ -44,10 +46,17 @@ export default {
title() {
return this.scheduleEntry.activity().title
},
linkTarget() {
return `#scheduleEntry_${this.scheduleEntry.id}`
},
},
}
</script>
<pdf-style>
.picasso-schedule-entry-link {
text-decoration: none;
color: black;
}
.picasso-schedule-entry {
position: absolute;
padding: 0 4pt;
Expand Down
2 changes: 1 addition & 1 deletion pdf/src/campPrint/scheduleEntry/ScheduleEntry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class="schedule-entry-header-title"
:style="{ borderBottomColor: activity.category().color }"
>
<View class="schedule-entry-title">
<View :id="`scheduleEntry_${scheduleEntry.id}`" class="schedule-entry-title">
<CategoryLabel
:category="activity.category()"
class="schedule-entry-category-label"
Expand Down
Loading

0 comments on commit 3d4c73e

Please sign in to comment.