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

Version Path
playbook_ui-6.5.2 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha12 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha11 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha10 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha9 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-6.5.1 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-6.5.0 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha8 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha7 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha6 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha5 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha4 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha3 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha2 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-6.4.2 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.1.pre.alpha1 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.0.pre.alpha9 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.0.pre.alpha8 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-7.0.0.pre.alpha7 app/pb_kits/playbook/pb_time/_time.html.erb
playbook_ui-6.4.1 app/pb_kits/playbook/pb_time/_time.html.erb