diff --git a/src/util.cr b/src/util.cr index 6afef02..8d0f0df 100644 --- a/src/util.cr +++ b/src/util.cr @@ -133,6 +133,7 @@ def validate_password(password) end macro render_xml(path) + base_url = Config.current.base_url send_file env, ECR.render({{path}}).to_slice, "application/xml" end diff --git a/src/views/opds/index.ecr b/src/views/opds/index.ecr index 3bcf68f..10c179c 100644 --- a/src/views/opds/index.ecr +++ b/src/views/opds/index.ecr @@ -4,8 +4,8 @@ urn:mango:index - - + + Library @@ -18,7 +18,7 @@ <%= t.display_name %> urn:mango:<%= t.id %> - + <% end %> diff --git a/src/views/opds/title.ecr b/src/views/opds/title.ecr index bd4567c..476bb8d 100644 --- a/src/views/opds/title.ecr +++ b/src/views/opds/title.ecr @@ -2,8 +2,8 @@ urn:mango:<%= title.id %> - - + + <%= title.display_name %> @@ -16,7 +16,7 @@ <%= t.display_name %> urn:mango:<%= t.id %> - + <% end %> @@ -28,10 +28,10 @@ - + - - + + <% end %>