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
40
41
42
43
44
45
46
47
|
# File 'app/models/magick_pen/snippet.rb', line 13
def config
{
"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
|