Sha256: 12b27f50c9d84850805ad0c26ed4d888855c3927cb7401b118d35139eacd9a4c
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
.releaf_table.no_border.selectable{"data-continuous" => @continuous_scroll ? "1" : "0", "data-items_per_page" => @resources_per_page, "data-loading" => t("loading"), "data-total" => resources.count} .thead %div - valid_order_by_fields = resource_class.column_names - fields_to_display.each do |name| - label = name.sub(/_(id|uid|html)$/, '').to_s.humanize %div - if valid_order_by_fields.include? name - if params[:order_by].blank? || params[:order_by].sub(/-reverse$/, '') != name = link_to label, url_for(:order_by => name) - else - if params[:order_by] == name = link_to label + ' ↑', url_for(:order_by => name + '-reverse') - else = link_to label + ' ↓', url_for(:order_by => name) - else = label .tbody - resources.each do |resource| = render 'index.row', :resource => resource
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
releaf-0.1.2 | app/views/releaf/base/_index.table.html.haml |