views/mdc/components/table.erb in voom-presenters-0.1.13 vs views/mdc/components/table.erb in voom-presenters-0.2.0

- old
+ new

@@ -1,6 +1,6 @@ -<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp<%= ' mdl-data-table--selectable' if comp.selectable %>"> +<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp"> <% if comp.header %> <thead> <%= erb :"components/table/header", :locals => {:row=> comp.header} %> </thead> <% end %> @@ -8,6 +8,8 @@ <% comp.rows.each do |row| %> <%= erb :"components/table/row", :locals => {:row=> row} %> <% end %> </tbody> </table> -<%# WIP = erb :"components/table/pagination", :locals => {} %> +<% if comp.pagination %> + <%= erb :"components/table/pagination", :locals => {:comp=> comp.pagination} %> +<% end %>