Update logs
Dieser Commit ist enthalten in:
Ursprung
57a19d4f23
Commit
949b28cecb
3 geänderte Dateien mit 19 neuen und 10 gelöschten Zeilen
|
@ -26,9 +26,9 @@
|
|||
{{i18n 'admin.wizard.message.documentation'}}
|
||||
</a>
|
||||
|
||||
<a href="mailto:help@thepavilion.io" target="_blank">
|
||||
{{!--<a href="mailto:help@thepavilion.io" target="_blank">
|
||||
{{i18n 'admin.wizard.message.contact'}}
|
||||
</a>
|
||||
</a>--}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -20,13 +20,10 @@
|
|||
margin-right: 4px;
|
||||
}
|
||||
|
||||
a {
|
||||
padding-left: 10px;
|
||||
|
||||
+ a {
|
||||
border-left: 1px solid $primary-medium;
|
||||
margin-left: 10px;
|
||||
}
|
||||
a + a {
|
||||
border-left: 1px solid $primary-medium;
|
||||
padding-left: 5px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -281,7 +281,19 @@ class CustomWizard::Wizard
|
|||
|
||||
def self.list(user=nil)
|
||||
PluginStoreRow.where(plugin_name: 'custom_wizard').order(:id)
|
||||
.map { |record| self.new(JSON.parse(record.value), user) }
|
||||
.reduce([]) do |result, record|
|
||||
attrs = JSON.parse(record.value)
|
||||
|
||||
if attrs.present? &&
|
||||
attrs.is_a?(Hash) &&
|
||||
attrs['id'].present? &&
|
||||
attrs['name'].present?
|
||||
|
||||
result.push(self.new(attrs, user))
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
def self.save(wizard)
|
||||
|
|
Laden …
In neuem Issue referenzieren