ld4l_virtual_collection 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +34 -0
  3. data/.travis.yml +14 -0
  4. data/CHANGES.md +12 -0
  5. data/Gemfile +5 -0
  6. data/LICENSE.txt +14 -0
  7. data/README.md +128 -0
  8. data/Rakefile +34 -0
  9. data/app/assets/images/ld4l_virtual_collection/loading_spinner.gif +0 -0
  10. data/app/assets/javascripts/ld4l_virtual_collection/application.js +19 -0
  11. data/app/assets/javascripts/ld4l_virtual_collection/collections.js +2 -0
  12. data/app/assets/javascripts/ld4l_virtual_collection/items.js +2 -0
  13. data/app/assets/stylesheets/ld4l_virtual_collection/_bootstrap-custom.scss +50 -0
  14. data/app/assets/stylesheets/ld4l_virtual_collection/application.css.scss +22 -0
  15. data/app/assets/stylesheets/ld4l_virtual_collection/collections.css.scss +4 -0
  16. data/app/assets/stylesheets/ld4l_virtual_collection/items.css.scss +4 -0
  17. data/app/assets/stylesheets/ld4l_virtual_collection/my_virtual_collections.css.scss +4 -0
  18. data/app/assets/stylesheets/scaffold.css +56 -0
  19. data/app/controllers/ld4l_virtual_collection/application_controller.rb +9 -0
  20. data/app/controllers/ld4l_virtual_collection/collections_controller.rb +101 -0
  21. data/app/controllers/ld4l_virtual_collection/items_controller.rb +94 -0
  22. data/app/controllers/ld4l_virtual_collection/my_virtual_collections_controller.rb +189 -0
  23. data/app/controllers/ld4l_virtual_collection/notes_controller.rb +84 -0
  24. data/app/controllers/ld4l_virtual_collection/tags_controller.rb +105 -0
  25. data/app/helpers/ld4l_virtual_collection/application_helper.rb +4 -0
  26. data/app/helpers/ld4l_virtual_collection/collections_helper.rb +4 -0
  27. data/app/helpers/ld4l_virtual_collection/items_helper.rb +4 -0
  28. data/app/models/ld4l_virtual_collection/collection.rb +47 -0
  29. data/app/models/ld4l_virtual_collection/item.rb +50 -0
  30. data/app/models/ld4l_virtual_collection/note.rb +52 -0
  31. data/app/models/ld4l_virtual_collection/tag.rb +94 -0
  32. data/app/views/layouts/ld4l_virtual_collection/application.html.erb +14 -0
  33. data/app/views/ld4l_virtual_collection/collections/_form.html.erb +28 -0
  34. data/app/views/ld4l_virtual_collection/collections/edit.html.erb +13 -0
  35. data/app/views/ld4l_virtual_collection/collections/index.html.erb +30 -0
  36. data/app/views/ld4l_virtual_collection/collections/new.html.erb +12 -0
  37. data/app/views/ld4l_virtual_collection/collections/show.html.erb +43 -0
  38. data/app/views/ld4l_virtual_collection/items/_collection_info.html.erb +14 -0
  39. data/app/views/ld4l_virtual_collection/items/_form.html.erb +25 -0
  40. data/app/views/ld4l_virtual_collection/items/edit.html.erb +14 -0
  41. data/app/views/ld4l_virtual_collection/items/index.html.erb +24 -0
  42. data/app/views/ld4l_virtual_collection/items/new.html.erb +14 -0
  43. data/app/views/ld4l_virtual_collection/items/show.html.erb +23 -0
  44. data/app/views/ld4l_virtual_collection/my_virtual_collections/_collection_lists.html.erb +82 -0
  45. data/app/views/ld4l_virtual_collection/my_virtual_collections/_edit_collection_modal.html.erb +20 -0
  46. data/app/views/ld4l_virtual_collection/my_virtual_collections/_form_collection.html.erb +51 -0
  47. data/app/views/ld4l_virtual_collection/my_virtual_collections/_form_collection_item.html.erb +48 -0
  48. data/app/views/ld4l_virtual_collection/my_virtual_collections/_form_collection_items_query.html.erb +37 -0
  49. data/app/views/ld4l_virtual_collection/my_virtual_collections/_form_item_note.html.erb +31 -0
  50. data/app/views/ld4l_virtual_collection/my_virtual_collections/_form_item_tag.html.erb +30 -0
  51. data/app/views/ld4l_virtual_collection/my_virtual_collections/_modals.html.erb +8 -0
  52. data/app/views/ld4l_virtual_collection/my_virtual_collections/_new_collection_item_modal.html.erb +20 -0
  53. data/app/views/ld4l_virtual_collection/my_virtual_collections/_new_collection_items_by_query_modal.html.erb +20 -0
  54. data/app/views/ld4l_virtual_collection/my_virtual_collections/_new_collection_modal.html.erb +20 -0
  55. data/app/views/ld4l_virtual_collection/my_virtual_collections/_selected_collection_header.html.erb +17 -0
  56. data/app/views/ld4l_virtual_collection/my_virtual_collections/_selected_collection_items.html.erb +121 -0
  57. data/app/views/ld4l_virtual_collection/my_virtual_collections/_selected_collection_range.html.erb +44 -0
  58. data/app/views/ld4l_virtual_collection/my_virtual_collections/edit_collection_modal.js.erb +1 -0
  59. data/app/views/ld4l_virtual_collection/my_virtual_collections/index.html.erb +4 -0
  60. data/app/views/ld4l_virtual_collection/my_virtual_collections/new_collection_item_modal.js.erb +1 -0
  61. data/app/views/ld4l_virtual_collection/my_virtual_collections/new_collection_items_by_query_modal.js.erb +1 -0
  62. data/app/views/ld4l_virtual_collection/my_virtual_collections/new_collection_modal.js.erb +1 -0
  63. data/app/views/ld4l_virtual_collection/my_virtual_collections/show.html.erb +14 -0
  64. data/bin/rails +12 -0
  65. data/config/routes.rb +16 -0
  66. data/ld4l_virtual_collection.gemspec +50 -0
  67. data/lib/ld4l_virtual_collection.rb +34 -0
  68. data/lib/ld4l_virtual_collection/configuration.rb +86 -0
  69. data/lib/ld4l_virtual_collection/engine.rb +23 -0
  70. data/lib/ld4l_virtual_collection/version.rb +3 -0
  71. data/lib/tasks/ld4l_virtual_collection_tasks.rake +4 -0
  72. data/test/controllers/ld4l_virtual_collection/collections_controller_test.rb +51 -0
  73. data/test/controllers/ld4l_virtual_collection/items_controller_test.rb +51 -0
  74. data/test/controllers/ld4l_virtual_collection/my_virtual_collections_controller_test.rb +51 -0
  75. data/test/controllers/ld4l_virtual_collection/virtual_collections_controller_test.rb +51 -0
  76. data/test/dummy/Gemfile +20 -0
  77. data/test/dummy/README.rdoc +28 -0
  78. data/test/dummy/Rakefile +6 -0
  79. data/test/dummy/app/assets/images/.keep +0 -0
  80. data/test/dummy/app/assets/javascripts/application.js +13 -0
  81. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  82. data/test/dummy/app/controllers/application_controller.rb +5 -0
  83. data/test/dummy/app/controllers/concerns/.keep +0 -0
  84. data/test/dummy/app/helpers/application_helper.rb +2 -0
  85. data/test/dummy/app/mailers/.keep +0 -0
  86. data/test/dummy/app/models/.keep +0 -0
  87. data/test/dummy/app/models/concerns/.keep +0 -0
  88. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  89. data/test/dummy/bin/bundle +3 -0
  90. data/test/dummy/bin/rails +4 -0
  91. data/test/dummy/bin/rake +4 -0
  92. data/test/dummy/config.ru +4 -0
  93. data/test/dummy/config/application.rb +23 -0
  94. data/test/dummy/config/boot.rb +5 -0
  95. data/test/dummy/config/database.yml +25 -0
  96. data/test/dummy/config/environment.rb +5 -0
  97. data/test/dummy/config/environments/development.rb +37 -0
  98. data/test/dummy/config/environments/production.rb +78 -0
  99. data/test/dummy/config/environments/test.rb +39 -0
  100. data/test/dummy/config/initializers/assets.rb +8 -0
  101. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  102. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  103. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  104. data/test/dummy/config/initializers/inflections.rb +16 -0
  105. data/test/dummy/config/initializers/mime_types.rb +4 -0
  106. data/test/dummy/config/initializers/rdf_repositories.rb +32 -0
  107. data/test/dummy/config/initializers/session_store.rb +3 -0
  108. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  109. data/test/dummy/config/locales/en.yml +23 -0
  110. data/test/dummy/config/routes.rb +3 -0
  111. data/test/dummy/config/secrets.yml +22 -0
  112. data/test/dummy/lib/assets/.keep +0 -0
  113. data/test/dummy/log/.keep +0 -0
  114. data/test/dummy/public/404.html +67 -0
  115. data/test/dummy/public/422.html +67 -0
  116. data/test/dummy/public/500.html +66 -0
  117. data/test/dummy/public/favicon.ico +0 -0
  118. data/test/fixtures/ld4l_virtual_collection/collections.yml +11 -0
  119. data/test/fixtures/ld4l_virtual_collection/items.yml +11 -0
  120. data/test/fixtures/ld4l_virtual_collection/my_virtual_collections.yml +11 -0
  121. data/test/fixtures/ld4l_virtual_collection/virtual_collections.yml +9 -0
  122. data/test/helpers/ld4l_virtual_collection/collections_helper_test.rb +6 -0
  123. data/test/helpers/ld4l_virtual_collection/items_helper_test.rb +6 -0
  124. data/test/helpers/ld4l_virtual_collection/my_virtual_collections_helper_test.rb +6 -0
  125. data/test/helpers/ld4l_virtual_collection/virtual_collections_helper_test.rb +6 -0
  126. data/test/integration/navigation_test.rb +10 -0
  127. data/test/ld4l_virtual_collection_test.rb +7 -0
  128. data/test/models/ld4l_virtual_collection/collection_test.rb +9 -0
  129. data/test/models/ld4l_virtual_collection/item_test.rb +9 -0
  130. data/test/models/ld4l_virtual_collection/my_virtual_collection_test.rb +9 -0
  131. data/test/models/ld4l_virtual_collection/virtual_collection_test.rb +9 -0
  132. data/test/test_helper.rb +17 -0
  133. metadata +544 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 033b732ee2a30f63f88ed161cba066aca2a09e10
