All 17 properties affected by the Edinburgh schools crisis have been repaired in time for the new school year.

The buildings were closed or partially closed after engineers found structural faults, displacing thousands of primary and secondary pupils.

Students were accommodated at more than 70 different schools while a staggered programme of repairs was carried out by operator Edinburgh Schools Partnership (ESP).

The final two schools were officially handed back to the city council on Thursday, ahead of the start of the school term next week.

Council leader Andrew Burns said: "I'm delighted that all of our pupils affected by the closures will be back in their own schools next week as we promised parents we would try to achieve this.

"We stressed to the ESP that they should bring forward school reopening dates where possible which has happened.

"Our priority has always been the safety of our pupils and staff and we insisted that ESP and their contractors ensure all our schools are 100% safe to reopen.

"All the relevant paperwork has been published on our website, having been reviewed by an independent expert on behalf of the council."

Mr Burns said he wanted to thank parents and pupils for their patience and teaching staff for their commitment and flexibility.

An independent inquiry has already been launched to establish why the schools had structural faults.

The investigation, led by construction expert John Cole, will seek to see what lessons can be learned from the issue.

It is due to be completed by the end of the year.