Skip to content

Commit

Permalink
+ link to add to calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Nov 14, 2023
1 parent 20abcdb commit 92cdae2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meetup/page/page.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ $piterjs_meetup_page $mol_page
joined_count => joined_count
joined? => joined?
editable => editable
address \
Title $mol_string_button
value? <=> title?
enabled <= editing
hint \Номер
tools /
<= Subscribe $mol_link_calendar
title <= subscribe_title \
details <= subscribe_details \
location <= address
interval <= interval $mol_time_interval / *
start <= start
duration <= duration $mol_time_duration / \PT3h
<= Start $mol_date
value_moment? <=> start?
enabled <= editing
Expand Down
10 changes: 10 additions & 0 deletions meetup/page/page.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ namespace $.$$ {

export class $piterjs_meetup_page extends $.$piterjs_meetup_page {

subscribe_title() {
return `PiterJS ${this.title()}`
}

@ $mol_mem
subscribe_details() {
const url = $mol_html_encode( this.$.$mol_state_arg.href() )
return `<a href="${url}">${url}</a>`
}

video() {
return this.meetup().video() ?? ''
}
Expand Down

0 comments on commit 92cdae2

Please sign in to comment.