lolita 4.0.7 → 4.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/lolita/PIE-custom.htc +87 -87
- data/app/assets/stylesheets/lolita/PIE.htc +81 -81
- data/app/assets/stylesheets/lolita/default.css.erb +170 -170
- data/app/assets/stylesheets/lolita/jquery-ui-1.8.16.lolita.css.erb +567 -567
- data/app/helpers/components/lolita/configuration/list_component.rb +10 -10
- data/app/views/components/lolita/configuration/column/header/_first.html.haml +1 -1
- data/app/views/components/lolita/configuration/columns/header/_display.html.haml +5 -5
- data/app/views/components/lolita/configuration/field/array/checkbox/_display.html.haml +7 -7
- data/app/views/components/lolita/configuration/search/_display.html.haml +2 -2
- data/app/views/kaminari/lolita/_first_page.html.erb +11 -11
- data/app/views/kaminari/lolita/_gap.html.erb +8 -8
- data/app/views/kaminari/lolita/_last_page.html.erb +11 -11
- data/app/views/kaminari/lolita/_next_page.html.erb +11 -11
- data/app/views/kaminari/lolita/_page.html.erb +12 -12
- data/app/views/kaminari/lolita/_paginator.html.erb +23 -23
- data/app/views/kaminari/lolita/_prev_page.html.erb +11 -11
- data/app/views/layouts/lolita/application.html.haml +22 -22
- data/app/views/lolita/info/index.html.erb +232 -232
- data/author +1 -1
- data/lib/lolita/adapter/field_helper.rb +18 -18
- data/lib/lolita/configuration/field/big_decimal.rb +12 -12
- data/lib/lolita/configuration/field/boolean.rb +12 -12
- data/lib/lolita/configuration/field/date.rb +12 -12
- data/lib/lolita/configuration/field/hidden.rb +12 -12
- data/lib/lolita/configuration/field/integer.rb +11 -11
- data/lib/lolita/configuration/field/string.rb +16 -16
- data/lib/lolita/configuration/field/time.rb +13 -13
- data/lib/lolita/configuration/field_set.rb +25 -25
- data/lib/lolita/configuration/nested_form.rb +104 -104
- data/lib/lolita/dbi/base.rb +56 -56
- data/lib/lolita/hooks/named_hook.rb +125 -125
- data/lib/lolita/lazy_loader.rb +54 -54
- data/lib/lolita/navigation/tree.rb +132 -132
- data/lib/lolita/ruby_ext/accessors.rb +26 -26
- data/lib/lolita/search/simple.rb +75 -75
- data/lib/lolita/support/formatter.rb +62 -62
- data/lib/lolita/support/formatter/rails.rb +56 -56
- data/lib/lolita/test/matchers.rb +77 -77
- data/lib/lolita/version.rb +1 -1
- data/spec/builder_spec.rb +120 -120
- data/spec/rails_app/app/controllers/application_controller.rb +3 -3
- data/spec/rails_app/app/helpers/application_helper.rb +3 -3
- data/spec/rails_app/app/views/components/lolita/configuration/list/_body_cell.html.erb +1 -1
- data/spec/rails_app/config/environment.rb +5 -5
- data/spec/rails_app/config/environments/production.rb +37 -37
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -7
- data/spec/rails_app/config/initializers/inflections.rb +2 -2
- data/spec/rails_app/config/initializers/secret_token.rb +1 -1
- data/spec/rails_app/lib/lolita/configuration/field/my_custom_collection.rb +13 -13
- data/spec/rails_app/public/javascripts/jquery-1.5.1.min.js +15 -15
- data/spec/rails_app/public/javascripts/lolita/main.js +6 -6
- data/spec/rails_app/public/javascripts/modernizr-1.7.min.js +1 -1
- data/spec/rails_app/public/javascripts/rails.js +137 -137
- data/spec/rails_app/public/javascripts/tinymce/langs/en.js +221 -221
- data/spec/rails_app/public/javascripts/tinymce/license.txt +504 -504
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/about.htm +52 -52
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/anchor.htm +26 -26
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/charmap.htm +51 -51
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/color_picker.htm +74 -74
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/editor_template_src.js +1328 -1328
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/image.htm +80 -80
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/about.js +73 -73
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/anchor.js +42 -42
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/charmap.js +354 -354
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/color_picker.js +329 -329
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/image.js +247 -247
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/link.js +153 -153
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/js/source_editor.js +56 -56
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en.js +68 -68
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/langs/en_dlg.js +53 -53
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/link.htm +57 -57
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/shortcuts.htm +47 -47
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/content.css +66 -66
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/dialog.css +117 -117
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/skins/cirkuit/ui.css +988 -988
- data/spec/rails_app/public/javascripts/tinymce/themes/advanced/source_editor.htm +25 -25
- data/spec/rails_app/public/javascripts/tinymce/tiny_mce_popup.js +4 -4
- data/spec/rails_app/public/stylesheets/lolita/default.css +169 -169
- data/spec/rails_app/public/stylesheets/lolita/style.css +214 -214
- data/vendor/assets/javascripts/jquery-numeric.js +279 -279
- data/vendor/assets/javascripts/modernizr_1_7_min.js +1 -1
- data/vendor/assets/stylesheets/jquery-ui-1.8.16.custom.css +567 -567
- metadata +3 -3
@@ -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 +1 @@
|
|
1
|
-
%th{:class => "first-column"}= "*"
|
1
|
+
%th{:class => "first-column"}= "*"
|
@@ -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,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>
|
@@ -3,28 +3,28 @@
|
|
3
3
|
|
4
4
|
%head
|
5
5
|
%meta{:charset => "utf-8"}
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
6
|
+
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
|
7
|
+
%title= Lolita.application.name
|
8
|
+
%meta{:content => "", :name => "description"}
|
9
|
+
%meta{:content => "", :name => "author"}
|
10
|
+
= favicon_link_tag "lolita/favicon.ico" rescue ""
|
11
|
+
= stylesheet_link_tag "lolita/application.css"
|
12
|
+
= yield :style
|
13
|
+
= javascript_include_tag "lolita/application.js"
|
14
|
+
= yield :script
|
15
|
+
= include_application_assets
|
16
|
+
= raw csrf_meta_tag
|
17
|
+
- if flash[:lolita_notice]
|
18
|
+
:javascript
|
19
|
+
$(function(){
|
20
|
+
show_notice_msg(Base64.decode('#{flash[:lolita_notice]}'));
|
21
|
+
})
|
22
|
+
- elsif flash[:lolita_alert]
|
23
|
+
:javascript
|
24
|
+
$(function(){
|
25
|
+
show_alert_msg(Base64.decode('#{flash[:lolita_alert]}'));
|
26
|
+
})
|
27
|
+
%body
|
28
28
|
= render_component :"lolita/shared", :flash
|
29
29
|
#container
|
30
30
|
= render_component :"lolita/shared", :header
|
@@ -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’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’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’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"> </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’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’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’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"> </div>
|
230
|
+
</div>
|
231
|
+
</body>
|
232
|
+
</html>
|