interpret 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +488 -0
- data/app/controllers/interpret/search_controller.rb +3 -1
- data/app/controllers/interpret/tools_controller.rb +2 -1
- data/app/controllers/interpret/translations_controller.rb +16 -7
- data/app/models/interpret/expiration_observer.rb +29 -0
- data/app/models/interpret/translation.rb +9 -20
- data/app/views/interpret/tools/index.html.erb +16 -23
- data/app/views/interpret/translations/_listing.html.erb +1 -1
- data/app/views/interpret/translations/live_edit.html.erb +11 -0
- data/app/views/layouts/interpret.html.erb +6 -1
- data/app/views/layouts/interpret_base.html.erb +1 -1
- data/config/routes.rb +4 -0
- data/interpret.gemspec +0 -1
- data/lib/generators/interpret/setup_generator.rb +2 -1
- data/lib/interpret/controller_filter.rb +22 -0
- data/lib/interpret/engine.rb +17 -6
- data/lib/interpret/helpers.rb +39 -0
- data/lib/interpret/version.rb +1 -1
- data/lib/interpret.rb +4 -1
- data/lib/tasks/interpret.rake +4 -2
- data/public/javascripts/facebox-1.3/closelabel.png +0 -0
- data/public/javascripts/facebox-1.3/facebox.css +80 -0
- data/public/javascripts/facebox-1.3/facebox.js +309 -0
- data/public/javascripts/facebox-1.3/loading.gif +0 -0
- data/public/stylesheets/interpret_live_edit_style.css +38 -0
- data/public/stylesheets/interpret_style.css +18 -0
- data/spec/models/translation_spec.rb +33 -22
- data/spec/observers/expiration_observer_spec.rb +17 -0
- data/spec/spec_helper.rb +0 -1
- data/test_app/Gemfile +4 -2
- data/test_app/app/controllers/application_controller.rb +17 -1
- data/test_app/app/controllers/pages_controller.rb +0 -1
- data/test_app/app/models/my_sweeper.rb +5 -0
- data/test_app/app/views/layouts/application.html.erb +115 -5
- data/test_app/app/views/layouts/backoffice.html.erb +27 -0
- data/test_app/app/views/pages/archives.html.erb +3 -0
- data/test_app/app/views/pages/contact.html.erb +3 -0
- data/test_app/app/views/pages/index.html.erb +56 -0
- data/test_app/app/views/pages/links.html.erb +10 -0
- data/test_app/app/views/pages/resources.html.erb +5 -0
- data/test_app/config/application.rb +2 -2
- data/test_app/config/environments/production.rb +0 -5
- data/test_app/config/initializers/interpret.rb +3 -3
- data/test_app/config/locales/en.yml +55 -0
- data/test_app/config/locales/es.yml +3 -47
- data/test_app/config/routes.rb +8 -1
- data/test_app/public/images/a1.gif +0 -0
- data/test_app/public/images/a10.jpg +0 -0
- data/test_app/public/images/a16.gif +0 -0
- data/test_app/public/images/a18.gif +0 -0
- data/test_app/public/images/a22.gif +0 -0
- data/test_app/public/images/a26.gif +0 -0
- data/test_app/public/images/a33.gif +0 -0
- data/test_app/public/images/a36.gif +0 -0
- data/test_app/public/images/a38.gif +0 -0
- data/test_app/public/images/a41.gif +0 -0
- data/test_app/public/images/a47.gif +0 -0
- data/test_app/public/images/a50.gif +0 -0
- data/test_app/public/images/a8.gif +0 -0
- data/test_app/public/images/abg.gif +0 -0
- data/test_app/public/images/pic1.jpg +0 -0
- data/test_app/public/images/pic2.jpg +0 -0
- data/test_app/public/images/spacer.gif +0 -0
- data/test_app/public/images/upbg.gif +0 -0
- data/test_app/public/javascripts/facebox-1.3/closelabel.png +0 -0
- data/test_app/public/javascripts/facebox-1.3/facebox.css +80 -0
- data/test_app/public/javascripts/facebox-1.3/facebox.js +309 -0
- data/test_app/public/javascripts/facebox-1.3/loading.gif +0 -0
- data/test_app/public/stylesheets/default.css +361 -0
- data/test_app/public/stylesheets/interpret_live_edit_style.css +38 -0
- data/test_app/public/stylesheets/interpret_style.css +18 -0
- data/test_app/public/stylesheets/private.css +0 -0
- metadata +96 -29
- data/app/sweepers/interpret/base_sweeper.rb +0 -18
- data/app/sweepers/interpret/translation_sweeper.rb +0 -11
- data/public/javascripts/jquery.purr.js +0 -180
- data/test_app/app/sweepers/page_sweeper.rb +0 -12
- data/test_app/app/views/pages/contact.html.haml +0 -8
- data/test_app/app/views/pages/index.html.haml +0 -10
- data/test_app/config/locales/ca.yml +0 -6
- data/test_app/public/javascripts/jquery.purr.js +0 -180
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Interpret Demo - Backoffice</title>
|
5
|
+
<%= stylesheet_link_tag "private", "interpret_style" %>
|
6
|
+
<%= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" %>
|
7
|
+
<%= javascript_include_tag :all %>
|
8
|
+
<%= csrf_meta_tag %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div id="private_content">
|
12
|
+
<p>
|
13
|
+
This is a demostration of a custom backoffice layout, in which you may have other sections to administrate your site. You can integrate Interpret as a one more option in the main menu:
|
14
|
+
</p>
|
15
|
+
<div id="backoffice_menu">
|
16
|
+
<ul>
|
17
|
+
<li><%= link_to "Public page", "/" %></li>
|
18
|
+
<li><%= link_to "Other backoffice section", "#" %></li>
|
19
|
+
<li><%= link_to "Translations", interpret_root_path %></li>
|
20
|
+
</ul>
|
21
|
+
</div>
|
22
|
+
<div id="page">
|
23
|
+
<%= yield %>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</body>
|
27
|
+
</html>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<div class="post">
|
2
|
+
<div class="header">
|
3
|
+
<h3><%= t ".title1_html" %></h3>
|
4
|
+
<div class="date"><%= t ".date1" %></div>
|
5
|
+
</div>
|
6
|
+
<div class="content">
|
7
|
+
<img src="images/pic1.jpg" class="picA floatleft" alt="" />
|
8
|
+
<p><%= t ".post_1_1_html" %></p>
|
9
|
+
<p><%= t ".post_1_2_html" %></p>
|
10
|
+
</div>
|
11
|
+
<div class="footer">
|
12
|
+
<ul>
|
13
|
+
<li class="printerfriendly"><%= t "printer" %></li>
|
14
|
+
<li class="comments"><%= t "comments" %> (18)</li>
|
15
|
+
<li class="readmore"><%= t "read_more" %></li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="post">
|
21
|
+
<div class="header">
|
22
|
+
<h3><%= t ".title2" %></h3>
|
23
|
+
<div class="date"><%= t ".date2" %></div>
|
24
|
+
</div>
|
25
|
+
<div class="content">
|
26
|
+
<p><%= t ".post_2_1_html" %></p>
|
27
|
+
<p><%= t ".post_2_2_html" %></p>
|
28
|
+
</div>
|
29
|
+
<div class="footer">
|
30
|
+
<ul>
|
31
|
+
<li class="printerfriendly"><%= t "printer" %></li>
|
32
|
+
<li class="comments"><%= t "comments" %> (18)</li>
|
33
|
+
<li class="readmore"><%= t "read_more" %></li>
|
34
|
+
</ul>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="post">
|
39
|
+
<div class="header">
|
40
|
+
<h3><%= t ".title3" %></h3>
|
41
|
+
<div class="date"><%= t ".date3" %></div>
|
42
|
+
</div>
|
43
|
+
<div class="content">
|
44
|
+
<p><%= t ".post_3_1_html" %></p>
|
45
|
+
<p><%= t ".post_3_2_html" %></p>
|
46
|
+
</div>
|
47
|
+
<div class="footer">
|
48
|
+
<ul>
|
49
|
+
<li class="printerfriendly"><%= t "printer" %></li>
|
50
|
+
<li class="comments"><%= t "comments" %> (18)</li>
|
51
|
+
<li class="readmore"><%= t "read_more" %></li>
|
52
|
+
</ul>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
@@ -24,11 +24,11 @@ module InterpretApp
|
|
24
24
|
|
25
25
|
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
26
26
|
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
27
|
-
config.time_zone = 'Madrid'
|
27
|
+
#config.time_zone = 'Madrid'
|
28
28
|
|
29
29
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
30
30
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
31
|
-
config.i18n.default_locale = :
|
31
|
+
config.i18n.default_locale = :en
|
32
32
|
|
33
33
|
# JavaScript files you want as :defaults (application.js is always included).
|
34
34
|
# config.action_view.javascript_expansions[:defaults] = %w(jquery rails)
|
@@ -43,9 +43,4 @@ InterpretApp::Application.configure do
|
|
43
43
|
|
44
44
|
# Send deprecation notices to registered listeners
|
45
45
|
config.active_support.deprecation = :notify
|
46
|
-
|
47
|
-
config.middleware.use ExceptionNotifier,
|
48
|
-
:email_prefix => "[Notifier-#{APP_CONFIG['name']}]",
|
49
|
-
:sender_address => APP_CONFIG['exception_notification_sender'],
|
50
|
-
:exception_recipients => [APP_CONFIG['exception_notification_recipient']]
|
51
46
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
Interpret.configure do |config|
|
2
|
-
config.
|
3
|
-
config.registered_envs = [:production, :development]
|
2
|
+
config.registered_envs << :development
|
4
3
|
config.parent_controller = "application_controller"
|
5
4
|
config.current_user = "current_user"
|
6
5
|
config.admin = "admin?"
|
7
|
-
config.layout = "
|
6
|
+
config.layout = "backoffice"
|
7
|
+
config.scope = "(:locale)"
|
8
8
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
en:
|
2
|
+
main_header_html: <span>terra</span>firma<sup>1.0</sup>
|
3
|
+
main_h2: by nodethirtythree
|
4
|
+
|
5
|
+
printer: Printer Friendly
|
6
|
+
comments: Comments
|
7
|
+
read_more: Read more
|
8
|
+
|
9
|
+
about_me: About Me
|
10
|
+
about_me_text_html: <strong>Nullam turpis</strong> vestibulum et sed dolore. Nulla facilisi. Sed tortor. lobortis commodo. <a href="#">More ...</a>
|
11
|
+
topics: Topics
|
12
|
+
|
13
|
+
topics_list:
|
14
|
+
t1_html: <a href="#">Accumsan congue (32)</a>
|
15
|
+
t2_html: <a href="#">Dignissim nec augue (14)</a>
|
16
|
+
t3_html: <a href="#">Nunc ante elit nulla (83)</a>
|
17
|
+
t4_html: <a href="#">Aliquam suscipit (74)</a>
|
18
|
+
t5_html: <a href="#">Cursus sed arcu sed (14)</a>
|
19
|
+
t6_html: <a href="#">Eu ante cras at risus (24)</a>
|
20
|
+
t7_html: <a href="#">Donec mollis dolore (39)</a>
|
21
|
+
t8_html: <a href="#">Aliquam suscipit (74)</a>
|
22
|
+
|
23
|
+
pages:
|
24
|
+
index:
|
25
|
+
title1_html: TerraFirma<sup>1.0</sup> by NodeThirtyThree
|
26
|
+
date1: August 1, 2006
|
27
|
+
title2: Vivamus tortor sed aenean
|
28
|
+
date2: June 2, 2006
|
29
|
+
title3: Vivamus tortor sed aenean
|
30
|
+
date3: July 31, 2006
|
31
|
+
|
32
|
+
post_1_1_html: <strong>TerraFirma</strong><sup>1.0</sup> is a free, lightweight, tableless, W3C-compliant website design by <a href="http://www.nodethirtythree.com/">NodeThirtyThree Design</a>. You're free to dissect, manipulate and use it to your heart's content. We only ask that you link back to our site in some way. If you find this design useful, feel free to let us know :)
|
33
|
+
post_1_2_html: You can find more of our free work at this site or <a href="http://www.nodethirtythree.com/">our site</a>, or some of our commercial work on <a href="http://www.4templates.com/?aff=n33">4Templates.com</a>, a commercial website template site.
|
34
|
+
|
35
|
+
post_2_1_html: Volutpat at varius sed sollicitudin et, arcu. Vivamus viverra. Nullam turpis. Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi. Sed tortor. Aenean felis. Quisque eros. Cras lobortis commodo metus. Vestibulum vel purus. In eget odio in sapien adipiscing blandit. Quisque augue tortor, facilisis sit amet, aliquam, suscipit vitae, cursus sed, arcu lorem ipsum dolor sit amet.
|
36
|
+
post_2_2_html: Fermentum at, varius pretium, elit. Mauris egestas scelerisque nunc. Mauris non ligula quis wisi laoreet malesuada. In commodo. Maecenas lobortis cursus dolor.
|
37
|
+
post_3_1_html: Volutpat at varius sed sollicitudin et, arcu. Vivamus viverra. Nullam turpis. Vestibulum sed etiam. Lorem ipsum sit amet dolore. Nulla facilisi. Sed tortor. Aenean felis. Quisque eros. Cras lobortis commodo metus. Vestibulum vel purus. In eget odio in sapien adipiscing blandit. Quisque augue tortor, facilisis sit amet, aliquam, suscipit vitae, cursus sed, arcu lorem ipsum dolor sit amet.
|
38
|
+
post_3_2_html: Fermentum at, varius pretium, elit. Mauris egestas scelerisque nunc. Mauris non ligula quis wisi laoreet malesuada. In commodo. Maecenas lobortis cursus dolor.
|
39
|
+
|
40
|
+
archives:
|
41
|
+
h1: This is the archives section of the site
|
42
|
+
p1: Nisi nec libero. Cras magna ipsum, scelerisque et, tempor eget, gravida nec, lacus. Fusce eros nisi, ullamcorper blandit, ultricies eget, elementum eget, pede. Phasellus id risus vitae nisl ullamcorper congue. Proin est. Sed eleifend odio sed leo. Mauris tortor turpis, dignissim vel, ornare ac, ultricies quis, magna. Phasellus lacinia, augue ac dictum tempor, nisi felis ornare magna, eu vehicula tellus enim eu neque. Fusce est eros, sagittis eget, interdum a, ornare suscipit, massa. Sed vehicula elementum ligula. Aliquam erat volutpat. Donec odio. Quisque nunc. Integer cursus feugiat magna. Fusce ac elit ut elit aliquam suscipit. Duis leo est, interdum nec, varius in.
|
43
|
+
contact:
|
44
|
+
h1: Contact section
|
45
|
+
p1: Nisi nec libero. Cras magna ipsum, scelerisque et, tempor eget, gravida nec, lacus. Fusce eros nisi, ullamcorper blandit, ultricies eget, elementum eget, pede. Phasellus id risus vitae nisl ullamcorper congue. Proin est. Sed eleifend odio sed leo. Mauris tortor turpis, dignissim vel, ornare ac, ultricies quis, magna. Phasellus lacinia, augue ac dictum tempor, nisi felis ornare magna, eu vehicula tellus enim eu neque. Fusce est eros, sagittis eget, interdum a, ornare suscipit, massa. Sed vehicula elementum ligula. Aliquam erat volutpat. Donec odio. Quisque nunc. Integer cursus feugiat magna. Fusce ac elit ut elit aliquam suscipit. Duis leo est, interdum nec, varius in.
|
46
|
+
resources:
|
47
|
+
h1: Resources section
|
48
|
+
p1: Sed eleifend odio sed leo. Mauris tortor turpis, dignissim vel, ornare ac, ultricies quis, magna. Phasellus lacinia, augue ac dictum tempor, nisi felis ornare magna, eu vehicula tellus enim eu neque. Fusce est eros, sagittis eget, interdum a, ornare suscipit, massa. Sed vehicula elementum ligula. Aliquam erat volutpat. Donec odio. Quisque nunc. Integer cursus feugiat magna. Fusce ac elit ut elit aliquam suscipit. Duis leo est, interdum nec, varius in.
|
49
|
+
p2: Iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum.
|
50
|
+
links:
|
51
|
+
h1: Links section
|
52
|
+
p1: Sed eleifend odio sed leo. Mauris tortor turpis, dignissim vel, ornare ac, ultricies quis, magna. Phasellus lacinia, augue ac dictum tempor, nisi felis ornare magna, eu vehicula tellus enim eu neque. Fusce est eros, sagittis eget, interdum a, ornare suscipit, massa. Sed vehicula elementum ligula. Aliquam erat volutpat. Donec odio. Quisque nunc. Integer cursus feugiat magna. Fusce ac elit ut elit aliquam suscipit. Duis leo est, interdum nec, varius in.
|
53
|
+
elem1: List element one
|
54
|
+
elem2: List element two
|
55
|
+
elem3: List element three
|
@@ -1,48 +1,4 @@
|
|
1
1
|
es:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
locality: Barcelona
|
6
|
-
geo_region: Spain
|
7
|
-
geo_placename: Spain
|
8
|
-
geo_position: Alguna posicion
|
9
|
-
icbm: Algun numero icbm
|
10
|
-
|
11
|
-
new_key: Ola en espanyolll
|
12
|
-
|
13
|
-
pages:
|
14
|
-
index:
|
15
|
-
title: "Interpret Test app -- Index"
|
16
|
-
header1: "Procial Networks are the near future"
|
17
|
-
line1: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac odio quis dui tincidunt facilisis vitae sit amet nulla. Fusce tincidunt tempor dolor a ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris placerat tincidunt tempus. Nullam at tortor sed magna aliquet pharetra. Curabitur lectus nulla, egestas in ultricies eu, euismod mollis quam."
|
18
|
-
header2: SEO experts will eventually decline
|
19
|
-
line2: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac odio quis dui tincidunt facilisis vitae sit amet nulla. Fusce tincidunt tempor dolor a ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris placerat tincidunt tempus. Nullam at tortor sed magna aliquet pharetra. Curabitur lectus nulla, egestas in ultricies eu, euismod mollis quam."
|
20
|
-
header3: "Designers will eventually master programming languages"
|
21
|
-
line3: "Aliquam eros enim, malesuada ac rutrum eget, tempor et tellus. Duis egestas, lectus vel blandit mollis, lectus tellus tristique lacus, vel iaculis enim sem vitae orci. In nibh nulla, congue et tempor sed, elementum eu risus. Quisque tempus commodo pretium. Suspendisse gravida ante metus, id placerat sapien. Vestibulum vulputate suscipit massa id cursus. Curabitur sit amet mollis quam. Aliquam erat volutpat. In commodo faucibus massa, id dignissim dui sollicitudin ac. Aenean lobortis consequat lacus, non lobortis ligula pellentesque at. Nunc porta placerat eros in consectetur. Pellentesque et turpis risus. Vestibulum arcu eros, sodales vitae molestie id, aliquet et diam. Duis euismod mollis metus eleifend accumsan. Suspendisse in mollis nisi. Curabitur lorem orci, auctor sed rutrum at, euismod id lacus. Etiam luctus, nunc at ultricies pharetra, ante ante porttitor magna, sit amet fringilla diam dolor id felis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec id feugiat dui."
|
22
|
-
line4_html: "<strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href='#'>Donec non enim</a> in turpis pulvinar facilisis. Ut felis."
|
23
|
-
|
24
|
-
seccio1:
|
25
|
-
paragraf1: "ola que tal"
|
26
|
-
parag2: "Second paragraph Lorem ipsum"
|
27
|
-
seccio2:
|
28
|
-
paragraf1: "ola que tal"
|
29
|
-
parag2: "Second paragraph Lorem ipsum"
|
30
|
-
|
31
|
-
contact:
|
32
|
-
title: "Interpret Test app -- Contact"
|
33
|
-
header1: "Procial Networks are the near future"
|
34
|
-
line1: "Y esto es la pagina de contacto. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac odio quis dui tincidunt facilisis vitae sit amet nulla. Fusce tincidunt tempor dolor a ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris placerat tincidunt tempus. Nullam at tortor sed magna aliquet pharetra. Curabitur lectus nulla, egestas in ultricies eu, euismod mollis quam."
|
35
|
-
header2: SEO experts will eventually decline
|
36
|
-
line2: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac odio quis dui tincidunt facilisis vitae sit amet nulla. Fusce tincidunt tempor dolor a ornare. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris placerat tincidunt tempus. Nullam at tortor sed magna aliquet pharetra. Curabitur lectus nulla, egestas in ultricies eu, euismod mollis quam."
|
37
|
-
header3: "Designers will eventually master programming languages"
|
38
|
-
line3: "Aliquam eros enim, malesuada ac rutrum eget, tempor et tellus. Duis egestas, lectus vel blandit mollis, lectus tellus tristique lacus, vel iaculis enim sem vitae orci. In nibh nulla, congue et tempor sed, elementum eu risus. Quisque tempus commodo pretium. Suspendisse gravida ante metus, id placerat sapien. Vestibulum vulputate suscipit massa id cursus. Curabitur sit amet mollis quam. Aliquam erat volutpat. In commodo faucibus massa, id dignissim dui sollicitudin ac. Aenean lobortis consequat lacus, non lobortis ligula pellentesque at. Nunc porta placerat eros in consectetur. Pellentesque et turpis risus. Vestibulum arcu eros, sodales vitae molestie id, aliquet et diam. Duis euismod mollis metus eleifend accumsan. Suspendisse in mollis nisi. Curabitur lorem orci, auctor sed rutrum at, euismod id lacus. Etiam luctus, nunc at ultricies pharetra, ante ante porttitor magna, sit amet fringilla diam dolor id felis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec id feugiat dui."
|
39
|
-
line4_html: "<strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. <em>Aenean ultricies mi vitae est.</em> Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, <code>commodo vitae</code>, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. <a href='#'>Donec non enim</a> in turpis pulvinar facilisis. Ut felis."
|
40
|
-
|
41
|
-
seccio2:
|
42
|
-
paragraf1: "ola que tal"
|
43
|
-
parag2: "Second paragraph Lorem ipsum"
|
44
|
-
|
45
|
-
cucamonga:
|
46
|
-
seccio2:
|
47
|
-
paragraf1: "ola que tal"
|
48
|
-
parag2: "Second paragraph Lorem ipsum"
|
2
|
+
printer: Para imprimir
|
3
|
+
comments: Comentarios
|
4
|
+
read_more: Leer mas
|
data/test_app/config/routes.rb
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
InterpretApp::Application.routes.draw do
|
2
|
+
scope "(:locale)" do
|
3
|
+
get "archives", :to => "pages#archives"
|
4
|
+
get "links", :to => "pages#links"
|
5
|
+
get "resources", :to => "pages#resources"
|
6
|
+
get "contact", :to => "pages#contact"
|
2
7
|
|
3
|
-
|
8
|
+
post "toggle_edition_mode", :to => "application#toggle_edition_mode"
|
9
|
+
root :to => "pages#index"
|
10
|
+
end
|
4
11
|
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,80 @@
|
|
1
|
+
#facebox {
|
2
|
+
position: absolute;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
z-index: 100;
|
6
|
+
text-align: left;
|
7
|
+
}
|
8
|
+
|
9
|
+
|
10
|
+
#facebox .popup{
|
11
|
+
position:relative;
|
12
|
+
border:3px solid rgba(0,0,0,0);
|
13
|
+
-webkit-border-radius:5px;
|
14
|
+
-moz-border-radius:5px;
|
15
|
+
border-radius:5px;
|
16
|
+
-webkit-box-shadow:0 0 18px rgba(0,0,0,0.4);
|
17
|
+
-moz-box-shadow:0 0 18px rgba(0,0,0,0.4);
|
18
|
+
box-shadow:0 0 18px rgba(0,0,0,0.4);
|
19
|
+
}
|
20
|
+
|
21
|
+
#facebox .content {
|
22
|
+
display:table;
|
23
|
+
width: 370px;
|
24
|
+
padding: 10px;
|
25
|
+
background: #fff;
|
26
|
+
-webkit-border-radius:4px;
|
27
|
+
-moz-border-radius:4px;
|
28
|
+
border-radius:4px;
|
29
|
+
}
|
30
|
+
|
31
|
+
#facebox .content > p:first-child{
|
32
|
+
margin-top:0;
|
33
|
+
}
|
34
|
+
#facebox .content > p:last-child{
|
35
|
+
margin-bottom:0;
|
36
|
+
}
|
37
|
+
|
38
|
+
#facebox .close{
|
39
|
+
position:absolute;
|
40
|
+
top:5px;
|
41
|
+
right:5px;
|
42
|
+
padding:2px;
|
43
|
+
background:#fff;
|
44
|
+
}
|
45
|
+
#facebox .close img{
|
46
|
+
opacity:0.3;
|
47
|
+
}
|
48
|
+
#facebox .close:hover img{
|
49
|
+
opacity:1.0;
|
50
|
+
}
|
51
|
+
|
52
|
+
#facebox .loading {
|
53
|
+
text-align: center;
|
54
|
+
}
|
55
|
+
|
56
|
+
#facebox .image {
|
57
|
+
text-align: center;
|
58
|
+
}
|
59
|
+
|
60
|
+
#facebox img {
|
61
|
+
border: 0;
|
62
|
+
margin: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
#facebox_overlay {
|
66
|
+
position: fixed;
|
67
|
+
top: 0px;
|
68
|
+
left: 0px;
|
69
|
+
height:100%;
|
70
|
+
width:100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
.facebox_hide {
|
74
|
+
z-index:-100;
|
75
|
+
}
|
76
|
+
|
77
|
+
.facebox_overlayBG {
|
78
|
+
background-color: #000;
|
79
|
+
z-index: 99;
|
80
|
+
}
|