# HG changeset patch # User Thomas Arendsen Hein # Date 1146024762 -7200 # Node ID 90ee844b9f7125f11c7edf29dacb6b9ad7df1dd2 # Parent e5f5c21f4169b6a6575a33edd621fc29d09b97a7 hgweb templates: Don't word wrap "foo bar ago" (e.g. "3 months\nago") This made log entries or hgwebdir index look ugly with certain browser widths. diff --git a/templates/filelogentry.tmpl b/templates/filelogentry.tmpl --- a/templates/filelogentry.tmpl +++ b/templates/filelogentry.tmpl @@ -1,6 +1,6 @@ - + diff --git a/templates/map b/templates/map --- a/templates/map +++ b/templates/map @@ -43,7 +43,7 @@ filediffparent = '' fileannotatechild = '' tags = tags-gitweb.tmpl -tagentry = '' +tagentry = '' diffblock = '#lines#' changelogtag = '' changesettag = '' @@ -45,6 +45,6 @@ filelogparent = '' filelogchild = '' shortlog = shortlog-gitweb.tmpl -shortlogentry = '' -filelogentry = '' +shortlogentry = '' +filelogentry = '' archiveentry = ' | #type|escape# ' 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 @@ -17,6 +17,7 @@ div.title, a.title { a.title:hover { background-color: #d9d8d1; } div.title_text { padding:6px 0px; border: solid #d9d8d1; border-width:0px 0px 1px; } div.log_body { padding:8px 8px 8px 150px; } +.age { white-space:nowrap; } span.age { position:relative; float:left; width:142px; font-style:italic; } div.log_link { padding:0px 8px; diff --git a/templates/static/style.css b/templates/static/style.css --- a/templates/static/style.css +++ b/templates/static/style.css @@ -1,4 +1,5 @@ a { text-decoration:none; } +.age { white-space:nowrap; } .parity0 { background-color: #dddddd; } .parity1 { background-color: #eeeeee; } .lineno { width: 60px; color: #aaaaaa; font-size: smaller;
#date|age# ago: #date|age# ago:  #desc|strip|firstline|escape#
revision #filerev#: 
child:#node|short#
child:#node|short#
#date|age# ago#tag|escape#
#date|age# ago#tag|escape#
tag:#tag|escape#
tag#tag|escape#
p filediffchild = '
child #rev#:#node|short#
child #rev#: #node|short#
#date|age# ago#author##desc|firstline|escape#
#date|age# ago#desc|firstline|escape#
#date|age# ago#author##desc|firstline|escape#
#date|age# ago#desc|firstline|escape#