lolita 3.2.0.rc.17 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +22 -17
  3. data/Rakefile +3 -0
  4. data/app/assets/javascripts/lolita/list.js +2 -2
  5. data/app/assets/javascripts/lolita/main.js +2 -2
  6. data/app/assets/javascripts/lolita/tab.js +7 -7
  7. data/app/assets/stylesheets/lolita/PIE-custom.htc +87 -87
  8. data/app/assets/stylesheets/lolita/PIE.htc +81 -81
  9. data/app/assets/stylesheets/lolita/application.css +6 -6
  10. data/app/assets/stylesheets/lolita/default.css.erb +169 -169
  11. data/app/assets/stylesheets/lolita/jquery-ui-1.8.16.lolita.css.erb +567 -567
  12. data/app/assets/stylesheets/lolita/style.css.erb +4 -1
  13. data/app/helpers/components/lolita/configuration/list_component.rb +10 -10
  14. data/app/views/components/lolita/configuration/column/_first.html.haml +1 -1
  15. data/app/views/components/lolita/configuration/column/header/_first.html.haml +1 -1
  16. data/app/views/components/lolita/configuration/column/header/_sort.html.haml +6 -6
  17. data/app/views/components/lolita/configuration/columns/header/_display.html.haml +5 -5
  18. data/app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml +7 -7
  19. data/app/views/components/lolita/configuration/filter/_display.html.haml +2 -2
  20. data/app/views/components/lolita/configuration/search/_display.html.haml +2 -2
  21. data/app/views/kaminari/lolita/_first_page.html.erb +11 -11
  22. data/app/views/kaminari/lolita/_gap.html.erb +8 -8
  23. data/app/views/kaminari/lolita/_last_page.html.erb +11 -11
  24. data/app/views/kaminari/lolita/_next_page.html.erb +11 -11
  25. data/app/views/kaminari/lolita/_page.html.erb +12 -12
  26. data/app/views/kaminari/lolita/_paginator.html.erb +23 -23
  27. data/app/views/kaminari/lolita/_prev_page.html.erb +11 -11
  28. data/app/views/lolita/info/index.html.erb +232 -232
  29. data/app/views/lolita/rest/index.html.haml +1 -1
  30. data/config/routes.rb +6 -6
  31. data/lib/generators/lolita/install_generator.rb +2 -4
  32. data/lib/generators/lolita/uninstall_generator.rb +3 -8
  33. data/lib/generators/templates/lolita.rb +13 -16
  34. data/lib/lolita.rb +4 -5
  35. data/lib/lolita/adapter/active_record.rb +4 -4
  36. data/lib/lolita/adapter/common_helper.rb +45 -71
  37. data/lib/lolita/adapter/field_helper.rb +18 -18
  38. data/lib/lolita/adapter/mongoid.rb +8 -8
  39. data/lib/lolita/configuration/field/big_decimal.rb +12 -12
  40. data/lib/lolita/configuration/field/boolean.rb +12 -12
  41. data/lib/lolita/configuration/field/date.rb +12 -12
  42. data/lib/lolita/configuration/field/hidden.rb +12 -12
  43. data/lib/lolita/configuration/field/integer.rb +11 -11
  44. data/lib/lolita/configuration/field/string.rb +16 -16
  45. data/lib/lolita/configuration/field/time.rb +13 -13
  46. data/lib/lolita/configuration/field_set.rb +25 -25
  47. data/lib/lolita/configuration/filter.rb +6 -0
  48. data/lib/lolita/configuration/list.rb +10 -10
  49. data/lib/lolita/configuration/nested_form.rb +104 -104
  50. data/lib/lolita/configuration/search.rb +104 -104
  51. data/lib/lolita/configuration/tab/content.rb +3 -3
  52. data/lib/lolita/controllers/component_helpers.rb +9 -9
  53. data/lib/lolita/controllers/rails_helpers.rb +5 -5
  54. data/lib/lolita/dbi/base.rb +56 -56
  55. data/lib/lolita/hooks.rb +16 -16
  56. data/lib/lolita/hooks/named_hook.rb +125 -125
  57. data/lib/lolita/lazy_loader.rb +54 -54
  58. data/lib/lolita/navigation/tree.rb +132 -132
  59. data/lib/lolita/rails/engine.rb +2 -2
  60. data/lib/lolita/rails/routes.rb +9 -9
  61. data/lib/lolita/ruby_ext/accessors.rb +26 -26
  62. data/lib/lolita/ruby_ext/lolita_model_name.rb +10 -2
  63. data/lib/lolita/search/simple.rb +75 -75
  64. data/lib/lolita/support/formatter.rb +62 -62
  65. data/lib/lolita/support/formatter/rails.rb +56 -56
  66. data/lib/lolita/test/matchers.rb +77 -77
  67. data/lib/lolita/version.rb +2 -2
  68. data/spec/adapter/common_helper_spec.rb +96 -0
  69. data/spec/adapter_helper.rb +3 -4
  70. data/spec/builder_spec.rb +120 -120
  71. data/spec/configuration/base_spec.rb +1 -1
  72. data/spec/configuration/column_spec.rb +1 -1
  73. data/spec/configuration/columns_spec.rb +1 -1
  74. data/spec/configuration/core_spec.rb +1 -1
  75. data/spec/configuration/field_set_spec.rb +1 -1
  76. data/spec/configuration/field_spec.rb +1 -1
  77. data/spec/configuration/filter_spec.rb +30 -1
  78. data/spec/configuration/list_spec.rb +44 -145
  79. data/spec/configuration/nested_list_spec.rb +1 -1
  80. data/spec/configuration/search_spec.rb +1 -1
  81. data/spec/configuration/tab_spec.rb +1 -1
  82. data/spec/configuration/tabs_spec.rb +1 -2
  83. data/spec/controllers/component_helpers_spec.rb +1 -1
  84. data/spec/controllers/configuration_spec.rb +1 -1
  85. data/spec/controllers/internal_helpers_spec.rb +1 -1
  86. data/spec/controllers/lolita_rest_nested_resources_spec.rb +1 -1
  87. data/spec/controllers/lolita_rest_spec.rb +2 -2
  88. data/spec/dbi/base_spec.rb +1 -4
  89. data/spec/extensions/authorization/cancan_adapter_spec.rb +4 -4
  90. data/spec/extensions/extensions_spec.rb +1 -1
  91. data/spec/generators/lolita/install_generator_spec.rb +55 -0
  92. data/spec/generators/lolita/uninstall_generator_spec.rb +49 -0
  93. data/spec/hooks_spec.rb +25 -25
  94. data/spec/mapping_spec.rb +1 -1
  95. data/spec/navigation/branch_spec.rb +1 -1
  96. data/spec/navigation/tree_spec.rb +1 -1
  97. data/spec/rails_app/app/controllers/application_controller.rb +3 -3
  98. data/spec/rails_app/app/helpers/application_helper.rb +3 -3
  99. data/spec/rails_app/app/mongoid/address.rb +7 -7
  100. data/spec/rails_app/app/mongoid/comment.rb +5 -5
  101. data/spec/rails_app/app/mongoid/preference.rb +5 -5
  102. data/spec/rails_app/app/mongoid/profile.rb +13 -13
  103. data/spec/rails_app/app/mongoid/tag.rb +3 -3
  104. data/spec/rails_app/app/views/components/lolita/configuration/list/_body_cell.html.erb +1 -1
  105. data/spec/rails_app/config/boot.rb +4 -9
  106. data/spec/rails_app/config/environment.rb +5 -5
  107. data/spec/rails_app/config/environments/production.rb +37 -37
  108. data/spec/rails_app/config/environments/test.rb +37 -37
  109. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -7
  110. data/spec/rails_app/config/initializers/inflections.rb +2 -2
  111. data/spec/rails_app/config/initializers/secret_token.rb +1 -1
  112. data/spec/rails_app/config/routes.rb +1 -1
  113. data/spec/rails_app/lib/lolita/configuration/field/my_custom_collection.rb +13 -13
  114. data/spec/rails_app/log/development.log +12940 -43222
  115. data/spec/rails_app/public/javascripts/jquery-1.5.1.min.js +15 -15
  116. data/spec/rails_app/public/javascripts/lolita/main.js +6 -6
  117. data/spec/rails_app/public/javascripts/modernizr-1.7.min.js +1 -1
  118. data/spec/rails_app/public/javascripts/rails.js +137 -137
  119. data/spec/rails_app/public/javascripts/tinymce/langs/en.js +221 -221
  120. data/spec/rails_app/public/javascripts/tinymce/license.txt +504 -504
  121. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/about.htm +52 -52
  122. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/anchor.htm +26 -26
  123. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/charmap.htm +51 -51
  124. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/color_picker.htm +74 -74
  125. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/editor_template_src.js +1328 -1328
  126. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/image.htm +80 -80
  127. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/about.js +73 -73
  128. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/anchor.js +42 -42
  129. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/charmap.js +354 -354
  130. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -329
  131. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/image.js +247 -247
  132. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/link.js +153 -153
  133. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -56
  134. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en.js +68 -68
  135. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +53 -53
  136. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/link.htm +57 -57
  137. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -47
  138. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
  139. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
  140. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
  141. data/spec/rails_app/public/javascripts/tinymce/themes/advanced/source_editor.htm +25 -25
  142. data/spec/rails_app/public/javascripts/tinymce/tiny_mce_popup.js +4 -4
  143. data/spec/rails_app/public/stylesheets/lolita/default.css +169 -169
  144. data/spec/rails_app/public/stylesheets/lolita/style.css +214 -214
  145. data/spec/routing/routes_spec.rb +1 -1
  146. data/spec/search/simple_spec.rb +1 -1
  147. data/spec/simple_spec_helper.rb +1 -1
  148. data/spec/spec_helper.rb +6 -4
  149. data/spec/support/formatter_spec.rb +1 -1
  150. data/spec/tmp/config/routes.rb +0 -0
  151. data/vendor/assets/javascripts/jquery-numeric.js +279 -279
  152. data/vendor/assets/javascripts/modernizr_1_7_min.js +1 -1
  153. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
  154. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
  155. data/vendor/assets/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
  156. data/vendor/assets/stylesheets/jquery-ui-1.8.16.custom.css +567 -567
  157. metadata +380 -395
  158. data/spec/rails_app/coverage.data +0 -1
  159. data/spec/rails_app/log/test.log +0 -370
