Use `local_url` if available to generate asset path

When models are included as partials (index page)
to get the correct URL a reference to `local_url`
passed inside `model-index`.