Sha256: bc7081c2d5cf3a686111ec5fbbeff32832735ce9b084beaa9a2620d4a1e03619

Contents?: true

Size: 1.53 KB

Versions: 553

Compression:

Stored size: 1.53 KB

Contents

<%= content_tag(:div,
    aria: object.aria,
    id: object.id,
    data: object.data,
    class: object.classname,
    **combined_html_options) 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

553 entries across 553 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_message/message.html.erb