mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
use proper snippeting in renderers
This commit is contained in:
parent
472ded107c
commit
cd2f46ffac
@ -2,6 +2,16 @@
|
||||
/+ rekey, old-zuse, colls
|
||||
/= gas /$ fuel:html
|
||||
/= topics /^ (map knot topicful:collections) /_ /collections-topic-full/
|
||||
::
|
||||
:: TODO clean this up and make this one map
|
||||
/= snips /^ (map knot {hed/marl tal/marl}) /_
|
||||
/& collections-snip
|
||||
/& elem
|
||||
/& md
|
||||
:: this needs to be put into a mar
|
||||
/; |= a/topic:collections
|
||||
(of-wain:format wat.a)
|
||||
/collections-topic/
|
||||
/= config /^ config:collections /% /&collections-config&/txt/
|
||||
^- manx
|
||||
=, old-zuse
|
||||
@ -24,18 +34,6 @@
|
||||
;=
|
||||
;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
|
||||
@ -43,6 +41,7 @@
|
||||
|= [a=(pair knot topicful:collections) b=(pair knot topicful:collections)]
|
||||
(dor:colls p.a p.b)
|
||||
|= [t=knot con=topicful:collections]
|
||||
=/ snip (~(got by snips) t)
|
||||
;* ?: comm.config
|
||||
;* ?: xeno.config
|
||||
;li.forum.mb-8
|
||||
@ -66,12 +65,25 @@
|
||||
;div.text-mono
|
||||
; {(trip t)}
|
||||
==
|
||||
::;div:(h2:"*{hed.snip}" div:"*{tal.snip}")
|
||||
;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))))}
|
||||
;a(href "/~~/collections/{(trip -.s.bem.gas)}/{(trip t)}")
|
||||
*{hed.snip}
|
||||
==
|
||||
==
|
||||
;* ?~ hed.snip
|
||||
;=
|
||||
;div.snippet
|
||||
;a(href "/~~/collections/{(trip -.s.bem.gas)}/{(trip t)}")
|
||||
*{tal.snip}
|
||||
==
|
||||
==
|
||||
==
|
||||
;=
|
||||
;div.snippet
|
||||
*{tal.snip}
|
||||
==
|
||||
==
|
||||
==
|
||||
;li.notes.mb-8
|
||||
;div.da.text-mono(data-urb-elapsed "{(esoo:colls mod.info.con)}");
|
||||
|
@ -20,10 +20,12 @@
|
||||
;div.post
|
||||
;div.topic-info.mb-4
|
||||
;div.row.coll-title
|
||||
{(trip desc:(need config))} /
|
||||
;a(href "/~~/collections/{(trip +<:s.bem.gas)}")
|
||||
{(trip desc:(need config))} /
|
||||
==
|
||||
==
|
||||
;div.row.mod.text-mono
|
||||
; {(trip (scot %da mod.info.metawcom))}
|
||||
; {(trip -:s.bem.gas)}
|
||||
==
|
||||
==
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user