Changeset [62b37d5c98a3ae1f116125d13aede54ef6f593ed] by Brian Michalski
Revision 62b37d5c98a3ae1f116125d13aede54ef6f593ed,
committed by Brian Michalski
· December 7th, 2011 @ 02:01 AM
Refactor the views for content upload.
A strong proof-of-concept for how plugins can work system wide.
We
decompose the content upload form into 3 parts and let other
content
types replace those parts if they have their own. A similiar
technique
could easily be used to show other partials on a page iff they
exist
since the lookup_context is suppose to handle engines
correctly.
The performance / cacheability of this technique has yet to be
tested,
but I'm optomistic it isn't fstating each time.
https://github.com/concerto/concerto/commit/62b37d5c98a3ae1f116125d...
9 changed files
-
A
app/views/contents/_form_bottom.html.erb -
A
app/views/contents/_form_middle.html.erb -
A
app/views/contents/_form_top.html.erb -
A
app/views/contents/graphic/_form_top.html.erb -
A
app/views/contents/ticker/_form_top.html.erb -
R
app/views/contents/graphic/_form.html.erb -
R
app/views/contents/ticker/_form.html.erb -
M
app/views/contents/_form.html.erb -
M
config/locales/views/contents/en.yml