support multiple tag
This commit is contained in:
parent
b0b7e3f302
commit
1828059918
|
@ -232,7 +232,7 @@ class VideoProsController < ApplicationController
|
||||||
video_postdate = video_image.postdate.to_s
|
video_postdate = video_image.postdate.to_s
|
||||||
video_category = video_image.category_title
|
video_category = video_image.category_title
|
||||||
video_tags = video_image.tags
|
video_tags = video_image.tags
|
||||||
video_tag = (video_tags.count > 0 ? video_tags.first.name : video_category)
|
video_tags = (video_tags.count > 0 ? video_tags.collect{|tag| {video_tag: tag.name}} : [{video_tag: video_category}])
|
||||||
statuses = video_image.statuses_with_classname
|
statuses = video_image.statuses_with_classname
|
||||||
video_desc = video_image.desc
|
video_desc = video_image.desc
|
||||||
video_desc_escape = video_desc.gsub('"',""") rescue ""
|
video_desc_escape = video_desc.gsub('"',""") rescue ""
|
||||||
|
@ -255,7 +255,7 @@ class VideoProsController < ApplicationController
|
||||||
"api_url" => api_url,
|
"api_url" => api_url,
|
||||||
"video_show_url" => show_url + slug,
|
"video_show_url" => show_url + slug,
|
||||||
"video_category" => video_category,
|
"video_category" => video_category,
|
||||||
"video_tag" => video_tag,
|
"video_tags" => video_tags,
|
||||||
"statuses" => statuses,
|
"statuses" => statuses,
|
||||||
"video_post_agency" => video_post_agency,
|
"video_post_agency" => video_post_agency,
|
||||||
"video_postdate" => video_postdate,
|
"video_postdate" => video_postdate,
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
video_scale = (video_image.scale ? video_image.scale : 56.25)
|
video_scale = (video_image.scale ? video_image.scale : 56.25)
|
||||||
video_category = video_image.category_title
|
video_category = video_image.category_title
|
||||||
video_tags = video_image.tags
|
video_tags = video_image.tags
|
||||||
video_tag = (video_tags.count > 0 ? video_tags.first.name : video_category)
|
video_tags = (video_tags.count > 0 ? video_tags.collect{|tag| tag.name} : [video_category])
|
||||||
%>
|
%>
|
||||||
<div class="video_detail">
|
<div class="video_detail">
|
||||||
<h3><%= video_title %></h3>
|
<h3><%= video_title %></h3>
|
||||||
|
@ -42,7 +42,9 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="imglst_desc">
|
<div class="imglst_desc">
|
||||||
<div class="video_group_time"><%= video_post_agency %> | <%= video_postdate %></div>
|
<div class="video_group_time"><%= video_post_agency %> | <%= video_postdate %></div>
|
||||||
|
<% video_tags.each do |video_tag| %>
|
||||||
<div class="video_tag"><%= video_tag %></div>
|
<div class="video_tag"><%= video_tag %></div>
|
||||||
|
<% end %>
|
||||||
<div class="movie_desc"><%= video_desc %></div>
|
<div class="movie_desc"><%= video_desc %></div>
|
||||||
<div class="view_info">
|
<div class="view_info">
|
||||||
<span><img src="<%= hd_icon_url %>" alt="HD"></span>
|
<span><img src="<%= hd_icon_url %>" alt="HD"></span>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<img class="video_snapshot" src="{{snapshot_url}}"/>
|
<img class="video_snapshot" src="{{snapshot_url}}"/>
|
||||||
<div class="video_info">
|
<div class="video_info">
|
||||||
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
|
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
|
||||||
<div class="video_tag">{{video_tag}}</div>
|
<div data-list="video_tags" data-level="1" class="video_tag">{{video_tag}}</div>
|
||||||
<div class="video_title"><h4>{{video_title}}</h4></div>
|
<div class="video_title"><h4>{{video_title}}</h4></div>
|
||||||
<div class="video_desc">{{video_desc}}</div>
|
<div class="video_desc">{{video_desc}}</div>
|
||||||
<div class="view_info">
|
<div class="view_info">
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<img class="video_snapshot" src="{{snapshot_url}}"/>
|
<img class="video_snapshot" src="{{snapshot_url}}"/>
|
||||||
<div class="video_info">
|
<div class="video_info">
|
||||||
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
|
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
|
||||||
<div class="video_tag">{{video_tag}}</div>
|
<div data-list="video_tags" data-level="1" class="video_tag">{{video_tag}}</div>
|
||||||
<div class="video_title"><h4>{{video_title}}</h4></div>
|
<div class="video_title"><h4>{{video_title}}</h4></div>
|
||||||
<div class="video_desc">{{video_desc}}</div>
|
<div class="video_desc">{{video_desc}}</div>
|
||||||
<div class="view_info">
|
<div class="view_info">
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<img class="video_snapshot" src="{{snapshot_url}}"/>
|
<img class="video_snapshot" src="{{snapshot_url}}"/>
|
||||||
<div class="video_info">
|
<div class="video_info">
|
||||||
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
|
<div class="video_group_time">{{video_post_agency}} | {{video_postdate}}</div>
|
||||||
<div class="video_tag">{{video_tag}}</div>
|
<div data-list="video_tags" data-level="1" class="video_tag">{{video_tag}}</div>
|
||||||
<div class="video_title"><h4>{{video_title}}</h4></div>
|
<div class="video_title"><h4>{{video_title}}</h4></div>
|
||||||
<div class="video_desc">{{video_desc}}</div>
|
<div class="video_desc">{{video_desc}}</div>
|
||||||
<div class="view_info">
|
<div class="view_info">
|
||||||
|
|
Loading…
Reference in New Issue