# HG changeset patch # User Florent Guillaume # Date 2008-03-13 22:45:36 # Node ID bf0dd23f55fa06ffcee77310c225c2973ee28711 # Parent cf1fa60fdaf47f8c6d28f52bc9c332827b5c101d gitweb: show branches in most of the templates diff --git a/templates/gitweb/changelogentry.tmpl b/templates/gitweb/changelogentry.tmpl --- a/templates/gitweb/changelogentry.tmpl +++ b/templates/gitweb/changelogentry.tmpl @@ -1,5 +1,5 @@
-#date|age# ago#desc|strip|firstline|escape# {branches%branchtag}{tags%tagtag} +#date|age# ago#desc|strip|firstline|escape# {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
-#desc|strip|escape|firstline# {branches%branchtag}{tags%tagtag} +#desc|strip|escape|firstline# {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
+#branch%changesetbranch# #parent%changesetparent# #child%changesetchild# diff --git a/templates/gitweb/fileannotate.tmpl b/templates/gitweb/fileannotate.tmpl --- a/templates/gitweb/fileannotate.tmpl +++ b/templates/gitweb/fileannotate.tmpl @@ -35,6 +35,7 @@ annotate | +#branch%filerevbranch# diff --git a/templates/gitweb/filediff.tmpl b/templates/gitweb/filediff.tmpl --- a/templates/gitweb/filediff.tmpl +++ b/templates/gitweb/filediff.tmpl @@ -28,6 +28,7 @@ diff |
{file|escape}
author#author|obfuscate#
#date|date# (#date|age# ago)
changeset {rev}{node|short}
#date|date# (#date|age# ago)
changeset {rev} #node|short#
+{branch%filerevbranch} diff --git a/templates/gitweb/filerevision.tmpl b/templates/gitweb/filerevision.tmpl --- a/templates/gitweb/filerevision.tmpl +++ b/templates/gitweb/filerevision.tmpl @@ -35,6 +35,7 @@ file | +#branch%filerevbranch# diff --git a/templates/gitweb/manifest.tmpl b/templates/gitweb/manifest.tmpl --- a/templates/gitweb/manifest.tmpl +++ b/templates/gitweb/manifest.tmpl @@ -20,7 +20,7 @@ files | changeset #archives%archiveentry#
-
#path|escape# {branches%branchtag}{tags%tagtag}
+
#path|escape# {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
changeset {rev} {node|short}
#date|date# (#date|age# ago)
changeset {rev} #node|short#
diff --git a/templates/gitweb/map b/templates/gitweb/map --- a/templates/gitweb/map +++ b/templates/gitweb/map @@ -30,7 +30,9 @@ difflineminus = '#linenumber# #line|escape#' diffline = '#linenumber# #line|escape#' changelogparent = '' +changesetbranch = '' changesetparent = '' +filerevbranch = '' filerevparent = '' filerename = '{file|escape}@' filelogrename = '| base' @@ -50,7 +52,8 @@ filelogchild = '' +inbranchtag = '{name} ' +shortlogentry = '' filelogentry = '' archiveentry = ' | #type|escape# ' indexentry = '\n' diff --git a/templates/static/style-gitweb.css b/templates/static/style-gitweb.css --- a/templates/static/style-gitweb.css +++ b/templates/static/style-gitweb.css @@ -75,3 +75,7 @@ span.logtags span.branchtag { background-color: #aaffaa; border-color: #ccffcc #00cc33 #00cc33 #ccffcc; } +span.logtags span.inbranchtag { + background-color: #d5dde6; + border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4; +}
drwxr-xr-x
parent #rev#:#node|short#
branch{name}
parent {rev}{node|short}
branch{name}
parent {rev}{rename%filerename}{node|short}
ch shortlog = shortlog.tmpl tagtag = '{name} ' branchtag = '{name} ' -shortlogentry = '
#date|age# ago#author|person##desc|strip|firstline|escape# {branches%branchtag}{tags%tagtag}
#date|age# ago#author|person##desc|strip|firstline|escape# {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}
#date|age# ago#desc|strip|firstline|escape#
{name|escape}{description}{contact|obfuscate}{lastchange|age} ago