This commit is contained in:
BoHung Chiu 2023-03-27 09:55:49 +08:00
parent 431e3f9f4c
commit 62b0c62c8e
8 changed files with 18 additions and 11 deletions

View File

@ -231,6 +231,8 @@ class VideoProsController < ApplicationController
video_post_agency = video_image.post_agency(@video_pro_setting)
video_postdate = video_image.postdate.to_s
video_category = video_image.category_title
video_tags = video_image.tags
video_tag = (video_tags.count > 0 ? video_tags.first.name : video_category)
statuses = video_image.statuses_with_classname
video_desc = video_image.desc
video_desc_escape = video_desc.gsub('"',"&quot;") rescue ""
@ -253,6 +255,7 @@ class VideoProsController < ApplicationController
"api_url" => api_url,
"video_show_url" => show_url + slug,
"video_category" => video_category,
"video_tag" => video_tag,
"statuses" => statuses,
"video_post_agency" => video_post_agency,
"video_postdate" => video_postdate,

View File

@ -21,6 +21,9 @@
snapshot_url = video_image.get_snapshot_url
@is_frontend = true
video_scale = (video_image.scale ? video_image.scale : 56.25)
video_category = video_image.category_title
video_tags = video_image.tags
video_tag = (video_tags.count > 0 ? video_tags.first.name : video_category)
%>
<div class="video_detail">
<h3><%= video_title %></h3>
@ -39,6 +42,7 @@
<% end %>
<div class="imglst_desc">
<div class="video_group_time"><%= video_post_agency %> | <%= video_postdate %></div>
<div class="video_tag"><%= video_tag %></div>
<div class="movie_desc"><%= video_desc %></div>
<div class="view_info">
<span><img src="<%= hd_icon_url %>" alt="HD"></span>
@ -65,7 +69,7 @@
.video_group_time{
color: #4487cb;
}
.video_category{
.video_tag{
color: #e4374a;
}
.video_title h4{

View File

@ -5,7 +5,7 @@
<img class="video_snapshot" src="{{snapshot_url}}"/>
<div class="video_info">
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
<div class="video_category">{{video_category}}</div>
<div class="video_tag">{{video_tag}}</div>
<div class="video_title"><h4>{{video_title}}</h4></div>
<div class="video_desc">{{video_desc}}</div>
<div class="view_info">
@ -25,7 +25,7 @@
.video_group_time{
color: #4487cb;
}
.video_category{
.video_tag{
color: #e4374a;
}
.video_title h4{

View File

@ -1,6 +1,6 @@
<div class="w-video_data video_data-widget-2">
<%= javascript_include_tag 'video_pro/wordcloud2.js' %>
<div style="width: 100%; height: 40vw" class="my_favorite_latin_words jqcloud wordcloud2"><div>
<div style="width: 100%; height: 40vw; max-height: 20em;" class="my_favorite_latin_words jqcloud wordcloud2"><div>
<script>
var container_{{subpart-id}} = $('[data-subpart-id="{{subpart-id}}"] .my_favorite_latin_words');
var width_{{subpart-id}} = container_{{subpart-id}}.width();

View File

@ -6,7 +6,7 @@
<img class="video_snapshot" src="{{snapshot_url}}"/>
<div class="video_info">
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
<div class="video_category">{{video_category}}</div>
<div class="video_tag">{{video_tag}}</div>
<div class="video_title"><h4>{{video_title}}</h4></div>
<div class="video_desc">{{video_desc}}</div>
<div class="view_info">
@ -26,7 +26,7 @@
.video_group_time{
color: #4487cb;
}
.video_category{
.video_tag{
color: #e4374a;
}
.video_title h4{

View File

@ -27,7 +27,7 @@
<img class="video_snapshot" src="{{snapshot_url}}"/>
<div class="video_info">
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
<div class="video_category">{{video_category}}</div>
<div class="video_tag">{{video_tag}}</div>
<div class="video_title"><h4>{{video_title}}</h4></div>
<div class="video_desc">{{video_desc}}</div>
<div class="view_info">
@ -119,7 +119,7 @@
.video_group_time {
color: #4487cb;
}
.video_category {
.video_tag {
color: #e4374a;
}
.video_title h4 {

View File

@ -27,7 +27,7 @@
<img class="video_snapshot" src="{{snapshot_url}}"/>
<div class="video_info">
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
<div class="video_category">{{video_category}}</div>
<div class="video_tag">{{video_tag}}</div>
<div class="video_title"><h4>{{video_title}}</h4></div>
<div class="video_desc">{{video_desc}}</div>
<div class="view_info">
@ -119,7 +119,7 @@
.video_group_time {
color: #4487cb;
}
.video_category {
.video_tag {
color: #e4374a;
}
.video_title h4 {

View File

@ -70,7 +70,7 @@
.video_group_time {
color: #4487cb;
}
.video_category {
.video_tag {
color: #e4374a;
}
.video_title h4 {