Sha256: c5d2358e6f5907e457309aa08cb17ed6f978809565df2b7a1faa271e063bb096

Contents?: true

Size: 1.43 KB

Versions: 14

Compression:

Stored size: 1.43 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,
          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,
            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

14 entries across 14 versions & 1 rubygems

Version Path
playbook_ui-10.4.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.3.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.2.1.alpha.sisensefix app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.2.1 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.2.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.1.0 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.3.pre.alpha.walkthrough2 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.1 app/pb_kits/playbook/pb_message/message.html.erb
playbook_ui-10.0.0 app/pb_kits/playbook/pb_message/message.html.erb