diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2015-02-02 21:34:22 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2015-02-02 21:34:22 +0100 |
| commit | 78215a8279ecc048bd6bbb6a4977ee58766928b6 (patch) | |
| tree | 03ffbdabf800a9bf5673d19ac9f46882212a37a3 /data | |
| parent | 352cf1a07daa32c99c4e2b9f16cc26df8d42a298 (diff) | |
| download | phorkie-78215a8279ecc048bd6bbb6a4977ee58766928b6.tar.gz phorkie-78215a8279ecc048bd6bbb6a4977ee58766928b6.zip | |
Add oEmbed support
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display.htm | 2 | ||||
| -rw-r--r-- | data/templates/oembed.htm | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/display.htm b/data/templates/display.htm index 0e5f036..16e1b08 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -3,6 +3,8 @@ {% block meta %} <link rel="meta" title="DOAP" type="application/rdf+xml" href="{{repo.getLink('doap')}}"/> + <link rel="alternate" title="oEmbed" type="application/json+oembed" href="{{repo.getLink('oembed-json', null, true)}}" /> + <link rel="alternate" title="oEmbed" type="application/xml+oembed" href="{{repo.getLink('oembed-xml', null, true)}}" /> {% if repo.getCloneURL(true) %} <link rel="vcs-git" href="{{repo.getCloneURL(true)}}" title="{{repo.getTitle}}"/> {% endif %} diff --git a/data/templates/oembed.htm b/data/templates/oembed.htm new file mode 100644 index 0000000..1a1eb7a --- /dev/null +++ b/data/templates/oembed.htm @@ -0,0 +1,7 @@ +<!-- embedding all files of {{repo.getLink('display', null, true)}} --> +<link rel="stylesheet" href="{{htmlhelper.fullUrl('css/embed.css')}}"/> +<div class="phork" id="{{repo.id}}"> +{% for file in repo.getFiles %} + {% include 'embed-part-file.htm' %} +{% endfor %} +</div> |
