shrub/ren/collections/index.hoon

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-02-05 07:43:43 +03:00
/- collections
/+ rekey, old-zuse
/= gas /$ fuel:html
/= x /^ (map knot topicful:collections) /_ /collections-topic-full/
:: need a way to get the content
/= y /^ config:collections /% /&collections-config&/txt/
|%
++ authed
%+ lien
~(tap in (~(get ju aut.ced.gas) %$))
|= a/knot
=((scot %p p.bem.gas) a)
--
^- manx
=, old-zuse
;div
;h1: {(trip desc.y)}
;* ?: authed
;=
2018-02-05 23:49:52 +03:00
;div.row
;a(href "/~~/pages/nutalk/collections/post")
;button.btn.btn-secondary
Write →
==
2018-02-05 07:43:43 +03:00
==
==
==
;=
2018-02-05 23:49:52 +03:00
;div.row
;a(href "")
;button.btn.btn-primary
Subscribe →
==
2018-02-05 07:43:43 +03:00
==
==
==
;ul
;* %+ turn
%+ sort
~(tap by x)
|= [a=(pair knot topicful:collections) b=(pair knot topicful:collections)]
(gth (unt (slav %da p.a)) (unt (slav %da p.b)))
|= [t=knot con=topicful:collections]
;li
;div
2018-02-05 23:49:52 +03:00
;a(href "{(trip (scot %p mod.info.con))}/{(trip t)}"): {(trip t)}
2018-02-05 07:43:43 +03:00
==
2018-02-05 23:49:52 +03:00
;h2.mt-0: {(trip tit.info.con)}
2018-02-05 07:43:43 +03:00
==
==
==