Sha256: 2fd096cbcba7d7e8684028f4556dc196ac65c85ebfde2584a42bd349c94dd7d8

Contents?: true

Size: 1.26 KB

Versions: 6

Compression:

Stored size: 1.26 KB

Contents

<% if line.menu %>
  <div class="mdc-menu-anchor">
<% end %>
<li class="mdc-list-item
          <%= 'mdc-list-item--selected' if line.selected %>
          <%= 'v-menu-click' if line.menu && line.actions.empty?%>
          <%= 'v-list-item--selectable' if line.selectable %>"
    id="<%= line.id %>">
  <%= erb :"components/list/checkbox", :locals => {:line => line} %>
  <%= erb :"components/list/icon", :locals => {:line => line} %>
  <%= erb :"components/list/avatar", :locals => {:line => line} %>
  <span class="mdc-list-item__text
               <%= 'v-actionable' if line.events %>
               <%= 'v-menu-click' if line.menu && line.actions.any? %>"
        <%= erb :"components/event", :locals => {events: line.events, parent_id: line.event_parent_id} %>>
    <%= expand_text(line.text&.text) %>

    <% if line.subtitle %>
      <span class="mdc-list-item__secondary-text">
        <%= expand_text(line.subtitle.text) %>
      </span>
    <% end %>

    <% if line.body %>
      <span class="mdc-list-item__secondary-text">
        <%= expand_text(line.body.text) %>
      </span>
    <% end %>
  </span>
  <%= erb :"components/list/actions", :locals => {:line => line} %>
</li>
<% if line.menu %>
  <%= erb :"components/list/menu", :locals => {:comp => line.menu} %>
</div>
<%end%>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 views/mdc/components/list/line.erb
voom-presenters-0.1.12 views/mdc/components/list/line.erb
voom-presenters-0.1.11 views/mdc/components/list/line.erb
voom-presenters-0.1.10 views/mdc/components/list/line.erb
voom-presenters-0.1.9 views/mdc/components/list/line.erb
voom-presenters-0.1.8 views/mdc/components/list/line.erb