Sha256: 5dfd73f5500421cf0cd7721bbee7a920b86b72253a3766dd44fe855b55e8a3ba

Contents?: true

Size: 1.5 KB

Versions: 532

Compression:

Stored size: 1.5 KB

Contents

<%= content_tag(:div,
    aria: object.aria,
    id: object.id,
    data: object.data,
    class: object.classname) do %>
    <% if object.valid? %>
      <%= pb_rails("avatar", props: {
        name: object.avatar_name,
        size: "xs",
        image_url: object.avatar_url,
        status: object.avatar_status
      }) %>
    <% end %>
    <div class="content_wrapper">
      <%= pb_rails("flex", props: { orientation: "row", justify: object.align_timestamp == "left" ? "none" : "between" }) do %>
        <% if object.label.present? %>
          <%= pb_rails("title", props: {
            size: 4,
            text: object.label,
            classname: "message_title"
          }) %>
        <% end %>

        <%= pb_rails("timestamp", props: {
          text: object.timestamp,
          timezone: object.timezone,
          classname: "pull-#{object.align_timestamp} #{object.timestamp_object.present? ? 'message_humanized_time' : nil}"
        }) %>
        <% if object.timestamp_object.present? %>
          <%= pb_rails("timestamp", props: {
            timestamp: object.timestamp_object,
            timezone: object.timezone,
            classname: "pull-#{object.align_timestamp} message_timestamp"
          }) %>
        <% end %>
      <% end %>
      <% if content.present? %>
        <%= content %>
      <% end %>
      <% if object.message.present? %>
        <%= pb_rails("body", props: {
          text: object.message,
          classname: "pb_message_body"
        }) %>
      <% end %>
    </div>
<% end %>

Version data entries

532 entries across 532 versions & 1 rubygems

Version Path
playbook_ui-13.14.0.pre.alpha.PLAY1109bugdisplaypropblocksfontcolor1784 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.14.0.pre.alpha.play1106filter1751 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.14.0.pre.alpha.play1106filter1748 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.14.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0.pre.alpha.PLAY1097linterenhancedelement1728 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0.pre.alpha.play10821727 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0.pre.alpha.play10821726 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0.pre.alpha.play10221678 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0.pre.alpha.PLAY1090csstokens1675 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0.pre.alpha.play900startratingasinput1657 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.13.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY880cardkithighlightzindex1655 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1627 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exportingtypes1626 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1624 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1623 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.play900startratingasinput1612 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1611 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1609 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.12.0.pre.alpha.PLAY1081exporttypes1608 app/pb_kits/playbook/pb_message/message.html.erb