Sha256: 4e47cc600c5e304e80d1a3c1b584b120e1429815731dc96eae473de0187194b0

Contents?: true

Size: 908 Bytes

Versions: 3

Compression:

Stored size: 908 Bytes

Contents

<def tag="card" polymorphic>
  <div class="card" param="default" merge-attrs>
    <header param if-content/>
    <div param="body" if="&all_parameters[:body]"/>
  </div>
</def>


<def tag="search-card" polymorphic>
  <card/>
</def>


<def tag="empty-collection-message">
  <p class="empty-collection-message" style="#{'display:none' if !this.empty?}" param="default">
    No <collection-name lowercase/> to display
  </p>
</def>


<def tag="collection">
  <ul class="collection #{collection_name :dasherize => true}" merge-attrs unless="empty?">
    <li param="item" class="#{scope.even_odd} #{model_id_class}" repeat="&select_viewable">
      <do param="default"><card param/></do>
    </li>
  </ul>
  <empty-collection-message param="empty-message"/>
</def>


<def tag="field-names-where-true" attrs="fields"><%=
  comma_split(fields).select { |f| this.send(f) }.map { |f| f.titleize }.join(', ')
%></def>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hobo-0.8.1 taglibs/rapid_generics.dryml
hobo-0.8.2 taglibs/rapid_generics.dryml
hobo-0.8 taglibs/rapid_generics.dryml