trying a dedicated renderer just to handle edit pages

This commit is contained in:
Anthony 2018-02-21 18:42:08 -08:00
parent 23c05ee10b
commit 9ae18bf14a
3 changed files with 31 additions and 4 deletions

21
mar/collections/edit.hoon Normal file
View 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
--
--

View 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))}");

View File

@ -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";
==