3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'app/models/magick_pen/config.rb', line 3
def self.default
{
date_format: "YYYY/MM/DD HH:mm",
select: {
class: "magick-pen-select",
label: {
version: I18n.t('magick_pen.version'),
original: I18n.t('magick_pen.original'),
current: I18n.t('magick_pen.current'),
}
},
buttons: {
edit: {
class: "btn btn-primary btn-sm button is-primary is-small",
icon: "fas fa-edit",
label: I18n.t('magick_pen.buttons.edit')
},
update: {
class: "btn btn-primary btn-sm button is-primary is-small",
icon: "fas fa-upload",
label:I18n.t('magick_pen.buttons.update')
},
cancel: {
class: "btn btn-secondary btn-sm button is-light is-small",
icon: "fas fa-times",
label: I18n.t('magick_pen.buttons.cancel')
},
preview: {
class: "btn btn-primary btn-sm button is-primary is-small",
icon: "fas fa-eye",
label: I18n.t('magick_pen.buttons.preview')
}
}
}
end
|