Allow defining commentlinks in project.config

These are inherited from parent projects, including the system-wide
commentlinks defined in project.config in all projects. Child projects
may override commentlinks defined in parents by name, which project
administrators can discover via GET /projects/myparent/config.

Change-Id: I96dd6701350761a0af6e3d9babdef4f74ad4e29f
This commit is contained in:
Dave Borowitz
2013-04-08 12:03:29 -07:00
parent 2002789f41
commit 13b38004e9
4 changed files with 60 additions and 7 deletions

View File

@@ -741,6 +741,11 @@ how the replacement is displayed to the user.
html = $1<a href=\"http://trak.example.com/$2\">$2</a>
----
Comment links can also be specified in `project.config` and sections in
children override those in parents. The only restriction is that to
avoid injecting arbitrary user-supplied HTML in the page, comment links
defined in `project.config` may only supply `link`, not `html`.
[[commentlink.name.match]]commentlink.<name>.match::
+
A JavaScript regular expression to match positions to be replaced