mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +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)
|
||||
=, old-zuse
|
||||
|%
|
||||
:: TODO this needs to be in the js
|
||||
++ esoo
|
||||
|= d/@d
|
||||
^- tape
|
||||
@ -63,11 +64,11 @@
|
||||
==
|
||||
;* ?: (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
|
||||
; Edit →
|
||||
==
|
||||
::==
|
||||
==
|
||||
==
|
||||
~
|
||||
;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