2017-09-06 11:21:29 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
describe Instructeurs::AvisController, type: :controller do
|
|
|
|
context 'with a instructeur signed in' do
|
2017-12-22 17:11:56 +01:00
|
|
|
render_views
|
2017-09-06 11:21:29 +02:00
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
let(:claimant) { create(:instructeur) }
|
|
|
|
let(:instructeur) { create(:instructeur) }
|
|
|
|
let(:procedure) { create(:procedure, :published, instructeurs: [instructeur]) }
|
2017-12-22 17:11:56 +01:00
|
|
|
let(:dossier) { create(:dossier, :en_construction, procedure: procedure) }
|
2019-08-06 11:02:54 +02:00
|
|
|
let!(:avis_without_answer) { Avis.create(dossier: dossier, claimant: claimant, instructeur: instructeur) }
|
|
|
|
let!(:avis_with_answer) { Avis.create(dossier: dossier, claimant: claimant, instructeur: instructeur, answer: 'yop') }
|
2017-09-06 11:21:29 +02:00
|
|
|
|
2019-08-07 11:15:16 +02:00
|
|
|
before { sign_in(instructeur.user) }
|
2017-09-06 11:21:29 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#index' do
|
|
|
|
before { get :index }
|
2017-09-06 11:21:29 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(response).to have_http_status(:success) }
|
|
|
|
it { expect(assigns(:avis_a_donner)).to match([avis_without_answer]) }
|
|
|
|
it { expect(assigns(:avis_donnes)).to match([avis_with_answer]) }
|
|
|
|
it { expect(assigns(:statut)).to eq('a-donner') }
|
2017-09-06 11:21:29 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context 'with a statut equal to donnes' do
|
2018-01-23 18:16:44 +01:00
|
|
|
before { get :index, params: { statut: 'donnes' } }
|
2017-09-06 11:21:29 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(assigns(:statut)).to eq('donnes') }
|
|
|
|
end
|
2017-09-06 11:21:29 +02:00
|
|
|
end
|
2017-09-06 11:26:32 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#show' do
|
2018-01-23 18:16:44 +01:00
|
|
|
before { get :show, params: { id: avis_without_answer.id } }
|
2017-09-06 16:14:03 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(response).to have_http_status(:success) }
|
|
|
|
it { expect(assigns(:avis)).to eq(avis_without_answer) }
|
|
|
|
it { expect(assigns(:dossier)).to eq(dossier) }
|
|
|
|
end
|
2017-09-06 17:06:03 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#instruction' do
|
2018-01-23 18:16:44 +01:00
|
|
|
before { get :instruction, params: { id: avis_without_answer.id } }
|
2017-09-06 17:06:03 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(response).to have_http_status(:success) }
|
|
|
|
it { expect(assigns(:avis)).to eq(avis_without_answer) }
|
|
|
|
it { expect(assigns(:dossier)).to eq(dossier) }
|
2017-09-06 16:14:03 +02:00
|
|
|
end
|
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#messagerie' do
|
2018-01-23 18:16:44 +01:00
|
|
|
before { get :messagerie, params: { id: avis_without_answer.id } }
|
2017-09-06 17:06:03 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(response).to have_http_status(:success) }
|
|
|
|
it { expect(assigns(:avis)).to eq(avis_without_answer) }
|
|
|
|
it { expect(assigns(:dossier)).to eq(dossier) }
|
|
|
|
end
|
2017-11-07 17:53:11 +01:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#update' do
|
2019-03-01 17:16:56 +01:00
|
|
|
describe 'without attachment' do
|
|
|
|
before do
|
|
|
|
patch :update, params: { id: avis_without_answer.id, avis: { answer: 'answer' } }
|
|
|
|
avis_without_answer.reload
|
|
|
|
end
|
|
|
|
|
2019-05-16 18:59:34 +02:00
|
|
|
it 'should be ok' do
|
2019-08-06 11:02:54 +02:00
|
|
|
expect(response).to redirect_to(instruction_instructeur_avis_path(avis_without_answer))
|
2019-05-16 18:59:34 +02:00
|
|
|
expect(avis_without_answer.answer).to eq('answer')
|
|
|
|
expect(avis_without_answer.piece_justificative_file).to_not be_attached
|
|
|
|
expect(flash.notice).to eq('Votre réponse est enregistrée.')
|
|
|
|
end
|
2019-03-01 17:16:56 +01:00
|
|
|
end
|
2019-05-16 18:59:34 +02:00
|
|
|
|
2019-03-01 17:16:56 +01:00
|
|
|
describe 'with attachment' do
|
2019-05-16 18:59:34 +02:00
|
|
|
include ActiveJob::TestHelper
|
2019-03-01 17:16:56 +01:00
|
|
|
let(:file) { Rack::Test::UploadedFile.new("./spec/fixtures/files/piece_justificative_0.pdf", 'application/pdf') }
|
|
|
|
|
|
|
|
before do
|
2019-05-16 18:59:34 +02:00
|
|
|
expect(ClamavService).to receive(:safe_file?).and_return(true)
|
|
|
|
perform_enqueued_jobs do
|
|
|
|
post :update, params: { id: avis_without_answer.id, avis: { answer: 'answer', piece_justificative_file: file } }
|
|
|
|
end
|
2019-03-01 17:16:56 +01:00
|
|
|
avis_without_answer.reload
|
|
|
|
end
|
|
|
|
|
2019-05-16 18:59:34 +02:00
|
|
|
it 'should be ok' do
|
2019-08-06 11:02:54 +02:00
|
|
|
expect(response).to redirect_to(instruction_instructeur_avis_path(avis_without_answer))
|
2019-05-16 18:59:34 +02:00
|
|
|
expect(avis_without_answer.answer).to eq('answer')
|
|
|
|
expect(avis_without_answer.piece_justificative_file).to be_attached
|
|
|
|
expect(flash.notice).to eq('Votre réponse est enregistrée.')
|
|
|
|
end
|
2017-12-22 17:11:56 +01:00
|
|
|
end
|
2017-11-07 17:53:11 +01:00
|
|
|
end
|
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#create_commentaire' do
|
|
|
|
let(:file) { nil }
|
|
|
|
let(:scan_result) { true }
|
2017-11-07 17:53:11 +01:00
|
|
|
|
2019-06-25 17:12:44 +02:00
|
|
|
subject { post :create_commentaire, params: { id: avis_without_answer.id, commentaire: { body: 'commentaire body', piece_jointe: file } } }
|
2017-09-06 17:06:03 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
before do
|
|
|
|
allow(ClamavService).to receive(:safe_file?).and_return(scan_result)
|
|
|
|
end
|
2017-11-07 17:53:11 +01:00
|
|
|
|
|
|
|
it do
|
|
|
|
subject
|
2017-12-22 17:11:56 +01:00
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
expect(response).to redirect_to(messagerie_instructeur_avis_path(avis_without_answer))
|
2017-12-22 17:11:56 +01:00
|
|
|
expect(dossier.commentaires.map(&:body)).to match(['commentaire body'])
|
2017-11-07 17:53:11 +01:00
|
|
|
end
|
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context "with a file" do
|
2018-10-16 00:01:53 +02:00
|
|
|
let(:file) { Rack::Test::UploadedFile.new("./spec/fixtures/files/piece_justificative_0.pdf", 'application/pdf') }
|
2017-12-22 17:11:56 +01:00
|
|
|
|
|
|
|
it do
|
|
|
|
subject
|
2019-06-25 17:12:44 +02:00
|
|
|
expect(Commentaire.last.piece_jointe.filename).to eq("piece_justificative_0.pdf")
|
2017-12-22 17:11:56 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
it { expect { subject }.to change(Commentaire, :count).by(1) }
|
2017-11-07 17:53:11 +01:00
|
|
|
end
|
|
|
|
end
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
describe '#create_avis' do
|
2019-08-06 11:02:54 +02:00
|
|
|
let!(:previous_avis) { Avis.create(dossier: dossier, claimant: claimant, instructeur: instructeur, confidentiel: previous_avis_confidentiel) }
|
2018-10-31 20:38:32 +01:00
|
|
|
let(:emails) { ['a@b.com'] }
|
2017-12-22 17:11:56 +01:00
|
|
|
let(:intro) { 'introduction' }
|
|
|
|
let(:created_avis) { Avis.last }
|
2018-10-31 20:38:32 +01:00
|
|
|
let!(:old_avis_count) { Avis.count }
|
2019-08-21 09:09:20 +02:00
|
|
|
let(:invite_linked_dossiers) { nil }
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
before do
|
2019-08-21 09:09:20 +02:00
|
|
|
post :create_avis, params: { id: previous_avis.id, avis: { emails: emails, introduction: intro, confidentiel: asked_confidentiel, invite_linked_dossiers: invite_linked_dossiers } }
|
2017-12-22 17:11:56 +01:00
|
|
|
end
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2018-02-27 16:58:22 +01:00
|
|
|
context 'when an invalid email' do
|
|
|
|
let(:previous_avis_confidentiel) { false }
|
|
|
|
let(:asked_confidentiel) { false }
|
2018-10-31 20:38:32 +01:00
|
|
|
let(:emails) { ["toto.fr"] }
|
2018-02-27 16:58:22 +01:00
|
|
|
|
|
|
|
it { expect(response).to render_template :instruction }
|
2018-10-31 20:38:32 +01:00
|
|
|
it { expect(flash.alert).to eq(["toto.fr : Email n'est pas valide"]) }
|
2018-02-27 16:58:22 +01:00
|
|
|
it { expect(Avis.last).to eq(previous_avis) }
|
|
|
|
end
|
|
|
|
|
2018-10-31 20:38:32 +01:00
|
|
|
context 'with multiple emails' do
|
|
|
|
let(:asked_confidentiel) { false }
|
|
|
|
let(:previous_avis_confidentiel) { false }
|
|
|
|
let(:emails) { ["toto.fr,titi@titimail.com"] }
|
|
|
|
|
|
|
|
it { expect(response).to render_template :instruction }
|
|
|
|
it { expect(flash.alert).to eq(["toto.fr : Email n'est pas valide"]) }
|
|
|
|
it { expect(flash.notice).to eq("Une demande d'avis a été envoyée à titi@titimail.com") }
|
|
|
|
it { expect(Avis.count).to eq(old_avis_count + 1) }
|
|
|
|
it { expect(created_avis.email).to eq("titi@titimail.com") }
|
|
|
|
end
|
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context 'when the previous avis is public' do
|
|
|
|
let(:previous_avis_confidentiel) { false }
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context 'when the user asked for a public avis' do
|
|
|
|
let(:asked_confidentiel) { false }
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(created_avis.confidentiel).to be(false) }
|
2018-10-31 20:38:32 +01:00
|
|
|
it { expect(created_avis.email).to eq(emails.last) }
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(created_avis.introduction).to eq(intro) }
|
|
|
|
it { expect(created_avis.dossier).to eq(previous_avis.dossier) }
|
2019-08-06 11:02:54 +02:00
|
|
|
it { expect(created_avis.claimant).to eq(instructeur) }
|
|
|
|
it { expect(response).to redirect_to(instruction_instructeur_avis_path(previous_avis)) }
|
2017-12-22 17:11:56 +01:00
|
|
|
end
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context 'when the user asked for a confidentiel avis' do
|
|
|
|
let(:asked_confidentiel) { true }
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(created_avis.confidentiel).to be(true) }
|
|
|
|
end
|
2017-09-20 10:52:48 +02:00
|
|
|
end
|
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context 'when the preivous avis is confidentiel' do
|
|
|
|
let(:previous_avis_confidentiel) { true }
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
context 'when the user asked for a public avis' do
|
|
|
|
let(:asked_confidentiel) { false }
|
2017-09-20 10:52:48 +02:00
|
|
|
|
2017-12-22 17:11:56 +01:00
|
|
|
it { expect(created_avis.confidentiel).to be(true) }
|
|
|
|
end
|
2017-09-20 10:52:48 +02:00
|
|
|
end
|
2019-08-21 09:09:20 +02:00
|
|
|
|
|
|
|
context 'with linked dossiers' do
|
|
|
|
let(:asked_confidentiel) { false }
|
|
|
|
let(:previous_avis_confidentiel) { false }
|
|
|
|
let(:dossier) { create(:dossier, :en_construction, :with_dossier_link, procedure: procedure) }
|
|
|
|
|
|
|
|
it do
|
|
|
|
expect(flash.notice).to eq("Une demande d'avis a été envoyée à a@b.com")
|
|
|
|
expect(Avis.count).to eq(old_avis_count + 1)
|
|
|
|
expect(created_avis.email).to eq("a@b.com")
|
|
|
|
expect(created_avis.dossier).to eq(dossier)
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'checked' do
|
|
|
|
let(:invite_linked_dossiers) { true }
|
|
|
|
let(:created_avis) { Avis.last(2).first }
|
|
|
|
let(:linked_avis) { Avis.last }
|
|
|
|
let(:linked_dossier) { dossier.reload.linked_dossiers.first }
|
|
|
|
|
|
|
|
it do
|
|
|
|
expect(flash.notice).to eq("Une demande d'avis a été envoyée à a@b.com")
|
|
|
|
expect(Avis.count).to eq(old_avis_count + 2)
|
|
|
|
expect(created_avis.email).to eq("a@b.com")
|
|
|
|
expect(created_avis.dossier).to eq(dossier)
|
|
|
|
expect(linked_avis.dossier).to eq(linked_dossier)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2017-09-20 10:52:48 +02:00
|
|
|
end
|
|
|
|
end
|
2017-12-22 17:34:58 +01:00
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'without a instructeur signed in' do
|
2018-03-20 16:00:30 +01:00
|
|
|
describe '#sign_up' do
|
2017-12-22 17:34:58 +01:00
|
|
|
let(:invited_email) { 'invited@avis.com' }
|
|
|
|
let(:dossier) { create(:dossier) }
|
|
|
|
let!(:avis) { create(:avis, email: invited_email, dossier: dossier) }
|
|
|
|
let(:invitations_email) { true }
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the new instructeur has never signed up' do
|
2017-12-22 17:34:58 +01:00
|
|
|
before do
|
|
|
|
expect(Avis).to receive(:avis_exists_and_email_belongs_to_avis?)
|
|
|
|
.with(avis.id.to_s, invited_email)
|
|
|
|
.and_return(invitations_email)
|
|
|
|
get :sign_up, params: { id: avis.id, email: invited_email }
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'when the email belongs to the invitation' do
|
|
|
|
it { expect(subject.status).to eq(200) }
|
|
|
|
it { expect(assigns(:email)).to eq(invited_email) }
|
|
|
|
it { expect(assigns(:dossier)).to eq(dossier) }
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'when the email does not belong to the invitation' do
|
|
|
|
let(:invitations_email) { false }
|
|
|
|
|
|
|
|
it { is_expected.to redirect_to root_path }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the instructeur has already signed up and belongs to the invitation' do
|
|
|
|
let(:instructeur) { create(:instructeur, email: invited_email) }
|
|
|
|
let!(:avis) { create(:avis, dossier: dossier, instructeur: instructeur) }
|
2017-12-22 17:34:58 +01:00
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the instructeur is authenticated' do
|
2017-12-22 17:34:58 +01:00
|
|
|
before do
|
2019-08-07 11:15:16 +02:00
|
|
|
sign_in(instructeur.user)
|
2017-12-22 17:34:58 +01:00
|
|
|
get :sign_up, params: { id: avis.id, email: invited_email }
|
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
it { is_expected.to redirect_to instructeur_avis_url(avis) }
|
2017-12-22 17:34:58 +01:00
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the instructeur is not authenticated' do
|
2017-12-22 17:34:58 +01:00
|
|
|
before do
|
|
|
|
get :sign_up, params: { id: avis.id, email: invited_email }
|
|
|
|
end
|
|
|
|
|
2019-08-08 10:19:47 +02:00
|
|
|
it { is_expected.to redirect_to new_user_session_url }
|
2017-12-22 17:34:58 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the instructeur has already signed up / is authenticated and does not belong to the invitation' do
|
|
|
|
let(:instructeur) { create(:instructeur, email: 'other@gmail.com') }
|
2017-12-22 17:34:58 +01:00
|
|
|
let!(:avis) { create(:avis, email: invited_email, dossier: dossier) }
|
|
|
|
|
|
|
|
before do
|
2019-08-07 11:15:16 +02:00
|
|
|
sign_in(instructeur.user)
|
2017-12-22 17:34:58 +01:00
|
|
|
get :sign_up, params: { id: avis.id, email: invited_email }
|
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
# redirected to dossier but then the instructeur gonna be banished !
|
|
|
|
it { is_expected.to redirect_to instructeur_avis_url(avis) }
|
2017-12-22 17:34:58 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
describe '#create_instructeur' do
|
2018-04-12 11:27:25 +02:00
|
|
|
let(:existing_user_mail) { 'dummy@example.org' }
|
|
|
|
let!(:existing_user) { create(:user, email: existing_user_mail) }
|
2017-12-22 17:34:58 +01:00
|
|
|
let(:invited_email) { 'invited@avis.com' }
|
|
|
|
let(:dossier) { create(:dossier) }
|
|
|
|
let!(:avis) { create(:avis, email: invited_email, dossier: dossier) }
|
|
|
|
let(:avis_id) { avis.id }
|
2019-06-20 00:36:50 +02:00
|
|
|
let(:password) { 'démarches-simplifiées-pwd' }
|
2019-08-06 11:02:54 +02:00
|
|
|
let(:created_instructeur) { Instructeur.find_by(email: invited_email) }
|
2017-12-22 17:34:58 +01:00
|
|
|
let(:invitations_email) { true }
|
|
|
|
|
|
|
|
before do
|
2019-08-06 11:02:54 +02:00
|
|
|
allow(Avis).to receive(:link_avis_to_instructeur)
|
2017-12-22 17:34:58 +01:00
|
|
|
expect(Avis).to receive(:avis_exists_and_email_belongs_to_avis?)
|
|
|
|
.with(avis_id.to_s, invited_email)
|
|
|
|
.and_return(invitations_email)
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
post :create_instructeur, params: {
|
2018-01-15 15:34:26 +01:00
|
|
|
id: avis_id,
|
|
|
|
email: invited_email,
|
2019-08-06 11:02:54 +02:00
|
|
|
instructeur: {
|
2018-01-15 15:34:26 +01:00
|
|
|
password: password
|
|
|
|
}
|
|
|
|
}
|
2017-12-22 17:34:58 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
context 'when the email does not belong to the invitation' do
|
|
|
|
let(:invitations_email) { false }
|
|
|
|
|
|
|
|
it { is_expected.to redirect_to root_path }
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'when the email belongs to the invitation' do
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the instructeur creation succeeds' do
|
|
|
|
it { expect(created_instructeur).to be_present }
|
2019-08-07 16:22:17 +02:00
|
|
|
it { expect(created_instructeur.user.valid_password?(password)).to be true }
|
2017-12-22 17:34:58 +01:00
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
it { expect(Avis).to have_received(:link_avis_to_instructeur) }
|
2017-12-22 17:34:58 +01:00
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
it { expect(subject.current_instructeur).to eq(created_instructeur) }
|
|
|
|
it { is_expected.to redirect_to instructeur_avis_index_path }
|
2018-04-12 11:27:25 +02:00
|
|
|
|
|
|
|
it 'creates a corresponding user account for the email' do
|
|
|
|
user = User.find_by(email: invited_email)
|
|
|
|
expect(user).to be_present
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'when there already is a user account with the same email' do
|
|
|
|
let(:existing_user_mail) { invited_email }
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
it 'still creates a instructeur account' do
|
|
|
|
expect(created_instructeur).to be_present
|
2018-04-12 11:27:25 +02:00
|
|
|
end
|
|
|
|
end
|
2017-12-22 17:34:58 +01:00
|
|
|
end
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
context 'when the instructeur creation fails' do
|
2017-12-22 17:34:58 +01:00
|
|
|
let(:password) { '' }
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
it { expect(created_instructeur).to be_nil }
|
|
|
|
it { is_expected.to redirect_to sign_up_instructeur_avis_path(avis_id, invited_email) }
|
2018-09-22 10:54:37 +02:00
|
|
|
it { expect(flash.alert).to eq(['Le mot de passe doit être rempli']) }
|
2017-12-22 17:34:58 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2017-09-06 11:21:29 +02:00
|
|
|
end
|