Sha256: d1fe416d7582112bdaf6a86dfac6957f93fc6f0c42c64dbdcd72dabdad6085d5
Contents?: true
Size: 1017 Bytes
Versions: 10
Compression:
Stored size: 1017 Bytes
Contents
<%= content_tag(:div, id: object.id, data: object.data, class: object.classname, aria: object.aria) do %> <!-- icon --> <% if object.show_icon %> <%= pb_rails("body", props: { color: "light", tag: "div", }) do %> <%= pb_rails("icon", props: { icon: "calendar-alt", fixed_width: true }) %> <% end %> <% end %> <!-- day_of_week --> <% if object.show_day_of_week %> <%= pb_rails("title", props: { tag: "div", text: object.date_day_of_week, size: 4 }) %> <%= pb_rails("body", props: { text: "•", color: "light", tag: "div", }) %> <% end %> <!-- month day, year --> <%# if not current year %> <% if object.year.to_s == DateTime.now.year.to_s %> <%= pb_rails("title", props: { tag: "div", text: "#{object.month} #{object.day}", size: 4 }) %> <%# if is current year %> <% else %> <%= pb_rails("title", props: { tag: "div", text: "#{object.month} #{object.day}, #{object.year}", size: 4 }) %> <% end %> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems