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

Version Path
carnival-0.3.2 app/views/carnival/shared/_scope.html.haml
carnival-0.3.1 app/views/carnival/shared/_scope.html.haml
carnival-0.3.0 app/views/carnival/shared/_scope.html.haml
carnival-0.2.8 app/views/carnival/shared/_scope.html.haml
carnival-0.2.7 app/views/carnival/shared/_scope.html.haml
carnival-0.2.6 app/views/carnival/shared/_scope.html.haml
carnival-0.2.5 app/views/carnival/shared/_scope.html.haml
carnival-0.2.4 app/views/carnival/shared/_scope.html.haml
carnival-0.2.3 app/views/carnival/shared/_scope.html.haml
carnival-0.1.10 app/views/carnival/shared/_scope.html.haml
carnival-0.2.2 app/views/carnival/shared/_scope.html.haml
carnival-0.2.1 app/views/carnival/shared/_scope.html.haml
carnival-0.2.0 app/views/carnival/shared/_scope.html.haml
carnival-0.1.9 app/views/carnival/shared/_scope.html.haml
carnival-0.1.8 app/views/carnival/shared/_scope.html.haml
carnival-0.1.7 app/views/carnival/shared/_scope.html.haml
carnival-0.1.6 app/views/carnival/shared/_scope.html.haml
carnival-0.1.5 app/views/carnival/shared/_scope.html.haml
carnival-0.1.3 app/views/carnival/shared/_scope.html.haml
carnival-0.1.2 app/views/carnival/shared/_scope.html.haml