app/views/crud/_scopes.html.erb in templus_models-1.6.4 vs app/views/crud/_scopes.html.erb in templus_models-1.6.5

- old
+ new

@@ -1,8 +1,9 @@ <% if @crud_helper.scopes.present? %> <% if @crud_helper.scopes.class == Array %> <% @crud_helper.scopes.each do |escopo| %> - <%= link_to crud_models_path(model: @model.name.underscore, scope: escopo[0]), id: "#{escopo[0]}", data: {push: true, crumb: 'wielka'} do%> + <% url = params[:associacao].present? ? crud_associacao_models_path(model: params[:model], id: params[:id], associacao: params[:associacao], scope: escopo[0]) : crud_models_path(model: @model.name.underscore, scope: escopo[0])%> + <%= link_to url, id: "#{escopo[0]}", data: {push: true, crumb: 'wielka'} do%> <div style="float: left; margin-left: 10px; min-width: 100px; position:relative;"> <div class="widget style1 gray-bg" style="padding:15px 0px!important;"> <div class="row vertical-align text-center" style="margin:0!important;"> <h3 class="font-bold" style="width:100%;"> <%= escopo[1] %>