Sha256: 1a22da2810195a1ba64e1a81c4cff09635d5a4e397ebc2b4a4098e495e32db1f
Contents?: true
Size: 1.38 KB
Versions: 125
Compression:
Stored size: 1.38 KB
Contents
<%= content_tag(:div, id: object.id, data: object.data, class: object.classname) do %> <% if object.size == "lg" %> <%= pb_rails("title", props: { tag: "span", text: object.format_time_string, size: 3 }) %> <%= content_tag(:span) do %> <%= content_tag(:span, class: "pb_time_timezone") do %> <%= object.pb_date_time.to_timezone.upcase %> <% end %> <% end %> <% elsif object.size == "sm" %> <%= pb_rails("body", props: { tag: "span", text: object.format_time_string }) do %> <%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %> <%= content_tag(:time, datetime: object.pb_date_time.to_iso) do %> <%= content_tag(:span) do %> <%= object.format_time_string %> <%= content_tag(:span, class: "pb_time_timezone") do %> <%= object.pb_date_time.to_timezone.upcase %> <% end %> <% end %> <% end %> <% end %> <% else %> <%= pb_rails("body", props: { tag: "span", text: object.format_time_string }) do %> <%= content_tag(:time, datetime: object.pb_date_time.to_iso) do %> <%= content_tag(:span) do %> <%= object.format_time_string %> <%= content_tag(:span, class: "pb_time_timezone") do %> <%= object.pb_date_time.to_timezone.upcase %> <% end %> <% end %> <% end %> <% end %> <% end %> <% end %>
Version data entries
125 entries across 125 versions & 1 rubygems