Skip to content

Commit

Permalink
Show community video and attributes (exercism#6907)
Browse files Browse the repository at this point in the history
  • Loading branch information
dem4ron authored May 10, 2024
1 parent 4187576 commit 7791c78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/views/admin/community_videos/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@
- if author.present?
.text-h6.mb-8 Author: #{author.name} | @#{author.handle} | ##{author.id}

%p Aron - put the other things on this model here…
= video_embed(@community_video.platform, @community_video.watch_id)
.text-h4.mb-8.mt-16 COMMUNITY VIDEO Attributes:
- if @community_video
- @community_video.attributes.each do |key, value|
.text-h6.mb-8 #{key}: #{value}
- else
%li.text-sm.text-red-500 COMMUNITY VIDEO is nil

.flex
.flex.mt-16
= link_to "Edit this community video", edit_admin_community_video_path(@community_video), class: 'btn btn-standard btn-base'
|
= link_to "Back to community videos", admin_community_videos_path, class: 'btn btn-standard btn-base'
Expand Down

0 comments on commit 7791c78

Please sign in to comment.