Sha256: 20a1dca9f48610494483fe0664e4715a3ba38f47750c11cae95e7793eceaba43

Contents?: true

Size: 635 Bytes

Versions: 23

Compression:

Stored size: 635 Bytes

Contents

<% if @crud_helper.scopes.present? %>
	<% @crud_helper.scopes.each do |escopo| %>
		<%= link_to "/crud/#{@model.name.underscore}?scope=#{escopo[0]}", id: "#{escopo[0]}", data: {push: true, crumb: 'wielka'} do%>
			<div style="float: left; margin-left: 10px; min-width: 100px;">
				<div class="widget style1 gray-bg">
					<div class="row vertical-align text-center">
						<h3 class="font-bold">
							<%= escopo[1] %>
							<span class="label label-success pull-right" style="margin-left: 10px;">
								<%= @model.send(escopo[0]).count %>
							</span>
						</h3>
					</div>
				</div>
			</div>
		<%end%>
	<% end %>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
templus_models-1.3.7 app/views/crud/_scopes.html.erb
templus_models-1.3.6 app/views/crud/_scopes.html.erb
templus_models-1.3.4 app/views/crud/_scopes.html.erb
templus_models-1.3.3 app/views/crud/_scopes.html.erb
templus_models-1.3.2 app/views/crud/_scopes.html.erb
templus_models-1.3.1 app/views/crud/_scopes.html.erb
templus_models-1.3.0 app/views/crud/_scopes.html.erb
templus_models-1.2.8 app/views/crud/_scopes.html.erb
templus_models-1.2.7 app/views/crud/_scopes.html.erb
templus_models-1.2.6 app/views/crud/_scopes.html.erb
templus_models-1.2.5 app/views/crud/_scopes.html.erb
templus_models-1.2.4 app/views/crud/_scopes.html.erb
templus_models-1.2.3 app/views/crud/_scopes.html.erb
templus_models-1.2.2 app/views/crud/_scopes.html.erb
templus_models-1.2.1 app/views/crud/_scopes.html.erb
templus_models-1.2.0 app/views/crud/_scopes.html.erb
templus_models-1.0.6 app/views/crud/_scopes.html.erb
templus_models-1.0.5 app/views/crud/_scopes.html.erb
templus_models-1.0.4 app/views/crud/_scopes.html.erb
templus_models-1.0.3 app/views/crud/_scopes.html.erb