summaryrefslogtreecommitdiff
path: root/users/app/views/webfinger
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-25 11:46:22 +0100
committerAzul <azul@leap.se>2013-01-25 11:46:22 +0100
commitdac578781baf73a006cc78e29588dd1f6fdc0fd3 (patch)
treea56ecff398a87efdd4840a8fc897d6471fbdaa69 /users/app/views/webfinger
parent75442ad26f3d30519f747bc98bc83cdc76aff750 (diff)
parent9d053b6c9b61c68bf11f95bcb37631a518f1fba4 (diff)
Merge branch 'feature/webfinger' of https://github.com/leapcode/leap_web
Conflicts: users/app/views/users/edit.html.haml
Diffstat (limited to 'users/app/views/webfinger')
-rw-r--r--users/app/views/webfinger/host_meta.xml.erb11
-rw-r--r--users/app/views/webfinger/search.xml.erb7
2 files changed, 18 insertions, 0 deletions
diff --git a/users/app/views/webfinger/host_meta.xml.erb b/users/app/views/webfinger/host_meta.xml.erb
new file mode 100644
index 0000000..cfcbcc0
--- /dev/null
+++ b/users/app/views/webfinger/host_meta.xml.erb
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+ <XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
+
+ <Subject><%= @host_meta.subject %></Subject>
+
+ <%- @host_meta.links.each do |rel, link| %>
+ <Link rel='<%= rel %>'
+ type='<%= link[:type] %>'
+ template='<%= link[:template] %>' />
+ <%- end %>
+ </XRD>
diff --git a/users/app/views/webfinger/search.xml.erb b/users/app/views/webfinger/search.xml.erb
new file mode 100644
index 0000000..7328552
--- /dev/null
+++ b/users/app/views/webfinger/search.xml.erb
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
+ <Subject><%= @presenter.subject %></Subject>
+ <%- @presenter.links.each do |rel, link| %>
+ <Link rel=<%=rel%> type=<%=link[:type]%> href="<%= link[:key] %>"/>
+ <% end %>
+</XRD>