Sha256: 4f0110d5205766f17485c17d8e135484c2607c9849ba5fe001cfb1af899b0a59
Contents?: true
Size: 724 Bytes
Versions: 22
Compression:
Stored size: 724 Bytes
Contents
- scopes = presenter.scopes - if scopes.present? && scopes.size > 0 - params["data-scope"] = presenter.default_scope.name %ul.scopes - scopes.each do |key, scope| - unless scope.hidden?(controller) %li.scope{:class => "#{selected_scope.to_sym == key ? 'selected' : ''}"} %a{:class => "carnival-scope carnival-action-button", :data => {:scope => "#{scope.name}"}} = t("#{presenter.model_name.underscore}.scope.#{scope.name}") %span.count (#{scopes_total[scope.name]}) :javascript $(document).ready(function(){ $(".carnival-scope").click(function(){ var scope = $(this).data("scope") Carnival.setIndexPageParamAndReload('scope', scope); }); });
Version data entries
22 entries across 22 versions & 1 rubygems