@@ -78,7 +78,10 @@ header nav .username {margin-right: 15px;}
78
78
  border-radius: 5px;
79
79
  padding: 5px 10px;
80
80
  }
81
- #main .box form .field_string { margin-top: 17px;}
81
+ #main .box form .field_string,
82
+ #main .box form .field_integer,
83
+ #main .box form .field_big_decimal,
84
+ #main .box form .field_array { margin-top: 17px;}
82
85
  #main .box form .field-value { margin-top: 5px;}
83
86
  #main .box form .field-value input, #main .box form .field-value textarea {
84
87
  border: 1px solid #cdcdcd;
@@ -1,11 +1,11 @@
1
- module Components
2
- module Lolita
3
- module Configuration
4
- module ListComponent
5
- def sort_options
6
- params[:sort]
7
- end
8
- end
9
- end
10
- end
1
+ module Components
2
+ module Lolita
3
+ module Configuration
4
+ module ListComponent
5
+ def sort_options
6
+ params[:sort]
7
+ end
8
+ end
9
+ end
10
+ end
11
11
  end
@@ -1,2 +1,2 @@
1
- %td{:class => "first-column cell"}
1
+ %td{:class => "first-column cell"}
2
2
  = check_box_tag "#{resource_name}[id]", record.id
@@ -1 +1 @@
1
- %th{:class => "first-column"}= "*"
1
+ %th{:class => "first-column"}= "*"
@@ -1,6 +1,6 @@
1
- - sort_mapping = {"desc" => '⇓', "asc" => '⇑'}
2
- - new_params = params.reject{|k,v| ["controller","action"].include?(k.to_s)}
3
- - direction_indicator = raw(sort_mapping[column.current_sort_state(new_params)[1]])
4
- - new_params[:s] = column.sort_params(new_params)
5
-
6
- = link_to raw("#{column.title.to_s.capitalize} #{direction_indicator}"), lolita_resources_path(new_params)
1
+ - sort_mapping = {"desc" => '⇓', "asc" => '⇑'}
2
+ - new_params = params.reject{|k,v| ["controller","action"].include?(k.to_s)}
3
+ - direction_indicator = raw(sort_mapping[column.current_sort_state(new_params)[1]])
4
+ - new_params[:s] = column.sort_params(new_params)
5
+
6
+ = link_to raw("#{column.title.to_s.capitalize} #{direction_indicator}"), lolita_resources_path(new_params)
@@ -1,5 +1,5 @@
1
- %thead
2
- %tr
3
- - columns.each do |column|
4
- = render_component *column.build("header")
5
- = render_component "lolita/configuration/column/header", :last
1
+ %thead
2
+ %tr
3
+ - columns.each do |column|
4
+ = render_component *column.build("header")
5
+ = render_component "lolita/configuration/column/header", :last
@@ -1,8 +1,8 @@
1
- - ids_method = field.name.to_s.match(/_ids$/) ? field.name : "#{field.name.to_s.singularize}_ids"
2
- = hidden_field_tag "#{resource_name}[#{ids_method}][]",""
3
- - field.view_values(self).each do |value|
4
- - editors = resource.send(:"#{ids_method}")
5
- .habtm-container
6
- = label_tag "#{resource_name}_#{field.name}_#{value.last}",value.first, :class => "habtm-label"
7
- = check_box_tag "#{resource_name}[#{ids_method}][]", value.last, resource.send("#{ids_method}").include?(value.last), :id => "#{resource_name}_#{field.name}_#{value.last}", :class => "habtm-checkbox"
1
+ - ids_method = field.name.to_s.match(/_ids$/) ? field.name : "#{field.name.to_s.singularize}_ids"
2
+ = hidden_field_tag "#{resource_name}[#{ids_method}][]",""
3
+ - field.view_values(self).each do |value|
4
+ - editors = resource.send(:"#{ids_method}")
5
+ .habtm-container
6
+ = label_tag "#{resource_name}_#{field.name}_#{value.last}",value.first, :class => "habtm-label"
7
+ = check_box_tag "#{resource_name}[#{ids_method}][]", value.last, resource.send("#{ids_method}").include?(value.last), :id => "#{resource_name}_#{field.name}_#{value.last}", :class => "habtm-checkbox"
8
8
  .clear
