[Buildbot] #871: angularjs templates should have an easy means for users to customize (was: JS UI should have an easy means for users to customize page templates)

Buildbot trac trac at buildbot.net
Sun Nov 2 15:37:45 UTC 2014


#871: angularjs templates should have an easy means for users to customize
------------------------+-----------------------
Reporter:  cdadhemar    |       Owner:
    Type:  enhancement  |      Status:  reopened
Priority:  major        |   Milestone:  0.9.+
 Version:  0.8.0        |  Resolution:
Keywords:  web          |
------------------------+-----------------------

Old description:

> Hello,
>
> When a user wants to customize the default "layout.html" template (as an
> example) he/she has to copy it from the source code and modify it in the
> master's 'templates' directory.
>
> It would be really great, and much more in the respect of Jinja's
> template inheritance spirit, that the user can "extend" a default
> template, using the {% extend "layout.html" %} Jinja's feature.
>
> Note: such change is totally "binary/api compatible" for users already
> overriding the default "layout.html" and other default templates.
>
> I am not sure that this request is very clear ... If not feel free to ask
> for more details !
>
> Thank you very much !
> Cheers,
> CH

New description:

 Hello,

 When a user wants to customize the default "layout.html" template (as an
 example) he/she has to copy it from the source code and modify it in the
 master's 'templates' directory.

 It would be really great, and much more in the respect of Jinja's template
 inheritance spirit, that the user can "extend" a default template, using
 the {% extend "layout.html" %} Jinja's feature.

 Note: such change is totally "binary/api compatible" for users already
 overriding the default "layout.html" and other default templates.

 I am not sure that this request is very clear ... If not feel free to ask
 for more details !

 Thank you very much !
 Cheers,
 CH

--

Comment (by tardyp):

 We could actually allow the user to override angularJS templates in the
 config['www'] section.

 We could even read custom templates in a configured directory at
 startup/reconfig, parse them with
 https://pypi.python.org/pypi/pyjade/3.0.0. hoping that the syntax is fully
 compatible with nodejs's jade, and send that to the js in the config
 section.

--
Ticket URL: <http://trac.buildbot.net/ticket/871#comment:8>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the bugs mailing list