4
+ data.tar.gz: 2474cdf1d095d1a258fe58526269f585e5a21892
5
+ SHA512:
6
+ metadata.gz: 6ad68e9b92aae06f7df4d28c009861c469d1c0563bb774f9e61bc580b4c6161f8dfbffff558b2cc6f59bbaa8b8ba1a36bc0dbf6b4f71e91167cc249d29556cc1
7
+ data.tar.gz: c5370ab5200106a770a497ea3f2226ac174c2cc4a327d63e6306e4ff43b2e5944c382330d94a962d8c4b7884ffc058837348fbfaa17f11e2065ce3a8b7759c5c
data/.gitignore ADDED
@@ -0,0 +1,34 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ vendor
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
19
+ *.bundle
20
+ *.so
21
+ *.o
22
+ *.a
23
+ mkmf.log
24
+ .idea
25
+ .ruby-gemset
26
+ .ruby-version
27
+ log/*.log
28
+ test/dummy/db
29
+ test/dummy/db/*.sqlite3
30
+ test/dummy/db/*.sqlite3-journal
31
+ test/dummy/log/*.log
32
+ test/dummy/tmp/
33
+ test/dummy/.sass-cache
34
+ test/dummy/vendor
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ bundler_args: --without debug
3
+ script: "bundle exec rspec spec"
4
+ sudo: false
5
+ cache: bundler
6
+ rvm:
7
+ - 2.2.4
8
+ - 2.3.0
9
+ - jruby-9.0.4.0
10
+ - rbx-2
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: jruby-9.0.4.0
14
+ - rvm: rbx-2
data/CHANGES.md ADDED
@@ -0,0 +1,12 @@
1
+ 0.1.0
2
+ -----
3
+ * Initial full release of gem.
4
+ * support ActiveTriples 0.5, 0.6, and 0.8.2
5
+ * Provides My Virtual Collection UI
6
+ * Uses ontology gems and works gem to manage metadata
7
+ * See README for more information.
8
+
9
+ 0.0.1
10
+ -----
11
+ * Very preliminary. Lots of pieces and parts don't work yet.
12
+ * Working version without font-awesome.
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ # Add gems for working with triples that are not yet released gems
data/LICENSE.txt ADDED
@@ -0,0 +1,14 @@
1
+ Copyright (c) 2015 Cornell University
2
+
3
+ ##########################################################################
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
data/README.md ADDED
@@ -0,0 +1,128 @@
1
+ # Ld4lVirtualCollection
2
+
3
+ Rails Engine LD4L Virtual Collection provides a user interface for creating and manipulating Virtual Collections.
4
+
5
+
6
+ ## Installation
7
+
8
+ Temporary get the gem from github until the gem is released publicly.
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ <!-- gem 'ld4l_virtual_collection' -->
13
+ gem 'ld4l_virtual_collection', '~> 0.0.1', :git => 'git@github.com:elrayle/ld4l_virtual_collection.git'
14
+
15
+
16
+ And then execute:
17
+
18
+ $ bundle install
19
+
20
+ <!--
21
+ Or install it yourself as:
22
+
23
+ $ gem install ld4l_virtual_collection
24
+ -->
25
+
26
+
27
+ ## Usage
28
+
29
+ **Caveat:** This rails engine is part of the LD4L Project and is being used in that context. There is no guarantee
30
+ that the code will work in a usable way outside of its use in LD4L Use Cases.
31
+
32
+
33
+ ### Configurations
34
+
35
+ TBA
36
+
37
+ <!--
38
+ * base_uri - base URI used when new resources are created (default="http://localhost/")
39
+ * localname_minter - minter function to use for creating unique local names (default=nil which uses default minter in active_triples-local_name gem)
40
+
41
+ *Setup for all examples.*
42
+
43
+ * Restart your interactive session (e.g. irb, pry).
44
+ * Use the Setup for all examples in main Examples section above.
45
+
46
+ *Example usage using configured base_uri and default localname_minter.*
47
+ ```
48
+ LD4L::OpenAnnotationRDF.reset
49
+ LD4L::OpenAnnotationRDF.configure do |config|
50
+ config.base_uri = "http://example.org/"
51
+ end
52
+
53
+ ca = LD4L::OpenAnnotationRDF::CommentAnnotation.new(ActiveTriples::LocalName::Minter.generate_local_name(
54
+ LD4L::OpenAnnotationRDF::CommentAnnotation, 10, {:prefix=>'ca'} ))
55
+
56
+ puts ca.dump :ttl
57
+
58
+ ca = LD4L::OpenAnnotationRDF::CommentAnnotation.new(ActiveTriples::LocalName::Minter.generate_local_name(
59
+ LD4L::OpenAnnotationRDF::CommentAnnotation, 10, {:prefix=>'ca'},
60
+ &LD4L::OpenAnnotationRDF.configuration.localname_minter ))
61
+
62
+ puts ca.dump :ttl
63
+ ```
64
+ NOTE: If base_uri is not used, you need to restart your interactive environment (e.g. irb, pry). Once the
65
+ CommentAnnotation class is instantiated the first time, the base_uri for the class is set. If you ran
66
+ through the main Examples, the base_uri was set to the default base_uri.
67
+
68
+
69
+ *Example triples created for a person with configured base_uri and default minter.*
70
+ ```
71
+ <http://example.org/ca45c9c85b-25af-4c52-96a4-cf0d8b70a768> a <http://www.w3.org/ns/oa#Annotation>;
72
+ <http://www.w3.org/ns/oa#motivatedBy> <http://www.w3.org/ns/oa#commenting> .
73
+ ```
74
+
75
+ *Example usage using configured base_uri and configured localname_minter.*
76
+ ```
77
+ LD4L::OpenAnnotationRDF.configure do |config|
78
+ config.base_uri = "http://example.org/"
79
+ config.localname_minter = lambda { |prefix=""| prefix+'_configured_'+SecureRandom.uuid }
80
+ end
81
+
82
+ ca = LD4L::OpenAnnotationRDF::CommentAnnotation.new(ActiveTriples::LocalName::Minter.generate_local_name(
83
+ LD4L::OpenAnnotationRDF::CommentAnnotation, 10, 'ca',
84
+ &LD4L::OpenAnnotationRDF.configuration.localname_minter ))
85
+
86
+ puts ca.dump :ttl
87
+ ```
88
+ NOTE: If base_uri is not used, you need to restart your interactive environment (e.g. irb, pry). Once the
89
+ CommentAnnotation class is instantiated the first time, the base_uri for the class is set. If you ran
90
+ through the main Examples, the base_uri was set to the default base_uri.
91
+
92
+
93
+ *Example triples created for a person with configured base_uri and configured minter.*
94
+ ```
95
+ <http://example.org/ca_configured_6498ba05-8b21-4e8c-b9d4-a6d5d2180966> a <http://www.w3.org/ns/oa#Annotation>;
96
+ <http://www.w3.org/ns/oa#motivatedBy> <http://www.w3.org/ns/oa#commenting> .
97
+ ```
98
+ -->
99
+
100
+ ### Models
101
+
102
+ The Rails Engine VirtualCollectionUI uses the following ontology based gems:
103
+
104
+ 1. LD4L::OreRDF
105
+ 1. LD4L::OpenAnnotationRDF
106
+ 1. LD4L::FoafRDF
107
+
108
+
109
+ ### Ontologies
110
+
111
+ The listed ontologies are used to implement virtual collections and are brought into use by the ontology gems.
112
+
113
+ * [ORE](http://www.openarchives.org/ore/1.0/vocabulary)
114
+ * [OA](http://www.openannotation.org/spec/core/)
115
+ * [FOAF](http://xmlns.com/foaf/spec/)
116
+ * [RDF](http://www.w3.org/TR/rdf-syntax-grammar/)
117
+ * [Dublin Core (DC)](http://dublincore.org/documents/dces/)
118
+ * [Dublin Core Terms (DCTERMS)](http://dublincore.org/documents/dcmi-terms/)
119
+
120
+
121
+
122
+ ## Contributing
123
+
124
+ 1. Fork it ( https://github.com/[my-github-username]/ld4l-open_annotation_rdf/fork )
125
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
126
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
127
+ 4. Push to the branch (`git push origin my-new-feature`)
128
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,34 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Ld4lVirtualCollection'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+
21
+
22
+ Bundler::GemHelper.install_tasks
23
+
24
+ require 'rake/testtask'
25
+
26
+ Rake::TestTask.new(:test) do |t|
27
+ t.libs << 'lib'
28
+ t.libs << 'test'
29
+ t.pattern = 'test/**/*_test.rb'
30
+ t.verbose = false
31
+ end
32
+
33
+
34
+ task default: :test
@@ -0,0 +1,19 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require bootstrap/modal
16
+ //= require turbolinks
17
+ //= require_tree .
18
+
19
+ $('.no-js').removeClass('no-js').addClass('js');
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,50 @@
1
+ // Core variables and mixins
2
+ @import "bootstrap/variables";
3
+ @import "bootstrap/mixins";
4
+
5
+ // Reset and dependencies
6
+ @import "bootstrap/normalize";
7
+ @import "bootstrap/print";
8
+ @import "bootstrap/glyphicons";
9
+
10
+ // Core CSS
11
+ @import "bootstrap/scaffolding";
12
+ @import "bootstrap/type";
13
+ @import "bootstrap/code";
14
+ @import "bootstrap/grid";
15
+ @import "bootstrap/tables";
16
+ @import "bootstrap/forms";
17
+ @import "bootstrap/buttons";
18
+
19
+ // Components
20
+ //@import "bootstrap/component-animations";
21
+ //@import "bootstrap/dropdowns";
22
+ //@import "bootstrap/button-groups";
23
+ //@import "bootstrap/input-groups";
24
+ //@import "bootstrap/navs";
25
+ //@import "bootstrap/navbar";
26
+ //@import "bootstrap/breadcrumbs";
27
+ //@import "bootstrap/pagination";
28
+ //@import "bootstrap/pager";
29
+ //@import "bootstrap/labels";
30
+ //@import "bootstrap/badges";
31
+ //@import "bootstrap/jumbotron";
32
+ //@import "bootstrap/thumbnails";
33
+ //@import "bootstrap/alerts";
34
+ //@import "bootstrap/progress-bars";
35
+ //@import "bootstrap/media";
36
+ //@import "bootstrap/list-group";
37
+ //@import "bootstrap/panels";
38
+ //@import "bootstrap/responsive-embed";
39
+ //@import "bootstrap/wells";
40
+ //@import "bootstrap/close";
41
+
42
+ // Components w/ JavaScript
43
+ @import "bootstrap/modals";
44
+ //@import "bootstrap/tooltip";
45
+ //@import "bootstrap/popovers";
46
+ //@import "bootstrap/carousel";
47
+
48
+ // Utility classes
49
+ @import "bootstrap/utilities";
50
+ @import "bootstrap/responsive-utilities";
@@ -0,0 +1,22 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
14
+
15
+ // Font Awesome
16
+ //@import 'font-awesome';
17
+
18
+ // Bootstrap
19
+ // "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables"
20
+ @import "bootstrap-custom";
21
+
22
+
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,56 @@
1
+ body { background-color: #fff; color: #333; }
2
+
3
+ body, p, ol, ul, td {
4
+ font-family: verdana, arial, helvetica, sans-serif;
5
+ font-size: 13px;
6
+ line-height: 18px;
7
+ }
8
+
9
+ pre {
10
+ background-color: #eee;
11
+ padding: 10px;
12
+ font-size: 11px;
13
+ }
14
+
15
+ a { color: #000; }
16
+ a:visited { color: #666; }
17
+ a:hover { color: #fff; background-color:#000; }
18
+
19
+ div.field, div.actions {
20
+ margin-bottom: 10px;
21
+ }
22
+
23
+ #notice {
24
+ color: green;
25
+ }
26
+
27
+ .field_with_errors {
28
+ padding: 2px;
29
+ background-color: red;
30
+ display: table;
31
+ }
32
+
33
+ #error_explanation {
34
+ width: 450px;
35
+ border: 2px solid red;
36
+ padding: 7px;
37
+ padding-bottom: 0;
38
+ margin-bottom: 20px;
39
+ background-color: #f0f0f0;
40
+ }
41
+
42
+ #error_explanation h2 {
43
+ text-align: left;
44
+ font-weight: bold;
45
+ padding: 5px 5px 5px 15px;
46
+ font-size: 12px;
47
+ margin: -7px;
48
+ margin-bottom: 0px;
49
+ background-color: #c00;
50
+ color: #fff;
51
+ }
52
+
53
+ #error_explanation ul li {
54
+ font-size: 12px;
55
+ list-style: square;
56
+ }