brightcontent-core 2.0.12 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brightcontent-core (2.0.12)
4
+ brightcontent-core (2.0.13)
5
5
  bcrypt-ruby
6
6
  bootstrap-wysihtml5-rails
7
7
  has_scope
@@ -1,9 +1,11 @@
1
+ require 'csv'
1
2
  require_dependency "brightcontent/application_controller"
2
3
 
3
4
  module Brightcontent
4
5
  class BaseController < ApplicationController
5
6
  inherit_resources
6
7
  helper_method :scopes_configuration
8
+ respond_to :all
7
9
 
8
10
  include DefaultActions
9
11
  include Pagination
File without changes
@@ -1,4 +1,9 @@
1
- Show only:
2
- <% scopes_configuration.each do |scope| %>
3
- <%= link_to scope[1][:as].to_s.humanize, link_for_scope(scope[1]) %>
4
- <% end %>
1
+ <ul class="nav nav-pills">
2
+ <li class="disabled"><a href="#">Filter: </a></li>
3
+ <% scopes_configuration.each do |scope| %>
4
+ <li>
5
+ <%= link_to scope[1][:as].to_s.humanize, link_for_scope(scope[1]) %>
6
+ </li>
7
+ <% end %>
8
+ </ul>
9
+
@@ -0,0 +1,6 @@
1
+ <%= CSV.generate do |csv| %>
2
+ <% csv << list_fields %>
3
+ <% collection.each do |item| %>
4
+ <% csv << list_fields.map { |field| item.send(field) } %>
5
+ <% end %>
6
+ <% end %>
@@ -3,9 +3,9 @@
3
3
  <%= link_to "Create new #{resource_instance_name.to_s.humanize}", polymorphic_url(resource_class, action: :new), class: "btn btn-primary btn-right" %>
4
4
  <h1><%= resource_collection_name.to_s.humanize %></h1>
5
5
 
6
- <% if scopes_configuration %>
7
- <%= render "scope_filters" %>
8
- <% end %>
6
+ <%= render "scope_filters" if scopes_configuration %>
7
+ <%= render "index_top" %>
8
+
9
9
  <table class="table table-hover">
10
10
  <thead>
11
11
  <tr>
@@ -0,0 +1,4 @@
1
+ require 'spec_helper'
2
+
3
+ feature "Export" do
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcontent-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.12
4
+ version: 2.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-05 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -252,10 +252,12 @@ files:
252
252
  - app/views/brightcontent/application/_menu.html.erb
253
253
  - app/views/brightcontent/application/_show_flash_names.html.erb
254
254
  - app/views/brightcontent/base/_form.html.erb
255
+ - app/views/brightcontent/base/_index_top.html.erb
255
256
  - app/views/brightcontent/base/_list.html.erb
256
257
  - app/views/brightcontent/base/_list_actions.html.erb
257
258
  - app/views/brightcontent/base/_scope_filters.html.erb
258
259
  - app/views/brightcontent/base/edit.html.erb
260
+ - app/views/brightcontent/base/index.csv.erb
259
261
  - app/views/brightcontent/base/index.html.erb
260
262
  - app/views/brightcontent/base/new.html.erb
261
263
  - app/views/brightcontent/sessions/new.html.erb
@@ -321,6 +323,7 @@ files:
321
323
  - spec/dummy/public/favicon.ico
322
324
  - spec/dummy/script/rails
323
325
  - spec/factories.rb
326
+ - spec/features/export_spec.rb
324
327
  - spec/features/login_spec.rb
325
328
  - spec/features/menu_spec.rb
326
329
  - spec/features/resources_form_spec.rb
@@ -344,7 +347,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
344
347
  version: '0'
345
348
  segments:
346
349
  - 0
347
- hash: -1457750841262786070
350
+ hash: -752739652003694485
348
351
  required_rubygems_version: !ruby/object:Gem::Requirement
349
352
  none: false
350
353
  requirements:
@@ -353,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
356
  version: '0'
354
357
  segments:
355
358
  - 0
356
- hash: -1457750841262786070
359
+ hash: -752739652003694485
357
360
  requirements: []
358
361
  rubyforge_project:
359
362
  rubygems_version: 1.8.24
@@ -403,6 +406,7 @@ test_files:
403
406
  - spec/dummy/public/favicon.ico
404
407
  - spec/dummy/script/rails
405
408
  - spec/factories.rb
409
+ - spec/features/export_spec.rb
406
410
  - spec/features/login_spec.rb
407
411
  - spec/features/menu_spec.rb
408
412
  - spec/features/resources_form_spec.rb