summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-23 15:52:38 +0100
committerAzul <azul@leap.se>2013-01-23 16:17:51 +0100
commitefb9f511f426b9d6f3af63608e77f80c4b823fb0 (patch)
tree20329dfae6e6182ded56174c2bad21e114ae4583 /users/app
parent30f406de954bac1da5fef7cdd753c0af16f11051 (diff)
added a small test for HostMetaPresenter and using links hash in xml view
Diffstat (limited to 'users/app')
-rw-r--r--users/app/views/webfinger/host_meta.xml.erb10
1 files changed, 5 insertions, 5 deletions
diff --git a/users/app/views/webfinger/host_meta.xml.erb b/users/app/views/webfinger/host_meta.xml.erb
index 37c9d1e..cfcbcc0 100644
--- a/users/app/views/webfinger/host_meta.xml.erb
+++ b/users/app/views/webfinger/host_meta.xml.erb
@@ -3,9 +3,9 @@
<Subject><%= @host_meta.subject %></Subject>
-
- <Link rel='lrdd'
- type='application/xrd+xml'
- template='<%= @host_meta.webfinger_template %>' />
-
+ <%- @host_meta.links.each do |rel, link| %>
+ <Link rel='<%= rel %>'
+ type='<%= link[:type] %>'
+ template='<%= link[:template] %>' />
+ <%- end %>
</XRD>