Skip to content

Commit bcec6b5

Browse files
committed
Add registerNow link to cards and remove watchNow
1 parent 0b0ff26 commit bcec6b5

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

Angular/src/app/speaker/speaker.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ <h2>{{session.title}}</h2>
1111
<div class="session-registration">
1212
<p>Sept 26 <a [routerLink]="['/now-showing', toSeconds(session.startsAt) ]">{{session.startsAt | date : 'shortTime'}}</a> EDT, <a [routerLink]="['/tracks', room.id]"
1313
routerLinkActive="active">{{room.name}}</a></p>
14+
<a href="{{registrationUrl}}"
15+
class="btn btn-small btn-primary" *ngIf="!watchNowUrl">Register Now, it's Free!</a>
1416
<a href="{{watchNowUrl}}" target="_blank"
15-
class="btn btn-small btn-primary">Watch Now</a>
17+
class="btn btn-small btn-primary" *ngIf="watchNowUrl">Watch Now</a>
1618
</div>
1719
</div>
1820
<div class="col-md-4 speaker-area">

Angular/src/app/speaker/speaker.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class SpeakerComponentComponent implements OnInit {
2121
public session: Session;
2222
public room: Room;
2323
public watchNowUrl: string;
24+
public registrationUrl: string = 'https://www.eventbrite.com/e/northern-va-codecamp-fall-2021-tickets-175887713887';
2425

2526
constructor(
2627
private route: ActivatedRoute,

Angular/src/app/watch-now.service.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ import { Room } from './sessionize-service.service';
66
})
77
export class WatchNowService {
88
getUrlForRoom(room: Room): string {
9-
if (room.id === 15355) {
10-
return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_NTdmMDllYjgtYWMzZi00MWQ5LThjNGYtNmYwOGE1MWVjZjI2%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
11-
}
12-
if (room.id === 15356) {
13-
return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjgzZjE2MmYtZjZiNC00YTM3LWEyMWQtOThmOGNjMDEwMzg5%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
14-
}
15-
if (room.id === 15357) {
16-
return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZGJlZDU3ZWItYmFiYi00ZmY4LTlmNWMtNjM5ZWJlYmI1OGM5%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
17-
}
18-
if (room.id === 15358) {
19-
return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_M2E4M2E2MmQtZTE5Ny00MDJhLTk5YjEtOGFmNTFiZjMxZjMy%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
20-
}
9+
// if (room.id === 15355) {
10+
// return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_NTdmMDllYjgtYWMzZi00MWQ5LThjNGYtNmYwOGE1MWVjZjI2%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
11+
// }
12+
// if (room.id === 15356) {
13+
// return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjgzZjE2MmYtZjZiNC00YTM3LWEyMWQtOThmOGNjMDEwMzg5%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
14+
// }
15+
// if (room.id === 15357) {
16+
// return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZGJlZDU3ZWItYmFiYi00ZmY4LTlmNWMtNjM5ZWJlYmI1OGM5%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
17+
// }
18+
// if (room.id === 15358) {
19+
// return 'https://teams.microsoft.com/l/meetup-join/19%3ameeting_M2E4M2E2MmQtZTE5Ny00MDJhLTk5YjEtOGFmNTFiZjMxZjMy%40thread.v2/0?context=%7b%22Tid%22%3a%22522429d4-f37f-4713-a7d9-58d6450b01b6%22%2c%22Oid%22%3a%22b821e4e9-0c4f-45bd-962a-71dac376dd03%22%2c%22IsBroadcastMeeting%22%3atrue%7d';
20+
// }
2121
return null;
2222
}
2323

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
})();
2626
</script>
2727
<app-root></app-root>
28-
<script src="runtime.acf0dec4155e77772545.js" defer></script><script src="polyfills.35a5ca1855eb057f016a.js" defer></script><script src="main.65a92e90a189d362c388.js" defer></script></body>
28+
<script src="runtime.acf0dec4155e77772545.js" defer></script><script src="polyfills.35a5ca1855eb057f016a.js" defer></script><script src="main.77d2a9ac44ad3f926ca2.js" defer></script></body>
2929
</html>

app/main.3e5f8910045ad5ae5fa2.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)