diff --git a/templates/coal/changelog.tmpl b/templates/coal/changelog.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/changelog.tmpl @@ -0,0 +1,41 @@ +{header} +{repo|escape}: changelog + + + + + +
+shortlog +tags +files +{archives%archiveentry} +rss +atom +
+ +

changelog for {repo|escape}

+ +
+{sessionvars%hiddenformentry} +

+ + +navigate: {changenav%naventry} +

+
+ +{entries%changelogentry} + +
+{sessionvars%hiddenformentry} +

+ + +navigate: {changenav%naventry} +

+
+ +{footer} diff --git a/templates/coal/changelogentry.tmpl b/templates/coal/changelogentry.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/changelogentry.tmpl @@ -0,0 +1,25 @@ + + + + + + + + + + {parent%changelogparent} + {child%changelogchild} + {changelogtag} + + + + + + + + + + + + +
{date|age} ago:{desc|strip|firstline|escape}
changeset {rev}:{node|short}
author:{author|obfuscate}
date:{date|date}
files:{files}
diff --git a/templates/coal/changeset.tmpl b/templates/coal/changeset.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/changeset.tmpl @@ -0,0 +1,70 @@ +{header} +{repo|escape}: {node|short} + + + + +
+ +

{repo|escape}

+

changeset {node|short} {changesettag}

+ + + +
{desc|strip|escape|addbreaks}
+ + + + + + + + + + + + + + + + + + + + + +
author{author|obfuscate}
date{date|date} ({date|age} ago)
parents{parent%changesetparent}
children{child%changesetchild}
files{files}
+ + +
+ + + + + +
LineDiff
+{diff} +
+ +{footer} + + diff --git a/templates/coal/error.tmpl b/templates/coal/error.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/error.tmpl @@ -0,0 +1,37 @@ +{header} +{repo|escape}: error + + + + + +
+ +

{repo|escape}

+

error

+ + + +
+

+An error occurred while processing your request: +

+

+{error|escape} +

+
+
+ +{footer} diff --git a/templates/coal/fileannotate.tmpl b/templates/coal/fileannotate.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/fileannotate.tmpl @@ -0,0 +1,74 @@ +{header} +{repo|escape}: {file|escape} annotate + + + + + +
+

{repo|escape}

+

Annotate {file|escape} @ {node|short}

+ + + +
{desc|strip|escape|addbreaks}
+ + + + + + + + + + + + + + + + + + +{changesettag} +
author{author|obfuscate}
date{date|date} ({date|age} ago)
parents{parent%filerevparent}
children{child%filerevchild}
+ +
+ +
+ + + + + + +{annotate%annotateline} +
RevLineSource
+
+ +
+{footer} diff --git a/templates/coal/filediff.tmpl b/templates/coal/filediff.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/filediff.tmpl @@ -0,0 +1,72 @@ +{header} +{repo|escape}: {file|escape} diff + + + + + +
+

{repo|escape}

+

diff {file|escape} @ {node|short}

+ + + +
{desc|strip|escape|addbreaks}
+ + + + + + + + + + + + + + + + + + +{changesettag} +
author{author|obfuscate}
date{date|date} ({date|age} ago)
parents{parent%filerevparent}
children{child%filerevchild}
+ +
+ + + + + +
LineDiff
+{diff} + + + +{footer} + + diff --git a/templates/coal/filelog.tmpl b/templates/coal/filelog.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/filelog.tmpl @@ -0,0 +1,56 @@ +{header} +{repo|escape}: {file|escape} history + + + + + + + + +
+ +

{repo|escape}

+

log {file|escape} @ {node|short}

+ + +{sessionvars%hiddenformentry} +

+ + + + +
+ + +{entries%filelogentry} +
Age + Author + Description +
+ +
+ +{footer} diff --git a/templates/coal/filelogentry.tmpl b/templates/coal/filelogentry.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/filelogentry.tmpl @@ -0,0 +1,5 @@ + + {date|age} + {author|person} + {desc|strip|firstline|escape} + diff --git a/templates/coal/filerevision.tmpl b/templates/coal/filerevision.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/filerevision.tmpl @@ -0,0 +1,72 @@ +{header} +{repo|escape}: {node|short} {file|escape} + + + + + +
+ +

{repo|escape}

+

view {file|escape} @ {node|short}

+ + + +
{desc|strip|escape|addbreaks}
+ + + + + + + + + + + + + + + + + + +{changesettag} +
author{author|obfuscate}
date{date|date} ({date|age} ago)
parents{parent%filerevparent}
children{child%filerevchild}
+ +
+ + + + + +{text%fileline} +
LineSource
+
+ +
+ +{footer} diff --git a/templates/coal/footer.tmpl b/templates/coal/footer.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/footer.tmpl @@ -0,0 +1,4 @@ +{motd} + + + diff --git a/templates/coal/header.tmpl b/templates/coal/header.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/header.tmpl @@ -0,0 +1,6 @@ + + + + + + diff --git a/templates/coal/index.tmpl b/templates/coal/index.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/index.tmpl @@ -0,0 +1,19 @@ +{header} +Mercurial repositories index + + + +

