Sha256: 6d04f4ba277d3d9941e96ffd844f6bbac43585ffeb7e426b8c0969a13012dad7
Contents?: true
Size: 1.17 KB
Versions: 42
Compression:
Stored size: 1.17 KB
Contents
<%= content_tag(:div, id: object.id, data: object.data, class: object.classname) do %> <%# Rating value %> <%= content_tag(:div, object.rating, class: "pb_star_rating_number") %> <%= content_tag(:div, class: "pb_star_rating_wrapper") do %> <%# Gold stars generated by rating value %> <%= content_tag(:div, class: "pb_star_rating_highlight") do %> <% object.star_count.each do %> <%= pb_rails("icon", props: { icon: "star", fixed_width: true }) %> <% end %> <% unless object.star_full %> <%= pb_rails("icon", props: { icon: "star-half", fixed_width: true }) %> <% end %> <% end %> <%# Grey background stars as base %> <%= content_tag(:div, class: "pb_star_rating_base") do %> <%= pb_rails("icon", props: { icon: "star", fixed_width: true }) %> <%= pb_rails("icon", props: { icon: "star", fixed_width: true }) %> <%= pb_rails("icon", props: { icon: "star", fixed_width: true }) %> <%= pb_rails("icon", props: { icon: "star", fixed_width: true }) %> <%= pb_rails("icon", props: { icon: "star", fixed_width: true }) %> <% end %> <% end %> <% end %>
Version data entries
42 entries across 42 versions & 1 rubygems