Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added YouTube video ID to talks and embedded videos for past talks #281

Merged

Conversation

opiation
Copy link
Contributor

@opiation opiation commented Feb 9, 2018

The pull request introduces embedded YouTube videos for past talks as proposed in #277.

This feature does the following:

  • Adds a youtube_id string column to the Talk model
  • Adds the youtube_id field to the talk dashboard
  • Adds the "YouTube ID" label to the I18n config/locales/en.yml
  • Adds an embedded <iframe> video if the talk is both in the past and has a non-nil youtube_id

@coveralls
Copy link

coveralls commented Feb 9, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling c6edb93 on opiation:features/youtube_videos_for_past_talks into 7aaf07a on montrealrb:master.

@opiation
Copy link
Contributor Author

Should I presume from the above coverage decrease alert that that PR will not be accepted on those grounds?

@sophiedeziel
Copy link
Member

Yep. I can do the review in parallel, but coverage requirement has to be met.

@opiation
Copy link
Contributor Author

No problem. I'll add some coverage tonight.

@@ -9,6 +9,11 @@

<h4><%= render_markdown_as_html "#{talk.title.titleize}, by #{talk.member.name}" %></h4>

<% if talk.event&.starts_at&.past? && talk.youtube_id.present? %>
<iframe src="https://www.youtube.com/embed/<%= talk.youtube_id %>?rel=0&autoplay=0" frameborder="0" allowfullscreen width="640" height="360"></iframe>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull-request is pretty simple and very good. The only suggestion I would make is create a helper for the youtube tag

@sophiedeziel
Copy link
Member

I'm merging, even with my suggestion. I understand that you might not have the time to make that change and this is adding a lot of value to the project as is. Thank you for opening that pull-request!

@sophiedeziel sophiedeziel merged commit e58f053 into montrealrb:master Mar 6, 2018
shalstein pushed a commit to shalstein/Montreal.rb that referenced this pull request Jun 24, 2018
shalstein pushed a commit to shalstein/Montreal.rb that referenced this pull request Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants