diff --git a/app/models/video_image.rb b/app/models/video_image.rb index 9857260..3889f9e 100644 --- a/app/models/video_image.rb +++ b/app/models/video_image.rb @@ -202,6 +202,10 @@ class VideoImage I18n.t("announcement.status.hidden") end + def get_other_member_profiles_names_for_frontend + MemberProfile.find(self.other_member_profiles).map{|m,n| {"name" => m.name}} rescue [] + end + def get_snapshot_url # self.video_snapshot.url rescue "" self.is_youtube ? self.file.url : (self.video_snapshot.url) diff --git a/app/views/video_pros/show.html.erb b/app/views/video_pros/show.html.erb index 101a300..62a4349 100644 --- a/app/views/video_pros/show.html.erb +++ b/app/views/video_pros/show.html.erb @@ -66,6 +66,13 @@ <%= view_count_trans %>x <%= view_count %> +
+ <% video_image.get_other_member_profiles_names_for_frontend.each do |profile| %> +
+ <%= profile["name"] %> +
+ <% end %> +