Skip to content

Commit

Permalink
cleanup live session page
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 19, 2023
1 parent 7b0036d commit 2c5bae8
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions app/views/rooms/live_session.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,3 @@
%iframe{ src: @room.embed_url, with: '67%', style: 'flex-grow: 1' }
- if @room.discussion_url.present?
%iframe{ src: @room.discussion_url, width: '33%' }

- if @room.discussion_url.present?
#discourse-comments
%meta{name: 'discourse-username', content: 'DISCOURSE_USERNAME'}
:javascript
DiscourseEmbed = {
discourseUrl: 'https://forum.snap.berkeley.edu/',
discourseEmbedUrl: "#{@room.discussion_url}",
// className: 'CLASS_NAME',
};

(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();

0 comments on commit 2c5bae8

Please sign in to comment.