0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

Serialiser and css tweaks

Dieser Commit ist enthalten in:
Angus McLeod 2017-11-22 18:35:43 +08:00
Ursprung b45d26c143
Commit ce29654f0f
2 geänderte Dateien mit 2 neuen und 12 gelöschten Zeilen

Datei anzeigen

@ -19,7 +19,7 @@
} }
.image-container { .image-container {
margin: 30px 0; margin: 50px 0;
padding: 0 40px; padding: 0 40px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;

Datei anzeigen

@ -71,9 +71,7 @@ end
end end
def include_completed? def include_completed?
object.completed? && object.completed? && (!object.respond_to?(:multiple_submissions) || !object.multiple_submissions)
(!object.respond_to?(:multiple_submissions) || !object.multiple_submissions) &&
!scope.current_user.admin?
end end
def include_start? def include_start?
@ -91,14 +89,6 @@ end
def include_required? def include_required?
object.respond_to?(:required) object.respond_to?(:required)
end end
def prompt_completion
object.prompt_completion
end
def include_prompt_completion?
object.respond_to?(:prompt_completion)
end
end end
::WizardStepSerializer.class_eval do ::WizardStepSerializer.class_eval do