mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +03:00
trying a dedicated renderer just to handle edit pages
This commit is contained in:
parent
23c05ee10b
commit
9ae18bf14a
21
mar/collections/edit.hoon
Normal file
21
mar/collections/edit.hoon
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
::
|
||||||
|
:::: /hoon/edit/collections/mar
|
||||||
|
::
|
||||||
|
/? 310
|
||||||
|
::
|
||||||
|
:::: compute
|
||||||
|
::
|
||||||
|
=, mimes:html
|
||||||
|
=, html
|
||||||
|
|_ man/manx
|
||||||
|
::
|
||||||
|
++ grow :: convert to
|
||||||
|
|%
|
||||||
|
::++ mime [/text/json (as-octt (en-json jon))] :: convert to %mime
|
||||||
|
++ elem man
|
||||||
|
--
|
||||||
|
++ grab
|
||||||
|
|% :: convert from
|
||||||
|
++ noun manx :: clam from %noun
|
||||||
|
--
|
||||||
|
--
|
7
ren/collections/edit.hoon
Normal file
7
ren/collections/edit.hoon
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/+ nutalk
|
||||||
|
/= gas /$ fuel:html
|
||||||
|
/= content /% /collections-topic-full/
|
||||||
|
^- manx
|
||||||
|
%- nutalk
|
||||||
|
;div#edit(data-component "TopicCreatePage", data-coll "{(trip +<:s.bem.gas)}", data-top "{(trip -:s.bem.gas)}", data-top-text "{(trip (of-wain:format wat.info.content))}");
|
||||||
|
|
@ -19,6 +19,7 @@
|
|||||||
=/ config (~(get by configs) +<:s.bem.gas)
|
=/ config (~(get by configs) +<:s.bem.gas)
|
||||||
=, old-zuse
|
=, old-zuse
|
||||||
|%
|
|%
|
||||||
|
:: TODO this needs to be in the js
|
||||||
++ esoo
|
++ esoo
|
||||||
|= d/@d
|
|= d/@d
|
||||||
^- tape
|
^- tape
|
||||||
@ -63,11 +64,11 @@
|
|||||||
==
|
==
|
||||||
;* ?: (authed:colls gas)
|
;* ?: (authed:colls gas)
|
||||||
;=
|
;=
|
||||||
::;a(href "/~~/pages/nutalk/collection/post?coll={(trip +<:s.bem.gas)}&top={(trip -:s.bem.gas)}")
|
;a(href "/~~/collections/{(trip +<:s.bem.gas)}/{(trip -:s.bem.gas)}.collections-edit")
|
||||||
;button#edit-btn.btn.btn-primary.mb-4
|
;button#edit-btn.btn.btn-primary.mb-4
|
||||||
; Edit →
|
; Edit →
|
||||||
==
|
==
|
||||||
::==
|
==
|
||||||
==
|
==
|
||||||
~
|
~
|
||||||
;div.row.content.mb-18
|
;div.row.content.mb-18
|
||||||
@ -105,8 +106,6 @@
|
|||||||
~
|
~
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
;div#edit(data-component "TopicCreatePage", data-coll "{(trip +<:s.bem.gas)}", data-top "{(trip -:s.bem.gas)}", data-top-text "{(trip (of-wain:format wat.info.b.extratopic))}");
|
|
||||||
;script@"/~~/pages/toggle.js";
|
|
||||||
==
|
==
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user