houdini/app/views/components/_show_more.html.erb
2020-06-15 10:26:57 -05:00

36 lines
1.1 KiB
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<!-- partial start components/show_more -->
<footer class='moreResults group'>
<button class='button--micro details'>
<!--= show_if (any <%=scope%>.remaining <%=scope%>.remaining_count)-->
<!--= set_attr_if <%=scope%>.loading 'disabled' '' -->
<!--= on 'click' (incr '<%=scope%>.query.page') <%=scope%>.index -->
<span>
<!--= show_if <%=scope%>.loading -->
<i class='fa fa-spin fa-spinner'></i> Loading...
</span>
<span> <!--= hide_if <%=scope%>.loading --> Show More </span>
</button>
<small class='moreResults-showingCount'>
<!--= hide_if is_showing_side_panel -->
Showing <!--= put (length <%=scope%>.data) --> out of <!--= put (<%=scope%>.total_count)-->
</small>
<small class='moreResults-showingCount' >
<!--= show_if is_showing_side_panel -->
<span>
<!--= hide_if <%=scope%>.remaining -->
Showing
</span>
<!--= put (length <%=scope%>.data) -->/<!--= put (<%=scope%>.total_count)-->
</small>
</footer>
<!-- partial end components/show_more -->