##// END OF EJS Templates
hgweb: add a "URL breadcrumb" to the index and repository pages...
Angel Ezquerra <angel.ezquerra at gmail.com> -
r18258:bebb05a7 default
parent child Browse files
Show More
@@ -24,6 +24,30 perms = {
24 'pushkey': 'push',
24 'pushkey': 'push',
25 }
25 }
26
26
27 def makebreadcrumb(url):
28 '''Return a 'URL breadcrumb' list
29
30 A 'URL breadcrumb' is a list of URL-name pairs,
31 corresponding to each of the path items on a URL.
32 This can be used to create path navigation entries.
33 '''
34 if url.endswith('/'):
35 url = url[:-1]
36 relpath = url
37 if relpath.startswith('/'):
38 relpath = relpath[1:]
39
40 breadcrumb = []
41 urlel = url
42 pathitems = [''] + relpath.split('/')
43 for pathel in reversed(pathitems):
44 if not pathel or not urlel:
45 break
46 breadcrumb.append({'url': urlel, 'name': pathel})
47 urlel = os.path.dirname(urlel)
48 return reversed(breadcrumb)
49
50
27 class hgweb(object):
51 class hgweb(object):
28 def __init__(self, repo, name=None, baseui=None):
52 def __init__(self, repo, name=None, baseui=None):
29 if isinstance(repo, str):
53 if isinstance(repo, str):
@@ -285,7 +309,8 class hgweb(object):
285 "header": header,
309 "header": header,
286 "footer": footer,
310 "footer": footer,
287 "motd": motd,
311 "motd": motd,
288 "sessionvars": sessionvars
312 "sessionvars": sessionvars,
313 "pathdef": makebreadcrumb(req.url),
289 })
314 })
290 return tmpl
315 return tmpl
291
316
@@ -12,7 +12,7 from mercurial import ui, hg, scmutil, u
12 from mercurial import error, encoding
12 from mercurial import error, encoding
13 from common import ErrorResponse, get_mtime, staticfile, paritygen, \
13 from common import ErrorResponse, get_mtime, staticfile, paritygen, \
14 get_contact, HTTP_OK, HTTP_NOT_FOUND, HTTP_SERVER_ERROR
14 get_contact, HTTP_OK, HTTP_NOT_FOUND, HTTP_SERVER_ERROR
15 from hgweb_mod import hgweb
15 from hgweb_mod import hgweb, makebreadcrumb
16 from request import wsgirequest
16 from request import wsgirequest
17 import webutil
17 import webutil
18
18
@@ -395,6 +395,7 class hgwebdir(object):
395 self.updatereqenv(req.env)
395 self.updatereqenv(req.env)
396
396
397 return tmpl("index", entries=entries, subdir=subdir,
397 return tmpl("index", entries=entries, subdir=subdir,
398 pathdef=makebreadcrumb('/' + subdir),
398 sortcolumn=sortcolumn, descending=descending,
399 sortcolumn=sortcolumn, descending=descending,
399 **dict(sort))
400 **dict(sort))
400
401
@@ -223,3 +223,4 notfound = ../paper/notfound.tmpl
223 error = ../paper/error.tmpl
223 error = ../paper/error.tmpl
224 urlparameter = '{separator}{name}={value|urlescape}'
224 urlparameter = '{separator}{name}={value|urlescape}'
225 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
225 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
226 breadcrumb = '&gt; <a href="{url}">{name}</a> '
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / bookmarks
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / bookmarks
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / branches
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / branches
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changelog
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / changelog
12 </div>
13 </div>
13
14
14 <form action="{url}log">
15 <form action="{url}log">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changeset
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / changeset
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / error
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / error
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / annotate
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / annotate
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / comparison
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / comparison
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / diff
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / diff
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revisions
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / file revisions
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / file revision
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -9,7 +9,8
9 <body>
9 <body>
10
10
11 <div class="page_header">
11 <div class="page_header">
12 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / graph
12 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
13 <a href="/">Mercurial</a> {pathdef%breadcrumb} / graph
13 </div>
14 </div>
14
15
15 <form action="{url}log">
16 <form action="{url}log">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / help
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / help
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -5,7 +5,7
5
5
6 <div class="page_header">
6 <div class="page_header">
7 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
7 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
8 Repositories list
8 <a href="/">Mercurial</a> {pathdef%breadcrumb}
9 </div>
9 </div>
10
10
11 <table cellspacing="0">
11 <table cellspacing="0">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / files
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -305,3 +305,4 indexarchiveentry = ' <a href="{url}arch
305 index = index.tmpl
305 index = index.tmpl
306 urlparameter = '{separator}{name}={value|urlescape}'
306 urlparameter = '{separator}{name}={value|urlescape}'
307 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
307 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
308 breadcrumb = '&gt; <a href="{url}">{name}</a> '
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / search
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / search
12
13
13 <form action="{url}log">
14 <form action="{url}log">
14 {sessionvars%hiddenformentry}
15 {sessionvars%hiddenformentry}
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / shortlog
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / shortlog
12 </div>
13 </div>
13
14
14 <form action="{url}log">
15 <form action="{url}log">
@@ -8,8 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / summary
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / summary
13 <form action="{url}log">
13 <form action="{url}log">
14 {sessionvars%hiddenformentry}
14 {sessionvars%hiddenformentry}
15 <div class="search">
15 <div class="search">
@@ -8,7 +8,8
8 <body>
8 <body>
9
9
10 <div class="page_header">
10 <div class="page_header">
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / tags
11 <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
12 <a href="/">Mercurial</a> {pathdef%breadcrumb} / tags
12 </div>
13 </div>
13
14
14 <div class="page_nav">
15 <div class="page_nav">
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / bookmarks</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / bookmarks</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / branches</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / branches</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changelog</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / changelog</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changeset</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / changeset</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / not found: {repo|escape}</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / not found: {repo|escape}</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / annotate</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / annotate</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file comparison</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / file comparison</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file diff</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / file diff</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revisions</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / file revisions</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / file revision</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -8,7 +8,7
8 <body>
8 <body>
9 <div id="container">
9 <div id="container">
10 <div class="page-header">
10 <div class="page-header">
11 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / graph</h1>
11 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / graph</h1>
12
12
13 <form action="{url}log">
13 <form action="{url}log">
14 {sessionvars%hiddenformentry}
14 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / help</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / help</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -5,7 +5,7
5 <body>
5 <body>
6 <div id="container">
6 <div id="container">
7 <div class="page-header">
7 <div class="page-header">
8 <h1>Mercurial Repositories</h1>
8 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h1>
9 <ul class="page-nav">
9 <ul class="page-nav">
10 </ul>
10 </ul>
11 </div>
11 </div>
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / files</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -259,3 +259,4 index = index.tmpl
259 urlparameter = '{separator}{name}={value|urlescape}'
259 urlparameter = '{separator}{name}={value|urlescape}'
260 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
260 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
261 graph = graph.tmpl
261 graph = graph.tmpl
262 breadcrumb = '&gt; <a href="{url}">{name}</a> '
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / not found: {repo|escape}</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / not found: {repo|escape}</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / search</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / search</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / shortlog</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / shortlog</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / summary</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / summary</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -7,7 +7,7
7 <body>
7 <body>
8 <div id="container">
8 <div id="container">
9 <div class="page-header">
9 <div class="page-header">
10 <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / tags</h1>
10 <h1 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb} / tags</h1>
11
11
12 <form action="{url}log">
12 <form action="{url}log">
13 {sessionvars%hiddenformentry}
13 {sessionvars%hiddenformentry}
@@ -32,7 +32,7
32 </div>
32 </div>
33
33
34 <div class="main">
34 <div class="main">
35 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
35 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
36 <h3>bookmarks</h3>
36 <h3>bookmarks</h3>
37
37
38 <form class="search" action="{url}log">
38 <form class="search" action="{url}log">
@@ -32,7 +32,7
32 </div>
32 </div>
33
33
34 <div class="main">
34 <div class="main">
35 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
35 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
36 <h3>branches</h3>
36 <h3>branches</h3>
37
37
38 <form class="search" action="{url}log">
38 <form class="search" action="{url}log">
@@ -30,7 +30,7
30
30
31 <div class="main">
31 <div class="main">
32
32
33 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
33 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
34 <h3>changeset {rev}:{node|short} {changesetbranch%changelogbranchname} {changesettag} {changesetbookmark}</h3>
34 <h3>changeset {rev}:{node|short} {changesetbranch%changelogbranchname} {changesettag} {changesetbookmark}</h3>
35
35
36 <form class="search" action="{url}log">
36 <form class="search" action="{url}log">
@@ -23,7 +23,7
23
23
24 <div class="main">
24 <div class="main">
25
25
26 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
26 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
27 <h3>error</h3>
27 <h3>error</h3>
28
28
29 <form class="search" action="{url}log">
29 <form class="search" action="{url}log">
@@ -36,7 +36,7
36 </div>
36 </div>
37
37
38 <div class="main">
38 <div class="main">
39 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
39 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
40 <h3>annotate {file|escape} @ {rev}:{node|short}</h3>
40 <h3>annotate {file|escape} @ {rev}:{node|short}</h3>
41
41
42 <form class="search" action="{url}log">
42 <form class="search" action="{url}log">
@@ -35,7 +35,7
35 </div>
35 </div>
36
36
37 <div class="main">
37 <div class="main">
38 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
38 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
39 <h3>comparison {file|escape} @ {rev}:{node|short}</h3>
39 <h3>comparison {file|escape} @ {rev}:{node|short}</h3>
40
40
41 <form class="search" action="{url}log">
41 <form class="search" action="{url}log">
@@ -35,7 +35,7
35 </div>
35 </div>
36
36
37 <div class="main">
37 <div class="main">
38 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
38 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
39 <h3>diff {file|escape} @ {rev}:{node|short}</h3>
39 <h3>diff {file|escape} @ {rev}:{node|short}</h3>
40
40
41 <form class="search" action="{url}log">
41 <form class="search" action="{url}log">
@@ -43,7 +43,7
43 </div>
43 </div>
44
44
45 <div class="main">
45 <div class="main">
46 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
46 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
47 <h3>log {file|escape}</h3>
47 <h3>log {file|escape}</h3>
48
48
49 <form class="search" action="{url}log">
49 <form class="search" action="{url}log">
@@ -34,7 +34,7
34 </div>
34 </div>
35
35
36 <div class="main">
36 <div class="main">
37 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
37 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
38 <h3>view {file|escape} @ {rev}:{node|short}</h3>
38 <h3>view {file|escape} @ {rev}:{node|short}</h3>
39
39
40 <form class="search" action="{url}log">
40 <form class="search" action="{url}log">
@@ -37,7 +37,7
37 </div>
37 </div>
38
38
39 <div class="main">
39 <div class="main">
40 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
40 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
41 <h3>graph</h3>
41 <h3>graph</h3>
42
42
43 <form class="search" action="{url}log">
43 <form class="search" action="{url}log">
@@ -22,7 +22,7
22 </div>
22 </div>
23
23
24 <div class="main">
24 <div class="main">
25 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
25 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
26 <h3>Help: {topic}</h3>
26 <h3>Help: {topic}</h3>
27
27
28 <form class="search" action="{url}log">
28 <form class="search" action="{url}log">
@@ -22,7 +22,7
22 </div>
22 </div>
23
23
24 <div class="main">
24 <div class="main">
25 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
25 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
26 <form class="search" action="{url}log">
26 <form class="search" action="{url}log">
27 {sessionvars%hiddenformentry}
27 {sessionvars%hiddenformentry}
28 <p><input name="rev" id="search1" type="text" size="30" /></p>
28 <p><input name="rev" id="search1" type="text" size="30" /></p>
@@ -9,7 +9,7
9 <img src="{staticurl}{logoimg}" width=75 height=90 border=0 alt="mercurial" /></a>
9 <img src="{staticurl}{logoimg}" width=75 height=90 border=0 alt="mercurial" /></a>
10 </div>
10 </div>
11 <div class="main">
11 <div class="main">
12 <h2>Mercurial Repositories</h2>
12 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
13
13
14 <table class="bigtable">
14 <table class="bigtable">
15 <tr>
15 <tr>
@@ -29,7 +29,7
29 </div>
29 </div>
30
30
31 <div class="main">
31 <div class="main">
32 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
32 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
33 <h3>directory {path|escape} @ {rev}:{node|short} {tags%changelogtag}</h3>
33 <h3>directory {path|escape} @ {rev}:{node|short} {tags%changelogtag}</h3>
34
34
35 <form class="search" action="{url}log">
35 <form class="search" action="{url}log">
@@ -231,3 +231,4 notfound = notfound.tmpl
231 error = error.tmpl
231 error = error.tmpl
232 urlparameter = '{separator}{name}={value|urlescape}'
232 urlparameter = '{separator}{name}={value|urlescape}'
233 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
233 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
234 breadcrumb = '&gt; <a href="{url}">{name}</a> '
@@ -20,7 +20,7
20 </div>
20 </div>
21
21
22 <div class="main">
22 <div class="main">
23 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
23 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
24 <h3>searching for '{query|escape}'</h3>
24 <h3>searching for '{query|escape}'</h3>
25
25
26 <form class="search" action="{url}log">
26 <form class="search" action="{url}log">
@@ -39,7 +39,7
39 </div>
39 </div>
40
40
41 <div class="main">
41 <div class="main">
42 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
42 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
43 <h3>log</h3>
43 <h3>log</h3>
44
44
45 <form class="search" action="{url}log">
45 <form class="search" action="{url}log">
@@ -31,7 +31,7
31 </div>
31 </div>
32
32
33 <div class="main">
33 <div class="main">
34 <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
34 <h2 class="breadcrumb"><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
35 <h3>tags</h3>
35 <h3>tags</h3>
36
36
37 <form class="search" action="{url}log">
37 <form class="search" action="{url}log">
@@ -3,7 +3,7
3 </head>
3 </head>
4 <body>
4 <body>
5
5
6 <h2>Mercurial Repositories</h2>
6 <h2><a href="/">Mercurial</a> {pathdef%breadcrumb}</h2>
7
7
8 <table>
8 <table>
9 <tr>
9 <tr>
@@ -181,3 +181,4 notfound = notfound.tmpl
181 error = error.tmpl
181 error = error.tmpl
182 urlparameter = '{separator}{name}={value|urlescape}'
182 urlparameter = '{separator}{name}={value|urlescape}'
183 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
183 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
184 breadcrumb = '&gt; <a href="{url}">{name}</a> '
@@ -323,3 +323,11 ul#graphnodes li .info {
323 .block {
323 .block {
324 border-top: 1px solid #999;
324 border-top: 1px solid #999;
325 }
325 }
326
327 .breadcrumb {
328 color: gray;
329 }
330
331 .breadcrumb a {
332 color: blue;
333 }
@@ -524,3 +524,7 ul#graphnodes li .info {
524 border-top: 1px solid #999;
524 border-top: 1px solid #999;
525 }
525 }
526 /** end of comparison **/
526 /** end of comparison **/
527
528 .breadcrumb a:hover {
529 text-decoration:underline;
530 }
@@ -318,3 +318,11 ul#graphnodes li .info {
318 .block {
318 .block {
319 border-top: 1px solid #999;
319 border-top: 1px solid #999;
320 }
320 }
321
322 .breadcrumb {
323 color: gray;
324 }
325
326 .breadcrumb a {
327 color: blue;
328 }
General Comments 0
You need to be logged in to leave comments. Login now