Mercurial Repositories

+ + + + + + + + + + {entries%indexentry} +
NameDescriptionContactLast change 
+ +{footer} diff --git a/templates/coal/manifest.tmpl b/templates/coal/manifest.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/manifest.tmpl @@ -0,0 +1,51 @@ +{header} +{repo|escape}: {node|short} {path|escape} + + + + + +
+ +

{repo|escape}

+

directory {path|escape} @ {node|short} {tags%changelogtag}

+ + + + + + + + + + + + +{dentries%direntry} +{fentries%fileentry} +
permissionsdatesizename
drwxr-xr-x  +   +   + [up] +
+ +{footer} diff --git a/templates/coal/map b/templates/coal/map new file mode 100644 --- /dev/null +++ b/templates/coal/map @@ -0,0 +1,70 @@ +default = 'shortlog' + +mimetype = 'text/html; charset={encoding}' +header = header.tmpl +footer = footer.tmpl +search = search.tmpl + +changelog = changelog.tmpl + +shortlog = shortlog.tmpl +shortlogentry = shortlogentry.tmpl + +naventry = '{label|escape} ' +navshortentry = '{label|escape} ' +filenaventry = '{label|escape} ' +filedifflink = '{file|escape} ' +filenodelink = '{file|escape} ' +fileellipses = '...' +changelogentry = shortlogentry.tmpl +searchentry = shortlogentry.tmpl +changeset = changeset.tmpl +manifest = manifest.tmpl + +direntry = 'drwxr-xr-x{basename|escape}/' +fileentry = '{permissions|permissions} {date|isodate} {size} {basename|escape}' + +filerevision = filerevision.tmpl +fileannotate = fileannotate.tmpl +filediff = filediff.tmpl +filelog = filelog.tmpl +fileline = '{linenumber}{line|escape}' +filelogentry = filelogentry.tmpl + +annotateline = '{author|obfuscate}@{rev}{linenumber}{line|escape}' + +diffblock = '{lines}
' +difflineplus = '{linenumber}{line|escape}' +difflineminus = '{linenumber}{line|escape}' +difflineat = '{linenumber}{line|escape}' +diffline = '{linenumber}{line|escape}' + +changelogparent = 'parent {rev}:{node|short}' + +changesetparent = '{node|short} ' + +filerevparent = '{rename%filerename}{node|short} ' +filerevchild = '{node|short} ' + +filerename = '{file|escape}@' +filelogrename = 'base:{file|escape}@{node|short}' +fileannotateparent = 'parent:{rename%filerename}{node|short}' +changesetchild = '{node|short}' +changelogchild = 'child{node|short}' +fileannotatechild = 'child:{node|short}' +tags = tags.tmpl +tagentry = '{tag|escape}{node|short}' +changelogtag = 'tag:{tag|escape}' +changelogtag = '{name|escape} ' +changesettag = '{tag|escape} ' +filediffparent = 'parent {rev}:{node|short}' +filelogparent = 'parent {rev}:{node|short}' +filediffchild = 'child {rev}:{node|short}' +filelogchild = 'child {rev}:{node|short}' +indexentry = '{name|escape}{description}{contact|obfuscate}{lastchange|age} agoRSS Atom {archives%archiveentry}' +index = index.tmpl +archiveentry = '
  • {type|escape}
  • ' +notfound = notfound.tmpl +error = error.tmpl +urlparameter = '{separator}{name}={value|urlescape}' +hiddenformentry = '' diff --git a/templates/coal/notfound.tmpl b/templates/coal/notfound.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/notfound.tmpl @@ -0,0 +1,12 @@ +{header} +Mercurial repository not found + + + +

    Mercurial repository not found

    + +The specified repository "{repo|escape}" is unknown, sorry. + +Please go back to the main repository list page. + +{footer} diff --git a/templates/coal/search.tmpl b/templates/coal/search.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/search.tmpl @@ -0,0 +1,38 @@ +{header} +{repo|escape}: searching for {query|escape} + + + + + +
    + +

    {repo|escape}

    +

    searching for '{query|escape}'

    + + + + + + +{entries} +
    Age + Author + Description +
    + +
    + +{footer} diff --git a/templates/coal/shortlog.tmpl b/templates/coal/shortlog.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/shortlog.tmpl @@ -0,0 +1,44 @@ +{header} +{repo|escape}: log + + + + + + + +
    + +

    {repo|escape}

    +

    log @ {node|short}

    + + + + + + + + +{entries%shortlogentry} +
    Age + Author + Description +
    + + + +{footer} diff --git a/templates/coal/shortlogentry.tmpl b/templates/coal/shortlogentry.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/shortlogentry.tmpl @@ -0,0 +1,5 @@ + + {date|age} + {author|person} + {desc|strip|firstline|escape}{tags%changelogtag} + diff --git a/templates/coal/tags.tmpl b/templates/coal/tags.tmpl new file mode 100644 --- /dev/null +++ b/templates/coal/tags.tmpl @@ -0,0 +1,39 @@ +{header} +{repo|escape}: tags + + + + + + + +
    +

    {repo|escape}

    +

    tags

    + + + + + + + + +{entries%tagentry} +
    tagnode
    +
    + +{footer} diff --git a/templates/static/background.png b/templates/static/background.png new file mode 100644 index 0000000000000000000000000000000000000000..af8a0aa4eb5c4ab8e7e9ddc27756ce31e596f05a GIT binary patch literal 603 zc$@)S0;K(kP)@mjPuwX1dD! z2jIiS*~#nj!|x^&6{A~RM>SdLrQHf-n#`{K;4;91KkF6#6UA( zUylZ6*6$sr+yO3VW^SgmW=Dq%bQkRF(SSQhnJvwA`+6>HM)wX-?x{5Uz8jcXZ|1b5=MN#-k5ug`fWdhs)9}M&X(0T*?1@`r5U}iwwnL5hf zzy*}KsJWK%k4jN<4do+vRY0?wS-)2_GZ#>IrrJRN0-7+;e_&rhnHyKB?$TG{sjTLr p`&?GDaO07=nNCJk8ui;`z5wIw-7x^=I%NO=002ovPDHLkV1k9zAOZjY diff --git a/templates/static/style-coal.css b/templates/static/style-coal.css new file mode 100644 --- /dev/null +++ b/templates/static/style-coal.css @@ -0,0 +1,163 @@ +body { + margin: 0; + padding: 0; + background: black url(background.png) repeat-x; + font-family: sans; +} + +.main { + position: absolute; + margin-top: 0; + background: white; + padding: 2em; + border-right: 15px solid black; + border-bottom: 15px solid black; + margin-right: 150px; +} + +.overflow { + width: 100%; + overflow: auto; +} + +.main { + background: white; +} + +.menu { + background: #999; + padding: 10px; + width: 75px; + margin: 0; + font-size: 80% /*smaller*/; + text-align: left; + position: fixed; + top: 27px; + left: auto; + right: 27px; +} + +.menu ul { + list-style: none; + padding: 0; + margin: 10px 0 0 0; +} + +.menu li { + margin-bottom: 3px; + padding: 2px 4px; + background: white; + color: black; + font-weight: normal; +} + +.menu li.active { + border-left: 3px solid black; +} + +.search { + position: absolute; + top: .7em; + right: 2em; +} + +.menu a { color: black; } + +a { text-decoration:none; } +.age { white-space:nowrap; } +.date { white-space:nowrap; } +.indexlinks { white-space:nowrap; } +.parity0 { background-color: #f5f5f5; } +.parity1 { background-color: white; } +.plusline { color: green; } +.minusline { color: red; } +.atline { color: purple; } + +.navigate { + text-align: right; + font-size: 60%; + margin: 1em 0 1em 0; +} + +.tag { + color: #999; + font-size: 70%; + font-weight: normal; + margin-left: .5em; + vertical-align: text-baseline; +} + +.navigate a { + padding: 2pt; + background-color: #f5f5f5; + color: black; +} + +/* Common */ +pre { margin: 0; } + +h2 { font-size: 120%; border-bottom: 1px solid #999; } +h3 { + margin-top: -.7em; + font-size: 100%; +} + +/* log and tags tables */ +.bigtable { + border-bottom: 1px solid #999; + border-collapse: collapse; + font-size: 90%; + width: 100%; + font-weight: normal; + text-align: left; +} + +.bigtable td { + padding: 1px 4px 1px 4px; + vertical-align: top; +} + +.bigtable th { + padding: 1px 4px 1px 4px; + border-bottom: 1px solid #999; + font-size: smaller; +} +.bigtable tr { border: none; } +.bigtable .age { width: 6em; } +.bigtable .author { width: 12em; } +.bigtable .description { } +.bigtable .node { width: 5em; font-family: monospace;} +.bigtable .lineno { width: 2em; text-align: right;} +.bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;} +.bigtable td.source { font-family: monospace; white-space: pre; } +.bigtable .permissions { width: 4em; } +.bigtable td.permissions { font-family: monospace; } +.bigtable .date { width: 10em; } +.bigtable .size { width: 5em; text-align: right; } +.bigtable td.size { font-family: monospace; } +.bigtable .annotate { text-align: right; padding-right: } +.bigtable td.annotate { font-size: smaller; } + +/* Changeset entry */ +#changesetEntry { + border-collapse: collapse; + font-size: 90%; + width: 100%; + margin-bottom: 1em; +} + +#changesetEntry th { + padding: 1px 4px 1px 4px; + width: 4em; + text-align: right; + font-weight: normal; + color: #999; + margin-right: .5em; + vertical-align: top; +} + +div.description { + border-left: 3px solid #999; + margin: 1em 0 1em 0; + padding: .3em; +}