aureus 1.3.1 → 2.1.0
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/.gitignore +4 -1
- data/Gemfile +9 -8
- data/Gemfile.lock +105 -104
- data/README.md +80 -0
- data/Rakefile +3 -16
- data/app/assets/javascripts/aureus/index.js +78 -20
- data/app/assets/stylesheets/aureus/index.scss +3 -35
- data/app/assets/stylesheets/aureus/skin/default.scss +52 -0
- data/app/assets/stylesheets/aureus/theme.scss +7 -0
- data/app/assets/stylesheets/aureus/theme/base.scss +19 -0
- data/app/assets/stylesheets/aureus/theme/content.scss +65 -0
- data/app/assets/stylesheets/aureus/{form.scss → theme/form.scss} +27 -27
- data/app/assets/stylesheets/aureus/theme/messages.scss +16 -0
- data/app/assets/stylesheets/aureus/theme/navigation.scss +42 -0
- data/app/assets/stylesheets/aureus/theme/table.scss +121 -0
- data/app/assets/stylesheets/aureus/theme/toolbar.scss +80 -0
- data/aureus.gemspec +21 -12
- data/config.ru +10 -0
- data/lib/aureus.rb +22 -18
- data/lib/aureus/components/box.rb +58 -0
- data/lib/aureus/components/content.rb +19 -0
- data/lib/aureus/components/data_table.rb +169 -0
- data/lib/aureus/components/listing.rb +43 -0
- data/lib/aureus/components/messages.rb +27 -0
- data/lib/aureus/components/navigation.rb +48 -0
- data/lib/aureus/components/row.rb +69 -0
- data/lib/aureus/components/simple_map.rb +21 -0
- data/lib/aureus/components/toolbar.rb +124 -0
- data/lib/aureus/engine.rb +8 -2
- data/lib/aureus/helper.rb +56 -55
- data/lib/aureus/renderable.rb +4 -12
- data/lib/aureus/version.rb +2 -2
- data/lib/generators/aureus/devise_i18n/devise_i18n_generator.rb +17 -12
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_base.de.yml +0 -0
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_base.en.yml +1 -1
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_mail.de.yml +1 -1
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_mail.en.yml +1 -1
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_ui.de.yml +0 -0
- data/{config → lib/generators/aureus/devise_i18n}/locales/devise_ui.en.yml +0 -0
- data/lib/generators/aureus/devise_invitable_i18n/devise_invitable_i18n_generator.rb +25 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.de.yml +11 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_base.en.yml +11 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.de.yml +9 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_mail.en.yml +9 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.de.yml +12 -0
- data/lib/generators/aureus/devise_invitable_i18n/locales/devise_invitable_ui.en.yml +12 -0
- data/lib/generators/aureus/devise_invitable_views/devise_invitable_views_generator.rb +23 -0
- data/lib/generators/aureus/devise_invitable_views/templates/devise/invitations/edit.html.haml +9 -0
- data/lib/generators/aureus/devise_invitable_views/templates/devise/invitations/new.html.haml +8 -0
- data/lib/generators/aureus/devise_invitable_views/templates/devise/mailer/invitation_instructions.html.haml +5 -0
- data/lib/generators/aureus/devise_views/devise_views_generator.rb +17 -15
- data/lib/generators/aureus/devise_views/templates/devise/confirmations/new.html.haml +5 -5
- data/lib/generators/aureus/devise_views/templates/devise/mailer/confirmation_instructions.html.haml +3 -3
- data/lib/generators/aureus/devise_views/templates/devise/mailer/reset_password_instructions.html.haml +5 -5
- data/lib/generators/aureus/devise_views/templates/devise/mailer/unlock_instructions.html.haml +4 -4
- data/lib/generators/aureus/devise_views/templates/devise/passwords/edit.html.haml +7 -7
- data/lib/generators/aureus/devise_views/templates/devise/passwords/new.html.haml +5 -5
- data/lib/generators/aureus/devise_views/templates/devise/registrations/edit.html.haml +9 -9
- data/lib/generators/aureus/devise_views/templates/devise/registrations/new.html.haml +7 -7
- data/lib/generators/aureus/devise_views/templates/devise/sessions/new.html.haml +7 -7
- data/lib/generators/aureus/devise_views/templates/devise/shared/_links.html.haml +6 -6
- data/lib/generators/aureus/devise_views/templates/devise/unlocks/new.html.haml +5 -5
- data/lib/generators/aureus/layout/layout_generator.rb +10 -10
- data/lib/generators/aureus/layout/templates/layout.html.haml +8 -8
- data/lib/generators/aureus/views/templates/views/_form.html.haml +3 -3
- data/lib/generators/aureus/views/templates/views/_item.html.haml +2 -2
- data/lib/generators/aureus/views/templates/views/_list.html.haml +8 -8
- data/lib/generators/aureus/views/templates/views/edit.html.haml +4 -4
- data/lib/generators/aureus/views/templates/views/index.html.haml +3 -3
- data/lib/generators/aureus/views/templates/views/new.html.haml +4 -4
- data/lib/generators/aureus/views/templates/views/show.html.haml +4 -4
- data/lib/generators/aureus/views/views_generator.rb +70 -68
- data/spec/controllers/all_spec.rb +19 -0
- data/spec/internal/app/assets/javascripts/application.js +9 -0
- data/spec/internal/app/assets/stylesheets/application.scss +5 -0
- data/spec/internal/app/controllers/all_controller.rb +14 -0
- data/spec/internal/app/controllers/resources_controller.rb +2 -0
- data/spec/{lib/helper → internal/app/models}/resource.rb +0 -0
- data/spec/internal/app/views/all/centered.html.haml +5 -0
- data/spec/internal/app/views/all/index.html.haml +39 -0
- data/spec/internal/app/views/layouts/application.html.haml +24 -0
- data/spec/internal/app/views/layouts/naked.html.haml +10 -0
- data/spec/internal/config/database.yml +3 -0
- data/spec/internal/config/routes.rb +5 -0
- data/spec/internal/db/schema.rb +10 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/lib/generators/devise_i18n_spec.rb +19 -0
- data/spec/lib/generators/devise_invitable_i18n_spec.rb +19 -0
- data/spec/lib/generators/devise_invitable_views_spec.rb +19 -0
- data/spec/lib/generators/devise_views_spec.rb +25 -0
- data/spec/lib/generators/layout_spec.rb +17 -0
- data/spec/lib/generators/views_spec.rb +26 -0
- data/spec/requests/all_spec.rb +12 -0
- data/spec/spec_helper.rb +15 -0
- metadata +219 -78
- data/.rspec +0 -2
- data/Guardfile +0 -4
- data/Readme.md +0 -370
- data/TODO.md +0 -11
- data/app/assets/images/aureus/background.png +0 -0
- data/app/assets/images/aureus/topbar.png +0 -0
- data/app/assets/javascripts/aureus/defaults.js +0 -30
- data/app/assets/javascripts/aureus/extensions.js +0 -42
- data/app/assets/javascripts/aureus/functions.js +0 -67
- data/app/assets/javascripts/aureus/plugins/jquery-calendrical.js +0 -508
- data/app/assets/javascripts/aureus/plugins/jquery-datatables.js +0 -11838
- data/app/assets/javascripts/aureus/plugins/jquery-qtip.js +0 -15
- data/app/assets/stylesheets/aureus/base.scss +0 -48
- data/app/assets/stylesheets/aureus/content.scss +0 -100
- data/app/assets/stylesheets/aureus/mixins.scss +0 -43
- data/app/assets/stylesheets/aureus/navigation.scss +0 -43
- data/app/assets/stylesheets/aureus/reset.scss +0 -50
- data/app/assets/stylesheets/aureus/table.scss +0 -153
- data/app/assets/stylesheets/aureus/topbar.scss +0 -89
- data/app/assets/stylesheets/aureus/ui.scss +0 -98
- data/lib/aureus/box.rb +0 -54
- data/lib/aureus/content.rb +0 -15
- data/lib/aureus/data_table.rb +0 -148
- data/lib/aureus/listing.rb +0 -39
- data/lib/aureus/map.rb +0 -17
- data/lib/aureus/messages.rb +0 -23
- data/lib/aureus/navigation.rb +0 -42
- data/lib/aureus/row.rb +0 -65
- data/lib/aureus/toolbar.rb +0 -99
- data/spec/lib/helper/schema.rb +0 -6
- data/spec/lib/render_spec.rb +0 -16
- data/spec/lib/spec_helper.rb +0 -21
- data/spec/lib/views/box.haml +0 -14
- data/spec/lib/views/content.haml +0 -2
- data/spec/lib/views/datatable.haml +0 -11
- data/spec/lib/views/listing.haml +0 -5
- data/spec/lib/views/messages.haml +0 -2
- data/spec/lib/views/navigation.haml +0 -4
- data/spec/lib/views/row.haml +0 -28
- data/spec/lib/views/toolbar.haml +0 -11
data/.rspec
DELETED
data/Guardfile
DELETED
data/Readme.md
DELETED
@@ -1,370 +0,0 @@
|
|
1
|
-
# Aureus
|
2
|
-
|
3
|
-
**a nice looking framework for your rails admin interfaces**
|
4
|
-
|
5
|
-
Aureus is a tool to quickly generate admin interfaces for a rails app. It's between scaffolding and tools like ActiveAdmin.
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
To use **aureus** simply require the gem:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem "aureus"
|
13
|
-
```
|
14
|
-
|
15
|
-
Please activate the following dependencies in your Gemfile:
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
gem "formtastic"
|
19
|
-
gem "haml"
|
20
|
-
gem "jquery-rails"
|
21
|
-
gem "sass-rails"
|
22
|
-
```
|
23
|
-
|
24
|
-
And optionally activate:
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
gem "i18n-js", :git => "git://github.com/fnando/i18n-js.git", :branch => "rewrite" # for js translations
|
28
|
-
```
|
29
|
-
|
30
|
-
### Asset Pipeline
|
31
|
-
|
32
|
-
Aureus uses the rails asset pipeline to load and override the style and behavior.
|
33
|
-
|
34
|
-
This is the basic application.scss setup:
|
35
|
-
|
36
|
-
```scss
|
37
|
-
/*
|
38
|
-
*= require_self
|
39
|
-
*= depend_on aureus
|
40
|
-
*= require_tree .
|
41
|
-
*/
|
42
|
-
|
43
|
-
$color_main: #0f0;
|
44
|
-
$color_warn: #f00;
|
45
|
-
|
46
|
-
@import "aureus";
|
47
|
-
```
|
48
|
-
|
49
|
-
Setup application.js to match the given order:
|
50
|
-
|
51
|
-
```javascript
|
52
|
-
//= require jquery
|
53
|
-
//= require jquery_ujs
|
54
|
-
//= require jquery-ui
|
55
|
-
//= require i18n/translations
|
56
|
-
//= require_self
|
57
|
-
//= require aureus
|
58
|
-
//= require_tree .
|
59
|
-
|
60
|
-
$(document).ready(function(){
|
61
|
-
aureus_remove_messages_after(2);
|
62
|
-
aureus_setup_i18n("<%= I18n.default_locale %>","<%= I18n.locale %>");
|
63
|
-
aureus_datatables_translate();
|
64
|
-
aureus_datatables_decorate();
|
65
|
-
});
|
66
|
-
```
|
67
|
-
|
68
|
-
You can now start using the aureus framework to rapidly build awesome interfaces!
|
69
|
-
|
70
|
-
## Helpers
|
71
|
-
|
72
|
-
There are several helper methods available to generate the interface:
|
73
|
-
|
74
|
-
```haml
|
75
|
-
// Toolbar
|
76
|
-
= aureus_toolbar "A nice title" do |t|
|
77
|
-
- t.left do |l|
|
78
|
-
- l.link_to "root", root_url
|
79
|
-
- l.link_to "an anchor", an_anchor_url
|
80
|
-
- l.info "cool"
|
81
|
-
- l.dropdown "a caption" do |d|
|
82
|
-
- d.link_to "an anchor", an_anchor_url
|
83
|
-
- t.right do |r|
|
84
|
-
- r.info "some info"
|
85
|
-
- r.link_to "an anchor", some_other_controller_url
|
86
|
-
|
87
|
-
// Navigation
|
88
|
-
= aureus_navigation do |n|
|
89
|
-
- n.title "the title"
|
90
|
-
- n.button link_to("target name",some_cool_url) if can? :read, Stuff
|
91
|
-
- n.submit_form_button @post, "save"
|
92
|
-
|
93
|
-
// Flash messages
|
94
|
-
= aureus_messages flash
|
95
|
-
|
96
|
-
// Content wrapper for layout
|
97
|
-
= aureus_content yield
|
98
|
-
|
99
|
-
// Grid system (with automatic proportion calculation)
|
100
|
-
= aureus_row do
|
101
|
-
%strong only wrapper
|
102
|
-
= aureus_row do |r|
|
103
|
-
- r.column 100 do
|
104
|
-
.one-column
|
105
|
-
= aureus_row do |r|
|
106
|
-
- r.column 2 do # two '2 width' colums are the same like 50 / 50
|
107
|
-
.first
|
108
|
-
- r.space 2
|
109
|
-
= aureus_row do |r|
|
110
|
-
- r.column 25 do
|
111
|
-
.first
|
112
|
-
- r.column 25 do
|
113
|
-
.second
|
114
|
-
- r.column 50 do
|
115
|
-
.third
|
116
|
-
|
117
|
-
// Boxes
|
118
|
-
= aureus_box "a title" do
|
119
|
-
%strong content
|
120
|
-
= aureus_box "a title", :centered => true, :for => :form do
|
121
|
-
%li a entry
|
122
|
-
= aureus_box "a title" do |b|
|
123
|
-
- b.button link_to("a button",cool_controller_url)
|
124
|
-
- b.content do
|
125
|
-
%strong the content
|
126
|
-
- b.foot do
|
127
|
-
%strong the footer
|
128
|
-
|
129
|
-
// Datatables
|
130
|
-
= aureus_datatable @resources do |t|
|
131
|
-
- t.head do |h|
|
132
|
-
- h.text "Title"
|
133
|
-
- h.text "Text"
|
134
|
-
- h.date "Date"
|
135
|
-
- h.raw "Raw"
|
136
|
-
- t.row do |r,res|
|
137
|
-
- r.cell res.title
|
138
|
-
- r.cell res.text
|
139
|
-
- r.cell res.date
|
140
|
-
- r.cell res.unsortable_data
|
141
|
-
- r.button :show, "url" if can? :show, Resource
|
142
|
-
- r.button :edit, "url"
|
143
|
-
- r.button :destroy, "url", :confirm => "Delete user?"
|
144
|
-
- r.button_raw link_to("a action",the_action_url, :class => ["icon","my-icon"])
|
145
|
-
|
146
|
-
// Forms
|
147
|
-
= aureus_form [@parent,@resource] do |f|
|
148
|
-
= f.input :name # formtastic is here
|
149
|
-
|
150
|
-
// Listings
|
151
|
-
= aureus_listing do |l|
|
152
|
-
- l.entry "head", "body"
|
153
|
-
- l.entry "head2" do
|
154
|
-
%strong body2
|
155
|
-
|
156
|
-
// Maps (Google Maps iFrame)
|
157
|
-
= aureus_map :longitude => 12, :latitude => 6
|
158
|
-
```
|
159
|
-
|
160
|
-
## Javascript Helpers
|
161
|
-
|
162
|
-
There are several Javascript helpers for certain actions:
|
163
|
-
|
164
|
-
```javascript
|
165
|
-
// remove flash messages automatically after 3 seconds
|
166
|
-
aureus_remove_messages_after(3);
|
167
|
-
|
168
|
-
// setup i18n for js
|
169
|
-
aureus_setup_i18n("<%= I18n.default_locale %>","<%= I18n.locale %>");
|
170
|
-
|
171
|
-
// translate datatables with i18n
|
172
|
-
aureus_datatables_translate();
|
173
|
-
|
174
|
-
// transform datatables in given actual document
|
175
|
-
aureus_datatables_decorate();
|
176
|
-
```
|
177
|
-
|
178
|
-
## Generators
|
179
|
-
|
180
|
-
Aureus has a bunch of generators builtin to easily generate a complete interface.
|
181
|
-
|
182
|
-
### Layout
|
183
|
-
|
184
|
-
To generate a base layout issue `rails g aureus:layout layout_name` which produces:
|
185
|
-
|
186
|
-
```haml
|
187
|
-
!!! 5
|
188
|
-
%html
|
189
|
-
%head
|
190
|
-
%meta{ :charset => "utf-8" }/
|
191
|
-
%title= t(".title")
|
192
|
-
= stylesheet_link_tag "application"
|
193
|
-
= javascript_include_tag "application"
|
194
|
-
= csrf_meta_tag
|
195
|
-
%body
|
196
|
-
= aureus_toolbar t(".title") do |t|
|
197
|
-
- t.left do |l|
|
198
|
-
- l.link_to t(".root"), root_url
|
199
|
-
- t.right do |r|
|
200
|
-
- r.info "info"
|
201
|
-
= yield :navigation
|
202
|
-
= aureus_messages flash
|
203
|
-
= aureus_content yield
|
204
|
-
```
|
205
|
-
|
206
|
-
Add the I18n keys to your en.yml.
|
207
|
-
|
208
|
-
---
|
209
|
-
|
210
|
-
refactoring
|
211
|
-
|
212
|
-
---
|
213
|
-
|
214
|
-
### Views
|
215
|
-
|
216
|
-
The awesome thing about aureus is the following generator `rails g aureus:views Resource ResourcesController` which generates all views and i18n files for you. It uses your ActiveRecord model to determine all attributes and uses the controller name for proper folders. The above command will generate:
|
217
|
-
|
218
|
-
#### app/views/resources/index.html.haml
|
219
|
-
|
220
|
-
```haml
|
221
|
-
- content_for :navigation do
|
222
|
-
= aureus_navigation do |n|
|
223
|
-
- n.title t(".title")
|
224
|
-
- n.button link_to(t(".button_new"), new_resource_url) if can? :create, Resource
|
225
|
-
|
226
|
-
= render "list"
|
227
|
-
```
|
228
|
-
|
229
|
-
#### app/views/resources/show.html.haml
|
230
|
-
|
231
|
-
```haml
|
232
|
-
- content_for :navigation do
|
233
|
-
= aureus_navigation do |n|
|
234
|
-
- n.title t(".title")
|
235
|
-
- n.button link_to(t(".button_edit"), edit_resource_url(@resource)) if can? :update, Resource
|
236
|
-
- n.button link_to(t(".button_back"),resources_url) if can? :index, Resource
|
237
|
-
|
238
|
-
= render "item"
|
239
|
-
```
|
240
|
-
|
241
|
-
#### app/views/resources/new.html.haml
|
242
|
-
|
243
|
-
```haml
|
244
|
-
- content_for :navigation do
|
245
|
-
= aureus_navigation do |n|
|
246
|
-
- n.title t(".title")
|
247
|
-
- n.button link_to(t(".button_cancel"), resources_url) if can? :index, Resource
|
248
|
-
- n.submit_form_button @resource, t(".button_save") if can? :create, Resource
|
249
|
-
|
250
|
-
= render "form"
|
251
|
-
```
|
252
|
-
|
253
|
-
#### app/views/resources/edit.html.haml
|
254
|
-
|
255
|
-
```haml
|
256
|
-
- content_for :navigation do
|
257
|
-
= aureus_navigation do |n|
|
258
|
-
- n.title t(".title")
|
259
|
-
- n.button link_to t(".button_cancel"), resources_url if can? :show, Resource
|
260
|
-
- n.submit_form_button @resource, t(".button_save") if can? :update, Resource
|
261
|
-
|
262
|
-
= render "form"
|
263
|
-
```
|
264
|
-
|
265
|
-
#### app/views/resources/_list.html.haml
|
266
|
-
|
267
|
-
```haml
|
268
|
-
= aureus_row do
|
269
|
-
= aureus_box t(".box_title") do
|
270
|
-
= aureus_datatable @resources do |t|
|
271
|
-
- t.head do |h|
|
272
|
-
- h.text t(".column_id")
|
273
|
-
- h.text t(".column_name")
|
274
|
-
- h.text t(".column_body")
|
275
|
-
- h.text t(".column_description")
|
276
|
-
- h.text t(".column_created_at")
|
277
|
-
- h.text t(".column_updated_at")
|
278
|
-
- t.row do |r,resource|
|
279
|
-
- r.cell resource.id
|
280
|
-
- r.cell resource.name
|
281
|
-
- r.cell resource.body
|
282
|
-
- r.cell resource.description
|
283
|
-
- r.cell resource.created_at
|
284
|
-
- r.cell resource.updated_at
|
285
|
-
- r.button :show, resource_url(resource) if can? :show, Resource
|
286
|
-
- r.button :edit, edit_resource_url(resource) if can? :edit, Resource
|
287
|
-
- r.button :destroy, resource_url(resource), :confirm => t(".destroy_confirm") if can? :destroy, Resource
|
288
|
-
```
|
289
|
-
|
290
|
-
#### app/views/resources/_form.html.haml
|
291
|
-
|
292
|
-
```haml
|
293
|
-
= aureus_form [@resource] do |f|
|
294
|
-
= aureus_row do |r|
|
295
|
-
- r.column 25 do
|
296
|
-
= aureus_box t(".box_title"), :for => :form do
|
297
|
-
= f.input :name, :label => t(".field_name")
|
298
|
-
= f.input :body, :label => t(".field_body")
|
299
|
-
= f.input :description, :label => t(".field_description")
|
300
|
-
- r.space 75
|
301
|
-
```
|
302
|
-
|
303
|
-
#### app/views/resources/_item.html.haml
|
304
|
-
|
305
|
-
```haml
|
306
|
-
= aureus_row do |r|
|
307
|
-
- r.column 25 do
|
308
|
-
= aureus_box t(".box_title") do
|
309
|
-
= aureus_listing do |l|
|
310
|
-
- l.entry t(".entry_id"), @resource.id
|
311
|
-
- l.entry t(".entry_name"), @resource.name
|
312
|
-
- l.entry t(".entry_body"), @resource.body
|
313
|
-
- l.entry t(".entry_description"), @resource.description
|
314
|
-
- l.entry t(".entry_created_at"), @resource.created_at
|
315
|
-
- l.entry t(".entry_updated_at"), @resource.updated_at
|
316
|
-
- r.space 75
|
317
|
-
```
|
318
|
-
|
319
|
-
#### config/locales/resources.en.yml
|
320
|
-
|
321
|
-
```yml
|
322
|
-
en:
|
323
|
-
resources:
|
324
|
-
index:
|
325
|
-
title: Resources
|
326
|
-
button_new: Add Resource
|
327
|
-
new:
|
328
|
-
title: New Resource
|
329
|
-
button_cancel: Cancel
|
330
|
-
button_save: Save
|
331
|
-
edit:
|
332
|
-
title: Edit Resource
|
333
|
-
button_cancel: Cancel
|
334
|
-
button_save: Save
|
335
|
-
form:
|
336
|
-
box_title: Details
|
337
|
-
field_id: Id
|
338
|
-
field_name: Name
|
339
|
-
field_body: Body
|
340
|
-
field_description: Description
|
341
|
-
field_created_at: Created At
|
342
|
-
field_updated_at: Updated At
|
343
|
-
list:
|
344
|
-
box_title: Resources Listing
|
345
|
-
destroy_confirm: Really want to delete the Resource?
|
346
|
-
column_id: Id
|
347
|
-
column_name: Name
|
348
|
-
column_body: Body
|
349
|
-
column_description: Description
|
350
|
-
column_created_at: Created At
|
351
|
-
column_updated_at: Updated At
|
352
|
-
show:
|
353
|
-
title: Resource
|
354
|
-
button_edit: Edit Resource
|
355
|
-
button_back: Back
|
356
|
-
item:
|
357
|
-
box_title: Details
|
358
|
-
entry_id: Id
|
359
|
-
entry_name: Name
|
360
|
-
entry_body: Body
|
361
|
-
entry_description: Description
|
362
|
-
entry_created_at: Created At
|
363
|
-
entry_updated_at: Updated At
|
364
|
-
```
|
365
|
-
|
366
|
-
### Devise
|
367
|
-
|
368
|
-
Therer are serveral generators to nicely integrate devise with aureus.
|
369
|
-
|
370
|
-
Use `rails g aureus:devise_views folder` where folder is basically devise or namespace/devise, to generate aureus compatible devise views. These views are all set with I18n keys so you need to generate them too: `rails g aureus:devise_i18n` which generates 3 files with all keys set in english. Remove your devise.en.yml to have no duplication.
|
data/TODO.md
DELETED
Binary file
|
Binary file
|
@@ -1,30 +0,0 @@
|
|
1
|
-
var aureus_datatable_language_config = {
|
2
|
-
sSearch : "Search:",
|
3
|
-
sLengthMenu: "Show _MENU_ entries per page",
|
4
|
-
sZeroRecords: "No data found",
|
5
|
-
sInfo: "Show _START_-_END_ from _TOTAL_ entries",
|
6
|
-
sInfoEmpty: "Show 0 entries",
|
7
|
-
sInfoFiltered: "(total _MAX entries)"
|
8
|
-
};
|
9
|
-
|
10
|
-
// var aureus_datepicker_config = {
|
11
|
-
// dayNamesMin: ["So","Mo","Di","Mi","Do","Fr","Sa"],
|
12
|
-
// monthNames: ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","December"],
|
13
|
-
// nextText: "→",
|
14
|
-
// prevText: "←",
|
15
|
-
// dateFormat: "yy-mm-dd",
|
16
|
-
// firstDay: 1,
|
17
|
-
// }
|
18
|
-
|
19
|
-
// var aureus_timepicker_config = {
|
20
|
-
// isoTime: true,
|
21
|
-
// minTime: { hour: 6, minute: 0 },
|
22
|
-
// maxTime: { hour: 22, minute: 0 },
|
23
|
-
// timInterval: 30
|
24
|
-
// }
|
25
|
-
|
26
|
-
// var aureus_tooltip_config = {
|
27
|
-
// background: "none",
|
28
|
-
// color: "black",
|
29
|
-
// border: "none"
|
30
|
-
// }
|
@@ -1,42 +0,0 @@
|
|
1
|
-
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
|
2
|
-
"date-eu-pre": function ( date ) {
|
3
|
-
var date = date.replace(" ", "");
|
4
|
-
|
5
|
-
if (date.indexOf('.') > 0) {
|
6
|
-
/*date a, format dd.mn.(yyyy) ; (year is optional)*/
|
7
|
-
var eu_date = date.split('.');
|
8
|
-
} else {
|
9
|
-
/*date a, format dd/mn/(yyyy) ; (year is optional)*/
|
10
|
-
var eu_date = date.split('/');
|
11
|
-
}
|
12
|
-
|
13
|
-
/*year (optional)*/
|
14
|
-
if (eu_date[2]) {
|
15
|
-
var year = eu_date[2];
|
16
|
-
} else {
|
17
|
-
var year = 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
/*month*/
|
21
|
-
var month = eu_date[1];
|
22
|
-
if (month.length == 1) {
|
23
|
-
month = 0+month;
|
24
|
-
}
|
25
|
-
|
26
|
-
/*day*/
|
27
|
-
var day = eu_date[0];
|
28
|
-
if (day.length == 1) {
|
29
|
-
day = 0+day;
|
30
|
-
}
|
31
|
-
|
32
|
-
return (year + month + day) * 1;
|
33
|
-
},
|
34
|
-
|
35
|
-
"date-eu-asc": function ( a, b ) {
|
36
|
-
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
|
37
|
-
},
|
38
|
-
|
39
|
-
"date-eu-desc": function ( a, b ) {
|
40
|
-
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
|
41
|
-
}
|
42
|
-
} );
|