@@ -1,9 +1,9 @@
1
1
  - if filter
2
- = form_for OpenStruct.new(params[:filter]), :as => :filter, :html => {:class => "filter"}, :method => :get, :url => request.path do |f|
2
+ = form_for filter.resource(params), :as => :filter, :html => {:class => "filter"}, :method => :get, :url => request.path do |f|
3
3
  - current_form(f) do
4
4
  - filter.fields.each do |field|
5
5
  .field
6
6
  = render_component "lolita/configuration/field", :label, :field => field
7
- = render_component field
7
+ = render_component *field.build(:resource => current_form.object)
8
8
 
9
9
  %button{:type => "submit"}= ::I18n.t "lolita.filter.apply_button"
@@ -1,2 +1,2 @@
1
- = form_tag lolita_resources_path(), :method => :get, :class => "search" do
2
- %input{:type => "text", :name => "q", :value => params[:q], :placeholder => t("lolita.search")}
1
+ = form_tag lolita_resources_path(), :method => :get, :class => "search" do
2
+ %input{:type => "text", :name => "q", :value => params[:q], :placeholder => t("lolita.search")}
@@ -1,11 +1,11 @@
1
- <%# Link to the "First" page
2
- - available local variables
3
- url: url to the first page
4
- current_page: a page object for the currently displayed page
5
- num_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="first">
10
- <%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
11
- </span>
1
+ <%# Link to the "First" page
2
+ - available local variables
3
+ url: url to the first page
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="first">
10
+ <%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
11
+ </span>
@@ -1,8 +1,8 @@
1
- <%# Non-link tag that stands for skipped pages...
2
- - available local variables
3
- current_page: a page object for the currently displayed page
4
- num_pages: total number of pages
5
- per_page: number of items to fetch per page
6
- remote: data-remote
7
- -%>
8
- <span class="page gap"><%= raw(t 'views.pagination.truncate') %></span>
1
+ <%# Non-link tag that stands for skipped pages...
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ num_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ -%>
8
+ <span class="page gap"><%= raw(t 'views.pagination.truncate') %></span>
@@ -1,11 +1,11 @@
1
- <%# Link to the "Last" page
2
- - available local variables
3
- url: url to the last page
4
- current_page: a page object for the currently displayed page
5
- num_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="last">
10
- <%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
- </span>
1
+ <%# Link to the "Last" page
2
+ - available local variables
3
+ url: url to the last page
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="last">
10
+ <%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
+ </span>
@@ -1,11 +1,11 @@
1
- <%# Link to the "Next" page
2
- - available local variables
3
- url: url to the next page
4
- current_page: a page object for the currently displayed page
5
- num_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="next">
10
- <%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
11
- </span>
1
+ <%# Link to the "Next" page
2
+ - available local variables
3
+ url: url to the next page
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="next">
10
+ <%= link_to_unless current_page.last?, raw(t 'views.pagination.next'), url, :rel => 'next', :remote => remote %>
11
+ </span>
@@ -1,12 +1,12 @@
1
- <%# Link showing page number
2
- - available local variables
3
- page: a page object for "this" page
4
- url: url to this page
5
- current_page: a page object for the currently displayed page
6
- num_pages: total number of pages
7
- per_page: number of items to fetch per page
8
- remote: data-remote
9
- -%>
10
- <span class="page<%= ' current' if page.current? %>">
11
- <%= link_to_unless page.current?, page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
- </span>
1
+ <%# Link showing page number
2
+ - available local variables
3
+ page: a page object for "this" page
4
+ url: url to this page
5
+ current_page: a page object for the currently displayed page
6
+ num_pages: total number of pages
7
+ per_page: number of items to fetch per page
8
+ remote: data-remote
9
+ -%>
10
+ <span class="page<%= ' current' if page.current? %>">
11
+ <%= link_to_unless page.current?, page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ </span>
@@ -1,23 +1,23 @@
1
- <%# The container tag
2
- - available local variables
3
- current_page: a page object for the currently displayed page
4
- num_pages: total number of pages
5
- per_page: number of items to fetch per page
6
- remote: data-remote
7
- paginator: the paginator that renders the pagination tags inside
8
- -%>
9
- <%= paginator.render do -%>
10
- <nav class="pagination">
11
- <%= first_page_tag unless current_page.first? %>
12
- <%= prev_page_tag unless current_page.first? %>
13
- <% each_page do |page| -%>
14
- <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
15
- <%= page_tag page %>
16
- <% elsif !page.was_truncated? -%>
17
- <%= gap_tag %>
18
- <% end -%>
19
- <% end -%>
20
- <%= next_page_tag unless current_page.last? %>
21
- <%= last_page_tag unless current_page.last? %>
22
- </nav>
23
- <% end -%>
1
+ <%# The container tag
2
+ - available local variables
3
+ current_page: a page object for the currently displayed page
4
+ num_pages: total number of pages
5
+ per_page: number of items to fetch per page
6
+ remote: data-remote
7
+ paginator: the paginator that renders the pagination tags inside
8
+ -%>
9
+ <%= paginator.render do -%>
10
+ <nav class="pagination">
11
+ <%= first_page_tag unless current_page.first? %>
12
+ <%= prev_page_tag unless current_page.first? %>
13
+ <% each_page do |page| -%>
14
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
15
+ <%= page_tag page %>
16
+ <% elsif !page.was_truncated? -%>
17
+ <%= gap_tag %>
18
+ <% end -%>
19
+ <% end -%>
20
+ <%= next_page_tag unless current_page.last? %>
21
+ <%= last_page_tag unless current_page.last? %>
22
+ </nav>
23
+ <% end -%>
@@ -1,11 +1,11 @@
1
- <%# Link to the "Previous" page
2
- - available local variables
3
- url: url to the previous page
4
- current_page: a page object for the currently displayed page
5
- num_pages: total number of pages
6
- per_page: number of items to fetch per page
7
- remote: data-remote
8
- -%>
9
- <span class="prev">
10
- <%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
11
- </span>
1
+ <%# Link to the "Previous" page
2
+ - available local variables
3
+ url: url to the previous page
4
+ current_page: a page object for the currently displayed page
5
+ num_pages: total number of pages
6
+ per_page: number of items to fetch per page
7
+ remote: data-remote
8
+ -%>
9
+ <span class="prev">
10
+ <%= link_to_unless current_page.first?, raw(t 'views.pagination.previous'), url, :rel => 'prev', :remote => remote %>
11
+ </span>
@@ -1,232 +1,232 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Lolita: Welcome aboard</title>
5
- <style type="text/css" media="screen">
6
- body {
7
- margin: 0;
8
- margin-bottom: 25px;
9
- padding: 0;
10
- background-color: #f0f0f0;
11
- font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
12
- font-size: 13px;
13
- color: #333;
14
- }
15
-
16
- h1 {
17
- font-size: 28px;
18
- color: #000;
19
- }
20
-
21
- a {color: #03c}
22
- a:hover {
23
- background-color: #03c;
24
- color: white;
25
- text-decoration: none;
26
- }
27
-
28
-
29
- #page {
30
- background-color: #f0f0f0;
31
- width: 750px;
32
- margin: 0;
33
- margin-left: auto;
34
- margin-right: auto;
35
- }
36
-
37
- #content {
38
- float: left;
39
- background-color: white;
40
- border: 3px solid #aaa;
41
- border-top: none;
42
- padding: 25px;
43
- width: 500px;
44
- }
45
-
46
- #sidebar {
47
- float: right;
48
- width: 175px;
49
- }
50
-
51
- #footer {
52
- clear: both;
53
- }
54
-
55
-
56
- #header, #about, #getting-started {
57
- padding-left: 75px;
58
- padding-right: 30px;
59
- }
60
-
61
-
62
- #header {
63
- background-image: url("images/lolita/plus.png");
64
- background-repeat: no-repeat;
65
- background-position: top left;
66
- height: 64px;
67
- }
68
- #header h1, #header h2 {margin: 0}
69
- #header h2 {
70
- color: #888;
71
- font-weight: normal;
72
- font-size: 16px;
73
- }
74
-
75
-
76
- #about h3 {
77
- margin: 0;
78
- margin-bottom: 10px;
79
- font-size: 14px;
80
- }
81
-
82
- #about-content {
83
- background-color: #ffd;
84
- border: 1px solid #fc0;
85
- margin-left: -55px;
86
- margin-right: -10px;
87
- }
88
- #about-content table {
89
- margin-top: 10px;
90
- margin-bottom: 10px;
91
- font-size: 11px;
92
- border-collapse: collapse;
93
- }
94
- #about-content td {
95
- padding: 10px;
96
- padding-top: 3px;
97
- padding-bottom: 3px;
98
- }
99
- #about-content td.name {color: #555}
100
- #about-content td.value {color: #000}
101
-
102
- #about-content ul {
103
- padding: 0;
104
- list-style-type: none;
105
- }
106
-
107
- #about-content.failure {
108
- background-color: #fcc;
109
- border: 1px solid #f00;
110
- }
111
- #about-content.failure p {
112
- margin: 0;
113
- padding: 10px;
114
- }
115
-
116
-
117
- #getting-started {
118
- border-top: 1px solid #ccc;
119
- margin-top: 25px;
120
- padding-top: 15px;
121
- }
122
- #getting-started h1 {
123
- margin: 0;
124
- font-size: 20px;
125
- }
126
- #getting-started h2 {
127
- margin: 0;
128
- font-size: 14px;
129
- font-weight: normal;
130
- color: #333;
131
- margin-bottom: 25px;
132
- }
133
- #getting-started ol {
134
- margin-left: 0;
135
- padding-left: 0;
136
- }
137
- #getting-started li {
138
- font-size: 18px;
139
- color: #888;
140
- margin-bottom: 25px;
141
- }
142
- #getting-started li h2 {
143
- margin: 0;
144
- font-weight: normal;
145
- font-size: 18px;
146
- color: #333;
147
- }
148
- #getting-started li p {
149
- color: #555;
150
- font-size: 13px;
151
- }
152
-
153
-
154
- #sidebar ul {
155
- margin-left: 0;
156
- padding-left: 0;
157
- }
158
- #sidebar ul h3 {
159
- margin-top: 25px;
160
- font-size: 16px;
161
- padding-bottom: 10px;
162
- border-bottom: 1px solid #ccc;
163
- }
164
- #sidebar li {
165
- list-style-type: none;
166
- }
167
- #sidebar ul.links li {
168
- margin-bottom: 5px;
169
- }
170
-
171
- </style>
172
- <script type="text/javascript">
173
- function about() {
174
- info = document.getElementById('about-content');
175
- if (window.XMLHttpRequest)
176
- { xhr = new XMLHttpRequest(); }
177
- else
178
- { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
179
- xhr.open("GET","lolita/info/properties",false);
180
- xhr.send("");
181
- info.innerHTML = xhr.responseText;
182
- info.style.display = 'block'
183
- }
184
- </script>
185
- </head>
186
- <body>
187
- <div id="page">
188
- <div id="sidebar">
189
- <ul id="sidebar-items">
190
- <li>
191
- <h3>Browse the documentation</h3>
192
- <ul class="links">
193
- <li><a href="http://rdoc.info/github/ithouse/lolita/master/frames">Lolita API</a></li>
194
- </ul>
195
- </li>
196
- </ul>
197
- </div>
198
-
199
- <div id="content">
200
- <div id="header">
201
- <h1>Welcome aboard</h1>
202
- <h2>You&rsquo;re riding Lolita!</h2>
203
- </div>
204
-
205
- <div id="about">
206
- <h3><a href="lolita/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
207
- <div id="about-content" style="display: none"></div>
208
- </div>
209
-
210
- <div id="getting-started">
211
- <h1>Getting started</h1>
212
- <h2>Here&rsquo;s how to get rolling:</h2>
213
-
214
- <ol>
215
- <li>
216
- <h2>Use <code>lolita_for</code> in config/routes.rb</h2>
217
- <p>run it.</p>
218
- </li>
219
-
220
- <li>
221
- <h2>Use <code>lolita</code> in your models</h2>
222
- <p></p>
223
- </li>
224
-
225
- </ol>
226
- </div>
227
- </div>
228
-
229
- <div id="footer">&nbsp;</div>
230
- </div>
231
- </body>
232
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Lolita: Welcome aboard</title>
5
+ <style type="text/css" media="screen">
6
+ body {
7
+ margin: 0;
8
+ margin-bottom: 25px;
9
+ padding: 0;
10
+ background-color: #f0f0f0;
11
+ font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
12
+ font-size: 13px;
13
+ color: #333;
14
+ }
15
+
16
+ h1 {
17
+ font-size: 28px;
18
+ color: #000;
19
+ }
20
+
21
+ a {color: #03c}
22
+ a:hover {
23
+ background-color: #03c;
24
+ color: white;
25
+ text-decoration: none;
26
+ }
27
+
28
+
29
+ #page {
30
+ background-color: #f0f0f0;
31
+ width: 750px;
32
+ margin: 0;
33
+ margin-left: auto;
34
+ margin-right: auto;
35
+ }
36
+
37
+ #content {
38
+ float: left;
39
+ background-color: white;
40
+ border: 3px solid #aaa;
41
+ border-top: none;
42
+ padding: 25px;
43
+ width: 500px;
44
+ }
45
+
46
+ #sidebar {
47
+ float: right;
48
+ width: 175px;
49
+ }
50
+
51
+ #footer {
52
+ clear: both;
53
+ }
54
+
55
+
56
+ #header, #about, #getting-started {
57
+ padding-left: 75px;
58
+ padding-right: 30px;
59
+ }
60
+
61
+
62
+ #header {
63
+ background-image: url("images/lolita/plus.png");
64
+ background-repeat: no-repeat;
65
+ background-position: top left;
66
+ height: 64px;
67
+ }
68
+ #header h1, #header h2 {margin: 0}
69
+ #header h2 {
70
+ color: #888;
71
+ font-weight: normal;
72
+ font-size: 16px;
73
+ }
74
+
75
+
76
+ #about h3 {
77
+ margin: 0;
78
+ margin-bottom: 10px;
79
+ font-size: 14px;
80
+ }
81
+
82
+ #about-content {
83
+ background-color: #ffd;
84
+ border: 1px solid #fc0;
85
+ margin-left: -55px;
86
+ margin-right: -10px;
87
+ }
88
+ #about-content table {
89
+ margin-top: 10px;
90
+ margin-bottom: 10px;
91
+ font-size: 11px;
92
+ border-collapse: collapse;
93
+ }
94
+ #about-content td {
95
+ padding: 10px;
96
+ padding-top: 3px;
97
+ padding-bottom: 3px;
98
+ }
99
+ #about-content td.name {color: #555}
100
+ #about-content td.value {color: #000}
101
+
102
+ #about-content ul {
103
+ padding: 0;
104
+ list-style-type: none;
105
+ }
106
+
107
+ #about-content.failure {
108
+ background-color: #fcc;
109
+ border: 1px solid #f00;
110
+ }
111
+ #about-content.failure p {
112
+ margin: 0;
113
+ padding: 10px;
114
+ }
115
+
116
+
117
+ #getting-started {
118
+ border-top: 1px solid #ccc;
119
+ margin-top: 25px;
120
+ padding-top: 15px;
121
+ }
122
+ #getting-started h1 {
123
+ margin: 0;
124
+ font-size: 20px;
125
+ }
126
+ #getting-started h2 {
127
+ margin: 0;
128
+ font-size: 14px;
129
+ font-weight: normal;
130
+ color: #333;
131
+ margin-bottom: 25px;
132
+ }
133
+ #getting-started ol {
134
+ margin-left: 0;
135
+ padding-left: 0;
136
+ }
137
+ #getting-started li {
138
+ font-size: 18px;
139
+ color: #888;
140
+ margin-bottom: 25px;
141
+ }
142
+ #getting-started li h2 {
143
+ margin: 0;
144
+ font-weight: normal;
145
+ font-size: 18px;
146
+ color: #333;
147
+ }
148
+ #getting-started li p {
149
+ color: #555;
150
+ font-size: 13px;
151
+ }
152
+
153
+
154
+ #sidebar ul {
155
+ margin-left: 0;
156
+ padding-left: 0;
157
+ }
158
+ #sidebar ul h3 {
159
+ margin-top: 25px;
160
+ font-size: 16px;
161
+ padding-bottom: 10px;
162
+ border-bottom: 1px solid #ccc;
163
+ }
164
+ #sidebar li {
165
+ list-style-type: none;
166
+ }
167
+ #sidebar ul.links li {
168
+ margin-bottom: 5px;
169
+ }
170
+
171
+ </style>
172
+ <script type="text/javascript">
173
+ function about() {
174
+ info = document.getElementById('about-content');
175
+ if (window.XMLHttpRequest)
176
+ { xhr = new XMLHttpRequest(); }
177
+ else
178
+ { xhr = new ActiveXObject("Microsoft.XMLHTTP"); }
179
+ xhr.open("GET","lolita/info/properties",false);
180
+ xhr.send("");
181
+ info.innerHTML = xhr.responseText;
182
+ info.style.display = 'block'
183
+ }
184
+ </script>
185
+ </head>
186
+ <body>
187
+ <div id="page">
188
+ <div id="sidebar">
189
+ <ul id="sidebar-items">
190
+ <li>
191
+ <h3>Browse the documentation</h3>
192
+ <ul class="links">
193
+ <li><a href="http://rdoc.info/github/ithouse/lolita/master/frames">Lolita API</a></li>
194
+ </ul>
195
+ </li>
196
+ </ul>
197
+ </div>
198
+
199
+ <div id="content">
200
+ <div id="header">
201
+ <h1>Welcome aboard</h1>
202
+ <h2>You&rsquo;re riding Lolita!</h2>
203
+ </div>
204
+
205
+ <div id="about">
206
+ <h3><a href="lolita/info/properties" onclick="about(); return false">About your application&rsquo;s environment</a></h3>
207
+ <div id="about-content" style="display: none"></div>
208
+ </div>
209
+
210
+ <div id="getting-started">
211
+ <h1>Getting started</h1>
212
+ <h2>Here&rsquo;s how to get rolling:</h2>
213
+
214
+ <ol>
215
+ <li>
216
+ <h2>Use <code>lolita_for</code> in config/routes.rb</h2>
217
+ <p>run it.</p>
218
+ </li>
219
+
220
+ <li>
221
+ <h2>Use <code>lolita</code> in your models</h2>
222
+ <p></p>
223
+ </li>
224
+
225
+ </ol>
226
+ </div>
227
+ </div>
228
+
229
+ <div id="footer">&nbsp;</div>
230
+ </div>
231
+ </body>
232
+ </html>