diff options
author | Azul <azul@leap.se> | 2013-01-23 13:13:41 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-23 13:13:41 +0100 |
commit | 30f406de954bac1da5fef7cdd753c0af16f11051 (patch) | |
tree | d22dab24afa09e3949d0babcaa2d773ee03c1827 /users/app/views/webfinger/search.xml.erb | |
parent | b530279a144ad5fb35070952898c8e6ae3ba68ea (diff) |
added unit tests for user presenter
changed the way the presenter works. Will need functional testing
Diffstat (limited to 'users/app/views/webfinger/search.xml.erb')
-rw-r--r-- | users/app/views/webfinger/search.xml.erb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/users/app/views/webfinger/search.xml.erb b/users/app/views/webfinger/search.xml.erb index 270383e..27f26d1 100644 --- a/users/app/views/webfinger/search.xml.erb +++ b/users/app/views/webfinger/search.xml.erb @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"> - <Subject>acct:<%= @subject.email_identifier %></Subject> - <Alias>"<%= user_url(@subject.subject) %>"</Alias> - <%- if @subject.key.present? %> - <Link rel="public-key" type = 'PGP' href="<%= @subject.key %>"/> + <Subject><%= @presenter.subject %></Subject> + <%- @presenter.aliases.each do |user_alias| %> + <Alias>"<%= user_alias %>"</Alias> + <% end %> + <%- @presenter.links.each do |rel, link| %> + <Link rel=<%=rel%> type=<%=link[:type]%> href="<%= link[:key] %>"/> <% end %> </XRD> |