couch_i18n 0.2.1 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.rdoc +1 -2
- data/app/assets/javascripts/couch_i18n/application.js.coffee +8 -0
- data/app/assets/stylesheets/couch_i18n/application.sass +4 -0
- data/app/assets/stylesheets/couch_i18n/components/_buttons.sass +11 -0
- data/app/assets/stylesheets/couch_i18n/components/_forms.sass +45 -0
- data/app/assets/stylesheets/couch_i18n/components/_offset_navigation.sass +19 -0
- data/app/assets/stylesheets/couch_i18n/foundation_and_overrides.scss +1447 -0
- data/app/assets/stylesheets/couch_i18n/{structure.css.scss → structure.scss} +0 -24
- data/app/controllers/couch_i18n/application_controller.rb +16 -4
- data/app/controllers/couch_i18n/translations_controller.rb +37 -33
- data/app/models/couch_i18n/translation.rb +133 -26
- data/app/views/couch_i18n/application/_error_messages.html.slim +6 -0
- data/app/views/couch_i18n/translations/_form.html.slim +15 -0
- data/app/views/couch_i18n/translations/edit.html.slim +2 -0
- data/app/views/couch_i18n/translations/index.html.slim +91 -0
- data/app/views/couch_i18n/translations/new.html.slim +2 -0
- data/app/views/kaminari/couch_i18n/_first_page.html.erb +3 -0
- data/app/views/kaminari/couch_i18n/_first_page.html.slim +2 -0
- data/app/views/kaminari/couch_i18n/_gap.html.erb +3 -0
- data/app/views/kaminari/couch_i18n/_gap.html.slim +2 -0
- data/app/views/kaminari/couch_i18n/_last_page.html.erb +3 -0
- data/app/views/kaminari/couch_i18n/_last_page.html.slim +2 -0
- data/app/views/kaminari/couch_i18n/_next_page.html.erb +3 -0
- data/app/views/kaminari/couch_i18n/_next_page.html.slim +2 -0
- data/app/views/kaminari/couch_i18n/_page.html.erb +3 -0
- data/app/views/kaminari/couch_i18n/_page.html.slim +2 -0
- data/app/views/kaminari/couch_i18n/_paginator.html.erb +17 -0
- data/app/views/kaminari/couch_i18n/_paginator.html.slim +12 -0
- data/app/views/kaminari/couch_i18n/_prev_page.html.erb +3 -0
- data/app/views/kaminari/couch_i18n/_prev_page.html.slim +2 -0
- data/app/views/layouts/couch_i18n/application.html.slim +28 -0
- data/config/initializers/assets.rb +1 -0
- data/config/locales/couch_i18n.en.yml +9 -2
- data/config/routes.rb +2 -1
- data/lib/couch_i18n/active_model_errors.rb +2 -2
- data/lib/couch_i18n/backend.rb +1 -5
- data/lib/couch_i18n/engine.rb +12 -0
- data/lib/couch_i18n/store.rb +24 -12
- data/lib/couch_i18n/version.rb +3 -0
- data/lib/couch_i18n.rb +30 -9
- metadata +51 -42
- data/app/assets/javascripts/couch_i18n/application.js +0 -10
- data/app/assets/stylesheets/couch_i18n/application.css +0 -7
- data/app/assets/stylesheets/couch_i18n/bootstrap_and_override.css.less +0 -5
- data/app/views/couch_i18n/application/_error_messages.html.haml +0 -6
- data/app/views/couch_i18n/translations/_form.html.haml +0 -16
- data/app/views/couch_i18n/translations/edit.html.haml +0 -4
- data/app/views/couch_i18n/translations/index.html.haml +0 -82
- data/app/views/couch_i18n/translations/new.html.haml +0 -4
- data/app/views/layouts/couch_i18n/application.html.haml +0 -35
- /data/app/assets/stylesheets/couch_i18n/{alerts.css.scss → alerts.scss} +0 -0
- /data/app/views/couch_i18n/application/{_alerts.html.haml → _alerts.html.slim} +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e922fba2c199bd642a82120bc14df187f0e04b7df262fbcfe63e53a6d4f00b5f
|
4
|
+
data.tar.gz: 85ec557ac23ac93126c1fc124d5d7477c4125bd0ed743fa277a82a1d3e538e0f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c9af4437ee9789168efdc8b4d23f5bc05b982dffdd88cbb220dc92f07c9bee0e85f4db6e85128866335c5491769c29402af013e001f02c1efba80325a329f676
|
7
|
+
data.tar.gz: 2e234ce563f72a0167cec5b9c915e6fb2089e392bf5ad88b77826eb1c7ba2f25c1fee1af74b4d865b5c3f8caccdd8ff5e04c324de897dab99c93083fcca7f808
|
data/README.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
= CouchI18n
|
2
|
-
|
2
|
+
{<img src="https://travis-ci.org/bterkuile/couch_i18n.png?branch=master" alt="Build Status" />}[https://travis-ci.org/bterkuile/couch_i18n]
|
3
3
|
<b>Note this is a Rails >= 3.1 engine</b>
|
4
4
|
|
5
5
|
This projects is created to make translations editable. It is created using
|
@@ -90,7 +90,6 @@ the following yamlL
|
|
90
90
|
no proper import extension: Files with extension%{extension} cannot be imported
|
91
91
|
no import file given: There is no file to be imported
|
92
92
|
cannot parse yaml: The file cannot be read
|
93
|
-
file imported: File %{filename} was successfully imported
|
94
93
|
# The following tranlation will only work if no are_you_sure helper is present
|
95
94
|
are you sure: 'Are you sure?'
|
96
95
|
destroy offset link: Delete all translations with current offset
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.import-button
|
2
|
+
+button($bg: $warning-color, $padding: $button-tny)
|
3
|
+
margin-right: 10px
|
4
|
+
.export-button
|
5
|
+
+button($bg: $success-color, $padding: $button-tny)
|
6
|
+
.delete-all-from-offset-button
|
7
|
+
+button($bg: $alert-color, $padding: $button-tny)
|
8
|
+
float: right
|
9
|
+
|
10
|
+
.destroy-translation-button
|
11
|
+
+button($bg: $alert-color, $padding: $button-tny)
|
@@ -0,0 +1,45 @@
|
|
1
|
+
.form-row
|
2
|
+
+grid-row
|
3
|
+
.form-label
|
4
|
+
@media #{$small-only}
|
5
|
+
+grid-column($columns:10, $center:true)
|
6
|
+
@media #{$medium-only}
|
7
|
+
+grid-column($columns:4, $offset:1)
|
8
|
+
@media #{$large-up}
|
9
|
+
+grid-column(3)
|
10
|
+
&.half
|
11
|
+
+grid-column(6)
|
12
|
+
.form-field
|
13
|
+
@media #{$small-only}
|
14
|
+
+grid-column($columns:10, $center:true, $last-column:true)
|
15
|
+
@media #{$medium-only}
|
16
|
+
+grid-column($columns:4, $last-column:true)
|
17
|
+
@media #{$large-up}
|
18
|
+
+grid-column($columns: 3, $last-column:true)
|
19
|
+
&.full
|
20
|
+
@media #{$small-only}
|
21
|
+
+grid-column($columns:10, $center:true, $last-column:true)
|
22
|
+
@media #{$medium-only}
|
23
|
+
+grid-column($columns:6, $last-column:true)
|
24
|
+
@media #{$large-up}
|
25
|
+
+grid-column($columns: 9, $last-column:true)
|
26
|
+
&.half
|
27
|
+
+grid-column(6)
|
28
|
+
&.form-actions
|
29
|
+
padding-top: 12px
|
30
|
+
body
|
31
|
+
label
|
32
|
+
&.number
|
33
|
+
display: inline-block
|
34
|
+
padding: 4px 10px
|
35
|
+
input
|
36
|
+
&.number
|
37
|
+
width: 60px
|
38
|
+
display: inline-block
|
39
|
+
.apply-filter
|
40
|
+
+button($bg: $primary-color, $padding: $button-tny)
|
41
|
+
.error
|
42
|
+
input, textarea
|
43
|
+
border-color: $alert-color
|
44
|
+
input[type="number"]
|
45
|
+
text-align: right
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.offset-navigation-block
|
2
|
+
border-style: double
|
3
|
+
border-color: #444
|
4
|
+
border-left-width: 0
|
5
|
+
border-right-width: 0
|
6
|
+
padding: 5px 0
|
7
|
+
margin-top: 5px
|
8
|
+
.offset-navigation-deeper, .offset-navigation-higher
|
9
|
+
a
|
10
|
+
float: left
|
11
|
+
margin-right: 5px
|
12
|
+
margin-top: 5px
|
13
|
+
padding: 4px
|
14
|
+
border: 1px solid #aaa
|
15
|
+
&:hover
|
16
|
+
background-color: #ddd
|
17
|
+
border-color: black
|
18
|
+
//.offset-navigation-form
|
19
|
+
//margin-top: 5px
|