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.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2023 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.PBNTR177NewAdvancedTableKit2010 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.PLAY11642006 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary1995 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.play1141iconkitusinglibrary1993 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.PLAY11641992 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.PLAY11641991 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0.pre.alpha.fonttest1972 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.play1141iconkitusinglibrary1956 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.16.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.play10841940 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.1132globalpropdatepickerspacing1929 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.PLAY10851907 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.PLAY11311893 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.reactselectbump581876 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0.pre.alpha.PLAY10831873 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.14.0.pre.alpha.play1101betaicons1825 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.14.0.pre.alpha.play1101betaicons1798 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.14.0.pre.alpha.play1120lintdatepicker1797 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-13.15.0 app/pb_kits/playbook/pb_message/message.html.erb