You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
Cheetah
42 lines
1.1 KiB
Cheetah
{{template "header.tmpl" .}}
|
|
<h1>Outbox</h1>
|
|
<p>These activity links should 404 because they are accessible as
|
|
ActivityStreams content but not as web page content. This is to
|
|
showcase this framework feature. It is not a limitation, as a
|
|
developer could instead decide to support rendering it as a webpage.
|
|
I just choose not to do so for activities in this demo app.
|
|
For example, to verify the data is available to federated peers, you
|
|
can run:
|
|
<pre>curl $ID -H "Accept: application/activity+json"</pre>
|
|
Which will fetch the content as ActivityStreams data.</p>
|
|
<table>
|
|
<tr>
|
|
<th>Activity</th>
|
|
</tr>
|
|
{{$root := .}}
|
|
{{if isString .Other.orderedItems}}
|
|
<tr>
|
|
<td><a href="{{.Other.orderedItems}}">{{.Other.orderedItems}}</a></td>
|
|
</tr>
|
|
{{else}}
|
|
{{range $i, $_ := seq (len .Other.orderedItems)}}
|
|
{{with (index $root.Other.orderedItems $i)}}
|
|
<tr>
|
|
<td><a href="{{.}}">{{.}}</a></td>
|
|
</tr>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</table>
|
|
{{if .Other.prev}}
|
|
<p><a href="{{.Other.prev}}">Prev</a></p>
|
|
{{else}}
|
|
<p>Prev</p>
|
|
{{end}}
|
|
{{if .Other.next}}
|
|
<p><a href="{{.Other.next}}">Next</a></p>
|
|
{{else}}
|
|
<p>Next</p>
|
|
{{end}}
|
|
{{template "footer.tmpl" .}}
|