shrub/ren/collections/index.hoon
2018-02-27 11:29:58 -08:00

88 lines
2.8 KiB
Plaintext

/- collections
/+ rekey, old-zuse, colls
/= gas /$ fuel:html
/= topics /^ (map knot topicful:collections) /_ /collections-topic-full/
/= config /^ config:collections /% /&collections-config&/txt/
^- manx
=, old-zuse
;div.collection-index
;h1: {(trip desc.config)}
;* ?: (authed:colls gas)
;=
;div.row
;a(href "/~~/pages/nutalk/collection/post?coll={(trip -.s.bem.gas)}")
;button.btn.btn-secondary
; Write →
==
==
;a.ml-4.mt-2.text-600(href "")
; Settings →
==
==
==
;=
;div(data-component "Subscribe", data-circle "{(scow %p p.bem.gas)}/collection_~{(trip -:s.bem.gas)}");
==
::;=
:: ::;=
:: :: ;div(data-component "Subscribe", data-circle "{(scow %p p.bem.gas)}/collection_~{(trip +<:s.bem.gas)}_~{(trip -:s.bem.gas)}");
:: ::==
:: ;div.row
:: ;a(href "")
:: ;button.btn.btn-primary
:: ; Subscribe →
:: ==
:: ==
:: ==
::==
;ul
;* %+ turn
%+ sort
~(tap by topics)
|= [a=(pair knot topicful:collections) b=(pair knot topicful:collections)]
(dor:colls p.a p.b)
|= [t=knot con=topicful:collections]
;* ?: comm.config
;* ?: xeno.config
;li.forum.mb-8
;div.text-mono
; {(trip t)}
==
;div.h3.mt-0
;a(href "/~~/collections/{(trip -.s.bem.gas)}/{(trip t)}"): {(trip tit.info.con)}
==
;div.who.text-mono.text-600
; {(trip (scot %p who.info.con))}
==
;div.meta-cont
;div.da.text-mono(data-urb-elapsed "{(esoo:colls mod.info.con)}");
;div.com-count.ml-12
; {(trip (scot %ud (lent ~(tap by coms.con))))} comments
==
==
==
;li.blog.mb-8
;div.text-mono
; {(trip t)}
==
;div.h2.mt-0
;a(href "/~~/collections/{(trip -.s.bem.gas)}/{(trip t)}"): {(trip tit.info.con)}
==
;div.snippet
{(trip (of-wain:format (scag 3 (no-title:colls wat.info.con))))}
==
==
;li.notes.mb-8
;div.da.text-mono(data-urb-elapsed "{(esoo:colls mod.info.con)}");
;div.h3.mt-0.text-mono.note-uuid
;a(href "/~~/collections/{(trip -.s.bem.gas)}/{(trip t)}"): {(trip t)}
==
;div.snippet
{(trip (of-wain:format (scag 3 (no-title:colls wat.info.con))))}
==
==
==
==