sapling/mercurial/hgweb
Gregory Szorc 5255c3f24b hgweb: expose list of per-repo labels to templates
hgweb currently offers limited functionality for "classifying"
repositories. This patch aims to change that.

The web.labels config option list is introduced. Its values
are exposed to the "index" and "summary" templates. Custom
templates can use template features like ifcontains() to e.g.
look for the presence of a specific label and engage specific
behavior. For example, a site operator may wish to assign a
"defunct" label to a repository so the repository is prominently
marked as dead in repository indexes.
2016-06-30 18:59:53 -07:00
..
__init__.py hgweb: make sure command options are set to all ui objects 2015-11-21 13:28:12 +09:00
common.py hgweb: import BaseHTTPServer as module at top level 2015-11-01 15:07:08 +09:00
hgweb_mod.py templater: separate function to create templater from map file (API) 2016-04-03 23:26:48 +09:00
hgwebdir_mod.py hgweb: expose list of per-repo labels to templates 2016-06-30 18:59:53 -07:00
protocol.py pycompat: switch to util.urlreq/util.urlerr for py3 compat 2016-04-06 23:22:12 +00:00
request.py hgweb: use absolute_import 2015-10-31 22:07:40 +09:00
server.py py3: conditionalize SocketServer import 2016-06-27 16:48:54 +05:30
webcommands.py hgweb: expose list of per-repo labels to templates 2016-06-30 18:59:53 -07:00
webutil.py py3: convert to next() function 2016-05-16 21:30:53 +00:00
wsgicgi.py hgweb: use absolute_import 2015-10-31 22:07:40 +09:00