hobo 1.3.0.pre25 → 1.3.0.pre26
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.
- data/VERSION +1 -1
- data/lib/generators/hobo/i18n/templates/app.de.yml +30 -0
- data/lib/generators/hobo/i18n/templates/app.en.yml +1 -0
- data/lib/generators/hobo/i18n/templates/app.es.yml +1 -0
- data/lib/generators/hobo/i18n/templates/app.it.yml +5 -1
- data/lib/generators/hobo/i18n/templates/app.pt-PT.yml +1 -0
- data/lib/generators/hobo/i18n/templates/app.ru.yml +1 -0
- data/lib/generators/hobo/i18n/templates/hobo.de.yml +203 -0
- data/lib/generators/hobo/i18n/templates/hobo.en.yml +9 -3
- data/lib/generators/hobo/i18n/templates/hobo.es.yml +7 -1
- data/lib/generators/hobo/i18n/templates/hobo.it.yml +7 -1
- data/lib/generators/hobo/i18n/templates/hobo.pt-PT.yml +8 -2
- data/lib/generators/hobo/i18n/templates/hobo.ru.yml +8 -2
- data/lib/generators/hobo/setup_wizard/setup_wizard_generator.rb +1 -1
- data/lib/hobo/controller.rb +3 -2
- data/lib/hobo/rapid/helper.rb +2 -1
- data/lib/hobo/rapid/taglibs/rapid_editing.dryml +1 -1
- data/lib/hobo/rapid/taglibs/rapid_forms.dryml +11 -3
- data/lib/hobo/rapid/taglibs/rapid_generics.dryml +1 -1
- data/lib/hobo/rapid/taglibs/rapid_plus.dryml +1 -1
- data/lib/hobo/rapid/taglibs/rapid_summary.dryml +4 -4
- metadata +15 -13
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.0.
|
|
1
|
+
1.3.0.pre26
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Hobo application translation file for German.
|
|
2
|
+
# Translated by Matthias Wächter (matthias@waechter.wiz.at)
|
|
3
|
+
|
|
4
|
+
# Please, add the specific models and attributes for your application.
|
|
5
|
+
|
|
6
|
+
# If you find any error, or if you have any more specific translation,
|
|
7
|
+
# please post it to http://hobousers.googlegroups.com. Thank you!
|
|
8
|
+
|
|
9
|
+
de:
|
|
10
|
+
|
|
11
|
+
attributes:
|
|
12
|
+
created_at: Erzeugt
|
|
13
|
+
updated_at: Geändert
|
|
14
|
+
|
|
15
|
+
activerecord:
|
|
16
|
+
models:
|
|
17
|
+
user:
|
|
18
|
+
one: Benutzer
|
|
19
|
+
other: Benutzer
|
|
20
|
+
attributes:
|
|
21
|
+
user:
|
|
22
|
+
name: Name
|
|
23
|
+
password: Passwort
|
|
24
|
+
current_password: Derzeitiges Passwort
|
|
25
|
+
password_confirmation: Passwort Bestätigt
|
|
26
|
+
email_address: Email-Adresse
|
|
27
|
+
attribute_help:
|
|
28
|
+
user:
|
|
29
|
+
email_address: Ihre e-mail-Adresse wird nie an Andere weiter gegeben
|
|
30
|
+
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Hobo application translation file for Italian.
|
|
2
2
|
# Please, add the specific models and attributes for your application.
|
|
3
3
|
|
|
4
|
+
# If you find any error, or if you have any more specific translation,
|
|
5
|
+
# please post it to http://hobousers.googlegroups.com. Thank you!
|
|
6
|
+
|
|
4
7
|
it:
|
|
5
8
|
|
|
6
9
|
attributes:
|
|
@@ -15,7 +18,8 @@ it:
|
|
|
15
18
|
attributes:
|
|
16
19
|
user:
|
|
17
20
|
name: Nome
|
|
18
|
-
password: Parola
|
|
21
|
+
password: Parola Chiave
|
|
22
|
+
current_password: Parola Chiave Attuale
|
|
19
23
|
password_confirmation: Conferma Parola Chiave
|
|
20
24
|
email_address: Indirizzo Elettronico
|
|
21
25
|
# attribute_help:
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# Hobo internals translation file for German
|
|
2
|
+
# Translated by Matthias Wächter (matthias@waechter.wiz.at)
|
|
3
|
+
|
|
4
|
+
# If you find any error, please post it to http://hobousers.googlegroups.com.
|
|
5
|
+
# Thank you!
|
|
6
|
+
|
|
7
|
+
de:
|
|
8
|
+
hobo:
|
|
9
|
+
# default hobo pages translations
|
|
10
|
+
index:
|
|
11
|
+
# if you uncomment the following you will loose the automatic selection of dinamically pluralized nav-tabs
|
|
12
|
+
# if you need a different title you should implement a different way to select the tab on your own
|
|
13
|
+
#title: "%{model} Index"
|
|
14
|
+
heading: "%{model} Übersicht"
|
|
15
|
+
|
|
16
|
+
new:
|
|
17
|
+
title: "%{model} anlegen"
|
|
18
|
+
heading: "%{model} anlegen"
|
|
19
|
+
|
|
20
|
+
show:
|
|
21
|
+
title: "%{model}"
|
|
22
|
+
heading: "%{model} %{name}"
|
|
23
|
+
back_link: "Zurück"
|
|
24
|
+
edit_link: "%{model} bearbeiten"
|
|
25
|
+
new_link: "%{model} anlegen"
|
|
26
|
+
add_form_heading: "%{model} hinzufügen"
|
|
27
|
+
|
|
28
|
+
edit:
|
|
29
|
+
title: "%{model} bearbeiten"
|
|
30
|
+
heading: "%{model} bearbeiten"
|
|
31
|
+
|
|
32
|
+
index_for_owner:
|
|
33
|
+
title: "%{model} für"
|
|
34
|
+
# be aware that you will loose the automatic Your <collection> / Jom's <collection>
|
|
35
|
+
# default output for User models
|
|
36
|
+
# you better define the heading.* in the specific collection namespace
|
|
37
|
+
#heading:
|
|
38
|
+
subheading: "Für:"
|
|
39
|
+
|
|
40
|
+
new_for_owner:
|
|
41
|
+
title: "%{model} anlegen für"
|
|
42
|
+
heading: "%{model} anlegen"
|
|
43
|
+
subheading: "Für:"
|
|
44
|
+
|
|
45
|
+
login:
|
|
46
|
+
title: "Login"
|
|
47
|
+
heading: "Login"
|
|
48
|
+
email_address: &email_address "E-Mail-Adresse"
|
|
49
|
+
name: "Name"
|
|
50
|
+
password: "Passwort"
|
|
51
|
+
remember_me: "Remember me"
|
|
52
|
+
login: "Login"
|
|
53
|
+
signup: "Konto anlegen"
|
|
54
|
+
forgot_password: &forgot_password "Passwort vergessen?"
|
|
55
|
+
|
|
56
|
+
signup:
|
|
57
|
+
title: "Benutzerkonto anlegen"
|
|
58
|
+
heading: "Neuen Benutzer anlegen"
|
|
59
|
+
|
|
60
|
+
forgot_password:
|
|
61
|
+
title: *forgot_password
|
|
62
|
+
heading: *forgot_password
|
|
63
|
+
text: "Geben Sie die E-Mail-Adresse ein, die Sie bei der Anmeldung verwendet haben.
|
|
64
|
+
Im Anschluss erhalten Sie ein E-Mail, mit dem Sie Ihr Passwort zurücksetzen können."
|
|
65
|
+
email_address: *email_address
|
|
66
|
+
send: "Abschicken"
|
|
67
|
+
|
|
68
|
+
forgot_password_sent:
|
|
69
|
+
title: "Passwort vergessen – E-Mail abgeschickt"
|
|
70
|
+
heading: "Passwort vergessen – E-Mail abgeschickt"
|
|
71
|
+
text: "Es wurde ein E-Mail an %{email_address} verschickt, das Anweisungen zum Rücksetzen
|
|
72
|
+
des Passworts enthält. Wenn Sie es nicht erhalten, überprüfen Sie bitte Ihren
|
|
73
|
+
Spam-Filter."
|
|
74
|
+
|
|
75
|
+
account_disabled_page:
|
|
76
|
+
title: "Benutzerkonto deaktiviert"
|
|
77
|
+
heading: "Benutzerkonto deaktiviert"
|
|
78
|
+
text: "Ihr Benutzerkonto ist derzeit deaktiviert"
|
|
79
|
+
|
|
80
|
+
account_page:
|
|
81
|
+
title: "Ihr Benutzerkonto"
|
|
82
|
+
heading: "Ihr Benutzerkonto"
|
|
83
|
+
new_password: "Neues Passwort"
|
|
84
|
+
confirm_new_password: "Neues Passwort (wiederholen)"
|
|
85
|
+
|
|
86
|
+
# default hobo action translation
|
|
87
|
+
# The action with added model variable are new, create, delete, save,
|
|
88
|
+
# edit and back_to_parent
|
|
89
|
+
actions:
|
|
90
|
+
new: "%{model} anlegen"
|
|
91
|
+
create: "%{model} erzeugen"
|
|
92
|
+
previous: "Voriges"
|
|
93
|
+
next: "Nächstes"
|
|
94
|
+
add: "Hinzufügen"
|
|
95
|
+
show_all: "Alle anzeigen: %{model}"
|
|
96
|
+
delete: "%{model} löschen"
|
|
97
|
+
save: "%{model} speichern"
|
|
98
|
+
cancel: "Abbrechen"
|
|
99
|
+
edit: "%{model} bearbeiten"
|
|
100
|
+
back: "Zurück zu"
|
|
101
|
+
back_to_parent: "Zurück zu %{parent} %{name}"
|
|
102
|
+
send: "Abschicken"
|
|
103
|
+
remove: "Entfernen"
|
|
104
|
+
signup: "Konto anlegen"
|
|
105
|
+
login: "Anmelden"
|
|
106
|
+
logout: "Abmelden"
|
|
107
|
+
logged_in_as: "Angemeldet als %{name}"
|
|
108
|
+
account: "Benutzerkonto"
|
|
109
|
+
save_account: "Daten abspeichern"
|
|
110
|
+
|
|
111
|
+
# default hobo message translation
|
|
112
|
+
messages:
|
|
113
|
+
create:
|
|
114
|
+
success: "%{model} erfolgreich angelegt"
|
|
115
|
+
error: "%{model} konnte nicht angelegt werden.\n%{errors}"
|
|
116
|
+
creator:
|
|
117
|
+
error: "Konnte %{name}-Creator nicht ausführen.\n%{errors}"
|
|
118
|
+
transition:
|
|
119
|
+
error: "Konnte %{name}-Transition nicht ausführen.\n%{errors}"
|
|
120
|
+
update:
|
|
121
|
+
no_attribute_error: "Keine Aktualisierung in params spezifiziert"
|
|
122
|
+
success: "Änderungen an %{model} gesichert"
|
|
123
|
+
error: "Mit dieser Änderung gab es Probleme.\n%{errors}"
|
|
124
|
+
destroy:
|
|
125
|
+
success: "%{model} wurde gelöscht"
|
|
126
|
+
signup:
|
|
127
|
+
success: "Vielen Dank für Ihre Anmeldung!"
|
|
128
|
+
must_activate: "Sie müssen Ihr Konto erst aktivieren, bevor Sie sich damit anmelden können.
|
|
129
|
+
Bitte schauen Sie in Ihr Postfach."
|
|
130
|
+
login:
|
|
131
|
+
success: "Sie haben sich angemeldet."
|
|
132
|
+
error: "You did not provide a valid %{login} and Password!"
|
|
133
|
+
logout: "Sie haben sich abgemeldet."
|
|
134
|
+
reset_password: "Ihr Passwort wurde zurückgesetzt."
|
|
135
|
+
permission_denied: "Zugriff verweigert"
|
|
136
|
+
not_found: "Die angeforderte Seite konnte nicht gefunden werden."
|
|
137
|
+
unauthenticated: "Sie konnten nicht Authentifiziert werden"
|
|
138
|
+
validate_password: "muss mindestens 6 Buchstaben lang sein und darf nicht nur aus
|
|
139
|
+
Kleinbuchstaben bestehen"
|
|
140
|
+
current_password_is_not_correct: "ist nicht korrekt"
|
|
141
|
+
you_are_site_admin: "Sie sind jetzt der Administrator"
|
|
142
|
+
you_signed_up: "Sie haben sich angemeldet"
|
|
143
|
+
no: "Kein %{model}-Objekt gefunden."
|
|
144
|
+
confirm: "Sind Sie sich sicher?"
|
|
145
|
+
|
|
146
|
+
# default hobo collection translation
|
|
147
|
+
collection:
|
|
148
|
+
count: &collection_count
|
|
149
|
+
zero: &no_model "Kein %{model}-Objekt"
|
|
150
|
+
one: "Es gibt derzeit nur ein %{model}-Objekt"
|
|
151
|
+
other: "Es gibt bereits %{count} %{model}-Objekte"
|
|
152
|
+
# you can use the following to completely override the collection heading
|
|
153
|
+
# be aware that you will loose the automatic Your <collection> / Jom's <collection>
|
|
154
|
+
# default output for User models
|
|
155
|
+
# you better define the heading.* in the specific collection namespace
|
|
156
|
+
#heading:
|
|
157
|
+
add_form_heading: "%{model} hinzufügen"
|
|
158
|
+
empty_message: "Keine Enträge"
|
|
159
|
+
|
|
160
|
+
# default hobo form translation
|
|
161
|
+
form:
|
|
162
|
+
new:
|
|
163
|
+
heading: "%{model} anlegen"
|
|
164
|
+
error:
|
|
165
|
+
heading: "Die folgenden Fehler sind aufgetreten:"
|
|
166
|
+
select_many:
|
|
167
|
+
prompt: "%{model} anlegen"
|
|
168
|
+
|
|
169
|
+
# hobo support
|
|
170
|
+
support:
|
|
171
|
+
or: "oder"
|
|
172
|
+
a: "ein/e"
|
|
173
|
+
an: "ein/e"
|
|
174
|
+
|
|
175
|
+
table_plus:
|
|
176
|
+
search: "Suche"
|
|
177
|
+
submit_label: "Go"
|
|
178
|
+
|
|
179
|
+
live_search:
|
|
180
|
+
label: "Suche"
|
|
181
|
+
results_label: "Suchergebnisse"
|
|
182
|
+
close_button: "Schließen"
|
|
183
|
+
no_results: "Die Suche ergab keine Treffer."
|
|
184
|
+
|
|
185
|
+
dev_user_changer:
|
|
186
|
+
guest: "Gast"
|
|
187
|
+
|
|
188
|
+
admin:
|
|
189
|
+
subsite_name: "Admin"
|
|
190
|
+
invite_new_user: "Neuen Benutzer einladen"
|
|
191
|
+
|
|
192
|
+
subsite:
|
|
193
|
+
back_link: "Zur Hauptseite"
|
|
194
|
+
|
|
195
|
+
boolean_yes: "Ja"
|
|
196
|
+
boolean_no: "Nein"
|
|
197
|
+
password_hidden: "[Passwort versteckt]"
|
|
198
|
+
|
|
199
|
+
in_place_editor:
|
|
200
|
+
click_to_edit: "(Zum Bearbeiten anklicken)"
|
|
201
|
+
|
|
202
|
+
select_one_editor:
|
|
203
|
+
blank_message: *no_model
|
|
@@ -63,7 +63,7 @@ en:
|
|
|
63
63
|
forgot_password_sent:
|
|
64
64
|
title: "Forgotten password - E-mail sent"
|
|
65
65
|
heading: "Forgotten password - E-mail sent"
|
|
66
|
-
text: "
|
|
66
|
+
text: "An e-mail with instructions on how you generate a new password has been sent to %{email_address}. If you don't receive this e-mail please check your spamfilter."
|
|
67
67
|
|
|
68
68
|
account_disabled_page:
|
|
69
69
|
title: "Account disabled"
|
|
@@ -137,7 +137,7 @@ en:
|
|
|
137
137
|
# default hobo collection translation
|
|
138
138
|
collection:
|
|
139
139
|
count: &collection_count
|
|
140
|
-
zero: "No %{model}"
|
|
140
|
+
zero: &no_model "No %{model}"
|
|
141
141
|
one: "There is only one %{model} at the moment"
|
|
142
142
|
other: "There are already %{count} %{model}"
|
|
143
143
|
# you can use the following to completely override the collection heading
|
|
@@ -155,7 +155,7 @@ en:
|
|
|
155
155
|
error:
|
|
156
156
|
heading: "The following error occured:"
|
|
157
157
|
select_many:
|
|
158
|
-
|
|
158
|
+
prompt: "Add %{model}"
|
|
159
159
|
|
|
160
160
|
# hobo support
|
|
161
161
|
support:
|
|
@@ -186,3 +186,9 @@ en:
|
|
|
186
186
|
boolean_yes: "Yes"
|
|
187
187
|
boolean_no: "No"
|
|
188
188
|
password_hidden: "[password hidden]"
|
|
189
|
+
|
|
190
|
+
in_place_editor:
|
|
191
|
+
click_to_edit: "(click to edit)"
|
|
192
|
+
|
|
193
|
+
select_one_editor:
|
|
194
|
+
blank_message: *no_model
|
|
@@ -144,7 +144,7 @@ es:
|
|
|
144
144
|
# default hobo collection translation
|
|
145
145
|
collection:
|
|
146
146
|
count: &collection_count
|
|
147
|
-
zero: "No hay %{model}"
|
|
147
|
+
zero: &no_model "No hay %{model}"
|
|
148
148
|
one: "Hay solo 1 %{model}"
|
|
149
149
|
other: "Hay %{count} %{model}"
|
|
150
150
|
# you can use the following to completely override the collection heading
|
|
@@ -193,3 +193,9 @@ es:
|
|
|
193
193
|
boolean_yes: "Si"
|
|
194
194
|
boolean_no: "No"
|
|
195
195
|
password_hidden: "[contraseña]"
|
|
196
|
+
|
|
197
|
+
in_place_editor:
|
|
198
|
+
click_to_edit: "(haga clic para editar)"
|
|
199
|
+
|
|
200
|
+
select_one_editor:
|
|
201
|
+
blank_message: *no_model
|
|
@@ -143,7 +143,7 @@ it:
|
|
|
143
143
|
# default hobo collection translation
|
|
144
144
|
collection:
|
|
145
145
|
count: &collection_count
|
|
146
|
-
zero: "Non ci sono %{model}"
|
|
146
|
+
zero: &no_model "Non ci sono %{model}"
|
|
147
147
|
one: "C'è solo 1 %{model}"
|
|
148
148
|
other: "Ci sono %{count} %{model}"
|
|
149
149
|
|
|
@@ -193,3 +193,9 @@ it:
|
|
|
193
193
|
boolean_yes: "Si"
|
|
194
194
|
boolean_no: "No"
|
|
195
195
|
password_hidden: "[parola chiave]"
|
|
196
|
+
|
|
197
|
+
in_place_editor:
|
|
198
|
+
click_to_edit: "cliccare per modificare"
|
|
199
|
+
|
|
200
|
+
select_one_editor:
|
|
201
|
+
blank_message: *no_model
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
# default hobo collection translation
|
|
139
139
|
collection:
|
|
140
140
|
count: &collection_count
|
|
141
|
-
zero: "Não há %{model}
|
|
141
|
+
zero: &no_model "Não há %{model}"
|
|
142
142
|
one: "Só existe um(a) #{model} do momento"
|
|
143
|
-
other: "Já existem %{count} %{model}
|
|
143
|
+
other: "Já existem %{count} %{model}"
|
|
144
144
|
# you can use the following to completely override the collection heading
|
|
145
145
|
# be aware that you will loose the automatic Your <collection> / Jom's <collection>
|
|
146
146
|
# default output for User models
|
|
@@ -187,3 +187,9 @@
|
|
|
187
187
|
boolean_yes: "Sim"
|
|
188
188
|
boolean_no: "Não"
|
|
189
189
|
password_hidden: "[palavra-chave]"
|
|
190
|
+
|
|
191
|
+
in_place_editor:
|
|
192
|
+
click_to_edit: "(clique para editar)"
|
|
193
|
+
|
|
194
|
+
select_one_editor:
|
|
195
|
+
blank_message: *no_model
|
|
@@ -142,9 +142,9 @@ ru:
|
|
|
142
142
|
# default hobo collection translation
|
|
143
143
|
collection:
|
|
144
144
|
count: &collection_count
|
|
145
|
-
zero: "Нет %{model}
|
|
145
|
+
zero: &no_model "Нет %{model}"
|
|
146
146
|
one: "В базе только одна %{model}."
|
|
147
|
-
other: "В базе %{count} %{model}
|
|
147
|
+
other: "В базе %{count} %{model}"
|
|
148
148
|
# you can use the following to completely override the collection heading
|
|
149
149
|
# be aware that you will loose the automatic Your <collection> / Jom's <collection>
|
|
150
150
|
# default output for User models
|
|
@@ -191,3 +191,9 @@ ru:
|
|
|
191
191
|
boolean_yes: "Да"
|
|
192
192
|
boolean_no: "Нет"
|
|
193
193
|
password_hidden: "[пароль скрыт]"
|
|
194
|
+
|
|
195
|
+
in_place_editor:
|
|
196
|
+
click_to_edit: "(нажмите для изменения)"
|
|
197
|
+
|
|
198
|
+
select_one_editor:
|
|
199
|
+
blank_message: *no_model
|
|
@@ -122,7 +122,7 @@ EOI
|
|
|
122
122
|
def dryml_only_templates_option
|
|
123
123
|
if wizard?
|
|
124
124
|
say_title 'Templates Option'
|
|
125
|
-
dryml_only_templates = yes_no?("Will
|
|
125
|
+
dryml_only_templates = yes_no?("Will your application use only hobo/dryml web page templates?\n(Choose 'n' only if you also plan to use plain rails/erb web page templates)")
|
|
126
126
|
else
|
|
127
127
|
dryml_only_templates = options[:dryml_only_templates]
|
|
128
128
|
end
|
data/lib/hobo/controller.rb
CHANGED
|
@@ -68,7 +68,7 @@ module Hobo
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
def ajax_update_response(render_specs, results={})
|
|
71
|
+
def ajax_update_response(render_specs, results={}, options={})
|
|
72
72
|
controller, action = controller_action_from_page_path
|
|
73
73
|
identifier = view_context.view_paths.find( action,
|
|
74
74
|
controller,
|
|
@@ -77,7 +77,7 @@ module Hobo
|
|
|
77
77
|
renderer = Dryml.page_renderer(view_context, identifier, [], controller)
|
|
78
78
|
|
|
79
79
|
render :update do |page|
|
|
80
|
-
page << "var _update = typeof Hobo == 'undefined' ? Element.update : Hobo.updateElement;"
|
|
80
|
+
page << options[:preamble] || "var _update = typeof Hobo == 'undefined' ? Element.update : Hobo.updateElement;"
|
|
81
81
|
for spec in render_specs
|
|
82
82
|
function = spec[:function] || "_update"
|
|
83
83
|
dom_id = spec[:id]
|
|
@@ -93,6 +93,7 @@ module Hobo
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
page << renderer.part_contexts_storage if renderer
|
|
96
|
+
page << options[:postamble] if options[:postamble]
|
|
96
97
|
end
|
|
97
98
|
end
|
|
98
99
|
|
data/lib/hobo/rapid/helper.rb
CHANGED
|
@@ -106,7 +106,8 @@ module Hobo
|
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
def in_place_editor(attributes, this=nil)
|
|
109
|
-
blank_message = attributes.delete(:blank_message) ||
|
|
109
|
+
blank_message = attributes.delete(:blank_message) ||
|
|
110
|
+
t('hobo.in_place_editor.click_to_edit', :default => '(click to edit)')
|
|
110
111
|
|
|
111
112
|
attributes = add_classes(attributes, "in-place-edit", model_id_class(this_parent, this_field))
|
|
112
113
|
attributes.update(:hobo_blank_message => blank_message,
|
|
@@ -94,7 +94,7 @@ This tag does not sanitize HTML; this is provided by HtmlString before saving to
|
|
|
94
94
|
-->
|
|
95
95
|
<def tag="select-one-editor" attrs="include-none, blank-message, sort, update, options"><%
|
|
96
96
|
raise Hobo::Error.new("Not allowed to edit") unless can_edit?
|
|
97
|
-
blank_message ||= "(No #{this_type.name.to_s.titleize})"
|
|
97
|
+
blank_message ||= ht("#{this_type.name.to_s.underscore}.select_one_editor.blank_message", :count => 0, :default => "(No #{this_type.name.to_s.titleize})")
|
|
98
98
|
options ||= this_field_reflection.klass.all.select {|x| can_view?(x)}.map {|x|
|
|
99
99
|
[ name(:with => x, :no_wrapper => true), x.id ]
|
|
100
100
|
}
|
|
@@ -589,7 +589,7 @@ All the standard ajax attributes *except the callbacks* are supported (see the m
|
|
|
589
589
|
else
|
|
590
590
|
fade = true if fade.nil?
|
|
591
591
|
attributes[:value] = label
|
|
592
|
-
attributes[:onclick] = "Hobo.removeButton(this, '#{url}', #{js_updates(update)}, {fade:#{fade}, confirm: #{confirm
|
|
592
|
+
attributes[:onclick] = "Hobo.removeButton(this, '#{url}', #{js_updates(update)}, {fade:#{fade}, confirm: '#{confirm}'})"
|
|
593
593
|
element(:input, attributes, nil, true, true)
|
|
594
594
|
end
|
|
595
595
|
end
|
|
@@ -780,8 +780,16 @@ If you wish to set `min-chars` to 0, you will require this [patch to controls.js
|
|
|
780
780
|
-->
|
|
781
781
|
<def tag="error-messages">
|
|
782
782
|
<section class="error-messages" merge-attrs if="&this.errors.length > 0">
|
|
783
|
-
<h2 param="heading"
|
|
784
|
-
|
|
783
|
+
<h2 param="heading">
|
|
784
|
+
<t key="activerecord.errors.template.header" model="&this.class.model_name.human" count="&this.errors.size">
|
|
785
|
+
<%= model = this.class.model_name.human
|
|
786
|
+
count = this.errors.size
|
|
787
|
+
count==1 ? "1 error prohibited this #{model} from being saved" :
|
|
788
|
+
"#{count} errors prohibited this #{model} from being saved"
|
|
789
|
+
%>
|
|
790
|
+
</t>
|
|
791
|
+
</h2>
|
|
792
|
+
<t key="activerecord.errors.template.body">There were problems with the following fields:</t>
|
|
785
793
|
<ul param>
|
|
786
794
|
<% this.errors.to_a.each do |message| -%>
|
|
787
795
|
<li param><%= message %></li>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<def tag="empty-collection-message">
|
|
21
21
|
<unless test="&this.member_class.nil?">
|
|
22
22
|
<div class="empty-collection-message" style="#{'display:none' if !this.empty?}" param="default">
|
|
23
|
-
<ht key="#{this.member_class.
|
|
23
|
+
<ht key="#{this.member_class.name.underscore}.collection.empty_message">
|
|
24
24
|
No <collection-name/> to display
|
|
25
25
|
</ht>
|
|
26
26
|
</div>
|
|
@@ -113,7 +113,7 @@ This tag assumes the controller has a `reorder` action and the model has a `posi
|
|
|
113
113
|
<ht key="#{model_class.to_s.underscore}.actions.new">New <%= model_class.model_name.human %></ht>
|
|
114
114
|
</a>
|
|
115
115
|
<collection param/>
|
|
116
|
-
<unless test="&this.empty? || this.size
|
|
116
|
+
<unless test="&this.empty? || this.size == model_class.count">
|
|
117
117
|
<a param="show-all"><ht key="#{model_class.to_s.underscore}.actions.show_all" count="100">Show all <%= name.pluralize.titleize %>...</ht></a>
|
|
118
118
|
</unless>
|
|
119
119
|
</section>
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
<!-- the git version currently in use -->
|
|
35
35
|
<def tag="git-version" attrs="dir">
|
|
36
36
|
<% dir=Rails.root if dir.blank? -%>
|
|
37
|
-
<%= Dir.chdir(dir) {`git rev-
|
|
37
|
+
<%= Dir.chdir(dir) {`git rev-parse --verify HEAD --short=7`} -%>
|
|
38
38
|
</def>
|
|
39
39
|
|
|
40
|
-
<!-- returns 'clean' if there are no modified files, '
|
|
40
|
+
<!-- returns 'clean' if there are no modified or added files, 'dirty' otherwise. -->
|
|
41
41
|
<def tag="git-clean" attrs="dir">
|
|
42
42
|
<% dir=Rails.root if dir.blank? -%>
|
|
43
|
-
<%= Dir.chdir(dir) {`git
|
|
43
|
+
<%= Dir.chdir(dir) {`git status -s`}.blank? ? "clean" : "dirty" -%>
|
|
44
44
|
</def>
|
|
45
45
|
|
|
46
46
|
<!-- the time & date of the last commit -->
|
|
47
47
|
<def tag="git-last-commit-time">
|
|
48
|
-
<%= `git log
|
|
48
|
+
<%= `git log -1 --format=%cD` -%>
|
|
49
49
|
</def>
|
|
50
50
|
|
|
51
51
|
<!-- calls `git-clean` or `svn-clean` as appropriate. `svn-clean` not yet written. -->
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hobo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash: -
|
|
4
|
+
hash: -1637108448
|
|
5
5
|
prerelease: true
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 3
|
|
9
9
|
- 0
|
|
10
|
-
-
|
|
11
|
-
version: 1.3.0.
|
|
10
|
+
- pre26
|
|
11
|
+
version: 1.3.0.pre26
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Tom Locke
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date:
|
|
19
|
+
date: 2011-01-22 00:00:00 -04:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -59,13 +59,13 @@ dependencies:
|
|
|
59
59
|
requirements:
|
|
60
60
|
- - "="
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
hash: -
|
|
62
|
+
hash: -1637108448
|
|
63
63
|
segments:
|
|
64
64
|
- 1
|
|
65
65
|
- 3
|
|
66
66
|
- 0
|
|
67
|
-
-
|
|
68
|
-
version: 1.3.0.
|
|
67
|
+
- pre26
|
|
68
|
+
version: 1.3.0.pre26
|
|
69
69
|
type: :runtime
|
|
70
70
|
version_requirements: *id003
|
|
71
71
|
- !ruby/object:Gem::Dependency
|
|
@@ -76,13 +76,13 @@ dependencies:
|
|
|
76
76
|
requirements:
|
|
77
77
|
- - "="
|
|
78
78
|
- !ruby/object:Gem::Version
|
|
79
|
-
hash: -
|
|
79
|
+
hash: -1637108448
|
|
80
80
|
segments:
|
|
81
81
|
- 1
|
|
82
82
|
- 3
|
|
83
83
|
- 0
|
|
84
|
-
-
|
|
85
|
-
version: 1.3.0.
|
|
84
|
+
- pre26
|
|
85
|
+
version: 1.3.0.pre26
|
|
86
86
|
type: :runtime
|
|
87
87
|
version_requirements: *id004
|
|
88
88
|
- !ruby/object:Gem::Dependency
|
|
@@ -93,13 +93,13 @@ dependencies:
|
|
|
93
93
|
requirements:
|
|
94
94
|
- - "="
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
hash: -
|
|
96
|
+
hash: -1637108448
|
|
97
97
|
segments:
|
|
98
98
|
- 1
|
|
99
99
|
- 3
|
|
100
100
|
- 0
|
|
101
|
-
-
|
|
102
|
-
version: 1.3.0.
|
|
101
|
+
- pre26
|
|
102
|
+
version: 1.3.0.pre26
|
|
103
103
|
type: :runtime
|
|
104
104
|
version_requirements: *id005
|
|
105
105
|
- !ruby/object:Gem::Dependency
|
|
@@ -193,11 +193,13 @@ files:
|
|
|
193
193
|
- lib/generators/hobo/front_controller/templates/controller.rb.erb
|
|
194
194
|
- lib/generators/hobo/front_controller/templates/index.dryml
|
|
195
195
|
- lib/generators/hobo/i18n/i18n_generator.rb
|
|
196
|
+
- lib/generators/hobo/i18n/templates/app.de.yml
|
|
196
197
|
- lib/generators/hobo/i18n/templates/app.en.yml
|
|
197
198
|
- lib/generators/hobo/i18n/templates/app.es.yml
|
|
198
199
|
- lib/generators/hobo/i18n/templates/app.it.yml
|
|
199
200
|
- lib/generators/hobo/i18n/templates/app.pt-PT.yml
|
|
200
201
|
- lib/generators/hobo/i18n/templates/app.ru.yml
|
|
202
|
+
- lib/generators/hobo/i18n/templates/hobo.de.yml
|
|
201
203
|
- lib/generators/hobo/i18n/templates/hobo.en.yml
|
|
202
204
|
- lib/generators/hobo/i18n/templates/hobo.es.yml
|
|
203
205
|
- lib/generators/hobo/i18n/templates/hobo.it.yml
|