##// END OF EJS Templates
make graph view work with paper style
Matt Mackall -
r6692:683428d1 default
parent child Browse files
Show More
@@ -1,69 +1,70 b''
1 default = 'shortlog'
1 default = 'shortlog'
2
2
3 mimetype = 'text/html; charset={encoding}'
3 mimetype = 'text/html; charset={encoding}'
4 header = header.tmpl
4 header = header.tmpl
5 footer = ../coal/footer.tmpl
5 footer = ../coal/footer.tmpl
6 search = ../coal/search.tmpl
6 search = ../coal/search.tmpl
7
7
8 changelog = ../coal/shortlog.tmpl
8 changelog = ../coal/shortlog.tmpl
9 shortlog = ../coal/shortlog.tmpl
9 shortlog = ../coal/shortlog.tmpl
10 shortlogentry = ../coal/shortlogentry.tmpl
10 shortlogentry = ../coal/shortlogentry.tmpl
11 graph = ../coal/graph.tmpl
11
12
12 naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
13 naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
13 navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
14 navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
14 filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
15 filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
15 filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
16 filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
16 filenodelink = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
17 filenodelink = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
17 fileellipses = '...'
18 fileellipses = '...'
18 changelogentry = ../coal/shortlogentry.tmpl
19 changelogentry = ../coal/shortlogentry.tmpl
19 searchentry = ../coal/shortlogentry.tmpl
20 searchentry = ../coal/shortlogentry.tmpl
20 changeset = ../coal/changeset.tmpl
21 changeset = ../coal/changeset.tmpl
21 manifest = ../coal/manifest.tmpl
22 manifest = ../coal/manifest.tmpl
22
23
23 direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>'
24 direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>'
24 fileentry = '<tr class="fileline parity{parity}"><td clase="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>'
25 fileentry = '<tr class="fileline parity{parity}"><td clase="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>'
25
26
26 filerevision = ../coal/filerevision.tmpl
27 filerevision = ../coal/filerevision.tmpl
27 fileannotate = ../coal/fileannotate.tmpl
28 fileannotate = ../coal/fileannotate.tmpl
28 filediff = ../coal/filediff.tmpl
29 filediff = ../coal/filediff.tmpl
29 filelog = ../coal/filelog.tmpl
30 filelog = ../coal/filelog.tmpl
30 fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>'
31 fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>'
31 filelogentry = ../coal/filelogentry.tmpl
32 filelogentry = ../coal/filelogentry.tmpl
32
33
33 annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>'
34 annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>'
34
35
35 diffblock = '<table class="bigtable parity{parity}">{lines}</table>'
36 diffblock = '<table class="bigtable parity{parity}">{lines}</table>'
36 difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>'
37 difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>'
37 difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>'
38 difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>'
38 difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>'
39 difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>'
39 diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>'
40 diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>'
40
41
41 changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
42 changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
42
43
43 changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
44 changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
44
45
45 filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> '
46 filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> '
46 filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '
47 filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '
47
48
48 filerename = '{file|escape}@'
49 filerename = '{file|escape}@'
49 filelogrename = '<tr><th>base:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}@{node|short}</a></td></tr>'
50 filelogrename = '<tr><th>base:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}@{node|short}</a></td></tr>'
50 fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>'
51 fileannotateparent = '<tr><td class="metatag">parent:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a></td></tr>'
51 changesetchild = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
52 changesetchild = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
52 changelogchild = '<tr><th class="child">child</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
53 changelogchild = '<tr><th class="child">child</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
53 fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
54 fileannotatechild = '<tr><td class="metatag">child:</td><td><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
54 tags = ../coal/tags.tmpl
55 tags = ../coal/tags.tmpl
55 tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>'
56 tagentry = '<tr class="tagEntry parity{parity}"><td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{tag|escape}</a></td><td class="node">{node|short}</td></tr>'
56 changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
57 changelogtag = '<tr><th class="tag">tag:</th><td class="tag">{tag|escape}</td></tr>'
57 changelogtag = '<span class="tag">{name|escape}</span> '
58 changelogtag = '<span class="tag">{name|escape}</span> '
58 changesettag = '<span class="tag">{tag|escape}</span> '
59 changesettag = '<span class="tag">{tag|escape}</span> '
59 filediffparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
60 filediffparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
60 filelogparent = '<tr><th>parent {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
61 filelogparent = '<tr><th>parent {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
61 filediffchild = '<tr><th class="child">child {rev}:</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
62 filediffchild = '<tr><th class="child">child {rev}:</th><td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
62 filelogchild = '<tr><th>child {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
63 filelogchild = '<tr><th>child {rev}:</th><td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td></tr>'
63 indexentry = '<tr class="parity{parity}"><td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a> {archives%archiveentry}</td></tr>'
64 indexentry = '<tr class="parity{parity}"><td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td><td>{description}</td><td>{contact|obfuscate}</td><td class="age">{lastchange|age} ago</td><td class="indexlinks"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a> {archives%archiveentry}</td></tr>'
64 index = ../coal/index.tmpl
65 index = ../coal/index.tmpl
65 archiveentry = '<li><a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a></li>'
66 archiveentry = '<li><a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a></li>'
66 notfound = ../coal/notfound.tmpl
67 notfound = ../coal/notfound.tmpl
67 error = ../coal/error.tmpl
68 error = ../coal/error.tmpl
68 urlparameter = '{separator}{name}={value|urlescape}'
69 urlparameter = '{separator}{name}={value|urlescape}'
69 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
70 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
@@ -1,152 +1,193 b''
1 body {
1 body {
2 margin: 0;
2 margin: 0;
3 padding: 0;
3 padding: 0;
4 background: white;
4 background: white;
5 font-family: sans-serif;
5 font-family: sans-serif;
6 }
6 }
7
7
8 .container {
8 .container {
9 padding-left: 115px;
9 padding-left: 115px;
10 }
10 }
11
11
12 .main {
12 .main {
13 position: relative;
13 position: relative;
14 background: white;
14 background: white;
15 padding: 2em 2em 2em 0;
15 padding: 2em 2em 2em 0;
16 }
16 }
17
17
18 .overflow {
18 .overflow {
19 width: 100%;
19 width: 100%;
20 overflow: auto;
20 overflow: auto;
21 }
21 }
22
22
23 .menu {
23 .menu {
24 width: 90px;
24 width: 90px;
25 margin: 0;
25 margin: 0;
26 font-size: 80%;
26 font-size: 80%;
27 text-align: left;
27 text-align: left;
28 position: fixed;
28 position: fixed;
29 top: 20px;
29 top: 20px;
30 left: 20px;
30 left: 20px;
31 right: auto;
31 right: auto;
32 }
32 }
33
33
34 .menu ul {
34 .menu ul {
35 list-style: none;
35 list-style: none;
36 padding: 0;
36 padding: 0;
37 margin: 10px 0 0 0;
37 margin: 10px 0 0 0;
38 border-left: 2px solid #999;
38 border-left: 2px solid #999;
39 }
39 }
40
40
41 .menu li {
41 .menu li {
42 margin-bottom: 3px;
42 margin-bottom: 3px;
43 padding: 2px 4px;
43 padding: 2px 4px;
44 background: white;
44 background: white;
45 color: black;
45 color: black;
46 font-weight: normal;
46 font-weight: normal;
47 }
47 }
48
48
49 .menu li.active {
49 .menu li.active {
50 font-weight: bold;
50 font-weight: bold;
51 }
51 }
52
52
53 .menu a { color: black; display: block; }
53 .menu a { color: black; display: block; }
54
54
55 .search {
55 .search {
56 position: absolute;
56 position: absolute;
57 top: .7em;
57 top: .7em;
58 right: 2em;
58 right: 2em;
59 }
59 }
60
60
61 a { text-decoration:none; }
61 a { text-decoration:none; }
62 .age { white-space:nowrap; }
62 .age { white-space:nowrap; }
63 .date { white-space:nowrap; }
63 .date { white-space:nowrap; }
64 .indexlinks { white-space:nowrap; }
64 .indexlinks { white-space:nowrap; }
65 .parity0 { background-color: #f5f5f5; }
65 .parity0 { background-color: #f5f5f5; }
66 .parity1 { background-color: white; }
66 .parity1 { background-color: white; }
67 .plusline { color: green; }
67 .plusline { color: green; }
68 .minusline { color: red; }
68 .minusline { color: red; }
69 .atline { color: purple; }
69 .atline { color: purple; }
70
70
71 .navigate {
71 .navigate {
72 text-align: right;
72 text-align: right;
73 font-size: 60%;
73 font-size: 60%;
74 margin: 1em 0 1em 0;
74 margin: 1em 0 1em 0;
75 }
75 }
76
76
77 .tag {
77 .tag {
78 color: #999;
78 color: #999;
79 font-size: 70%;
79 font-size: 70%;
80 font-weight: normal;
80 font-weight: normal;
81 margin-left: .5em;
81 margin-left: .5em;
82 vertical-align: baseline;
82 vertical-align: baseline;
83 }
83 }
84
84
85 /* Common */
85 /* Common */
86 pre { margin: 0; }
86 pre { margin: 0; }
87
87
88 h2 { font-size: 120%; border-bottom: 1px solid #999; }
88 h2 { font-size: 120%; border-bottom: 1px solid #999; }
89 h3 {
89 h3 {
90 margin-top: -.7em;
90 margin-top: -.7em;
91 font-size: 100%;
91 font-size: 100%;
92 }
92 }
93
93
94 /* log and tags tables */
94 /* log and tags tables */
95 .bigtable {
95 .bigtable {
96 border-bottom: 1px solid #999;
96 border-bottom: 1px solid #999;
97 border-collapse: collapse;
97 border-collapse: collapse;
98 font-size: 90%;
98 font-size: 90%;
99 width: 100%;
99 width: 100%;
100 font-weight: normal;
100 font-weight: normal;
101 text-align: left;
101 text-align: left;
102 }
102 }
103
103
104 .bigtable td {
104 .bigtable td {
105 padding: 1px 4px 1px 4px;
105 padding: 1px 4px 1px 4px;
106 vertical-align: top;
106 vertical-align: top;
107 }
107 }
108
108
109 .bigtable th {
109 .bigtable th {
110 padding: 1px 4px 1px 4px;
110 padding: 1px 4px 1px 4px;
111 border-bottom: 1px solid #999;
111 border-bottom: 1px solid #999;
112 font-size: smaller;
112 font-size: smaller;
113 }
113 }
114 .bigtable tr { border: none; }
114 .bigtable tr { border: none; }
115 .bigtable .age { width: 6em; }
115 .bigtable .age { width: 6em; }
116 .bigtable .author { width: 10em; }
116 .bigtable .author { width: 10em; }
117 .bigtable .description { }
117 .bigtable .description { }
118 .bigtable .node { width: 5em; font-family: monospace;}
118 .bigtable .node { width: 5em; font-family: monospace;}
119 .bigtable .lineno { width: 2em; text-align: right;}
119 .bigtable .lineno { width: 2em; text-align: right;}
120 .bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;}
120 .bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;}
121 .bigtable td.source { font-family: monospace; white-space: pre; }
121 .bigtable td.source { font-family: monospace; white-space: pre; }
122 .bigtable .permissions { width: 8em; text-align: left;}
122 .bigtable .permissions { width: 8em; text-align: left;}
123 .bigtable .size { width: 5em; text-align: right; }
123 .bigtable .size { width: 5em; text-align: right; }
124 .bigtable .annotate { text-align: right; }
124 .bigtable .annotate { text-align: right; }
125 .bigtable td.annotate { font-size: smaller; }
125 .bigtable td.annotate { font-size: smaller; }
126
126
127 .fileline { font-family: monospace; }
127 .fileline { font-family: monospace; }
128 .fileline img { border: 0; }
128 .fileline img { border: 0; }
129
129
130 /* Changeset entry */
130 /* Changeset entry */
131 #changesetEntry {
131 #changesetEntry {
132 border-collapse: collapse;
132 border-collapse: collapse;
133 font-size: 90%;
133 font-size: 90%;
134 width: 100%;
134 width: 100%;
135 margin-bottom: 1em;
135 margin-bottom: 1em;
136 }
136 }
137
137
138 #changesetEntry th {
138 #changesetEntry th {
139 padding: 1px 4px 1px 4px;
139 padding: 1px 4px 1px 4px;
140 width: 4em;
140 width: 4em;
141 text-align: right;
141 text-align: right;
142 font-weight: normal;
142 font-weight: normal;
143 color: #999;
143 color: #999;
144 margin-right: .5em;
144 margin-right: .5em;
145 vertical-align: top;
145 vertical-align: top;
146 }
146 }
147
147
148 div.description {
148 div.description {
149 border-left: 2px solid #999;
149 border-left: 2px solid #999;
150 margin: 1em 0 1em 0;
150 margin: 1em 0 1em 0;
151 padding: .3em;
151 padding: .3em;
152 }
152 }
153
154 div#wrapper {
155 position: relative;
156 border-top: 1px solid black;
157 border-bottom: 1px solid black;
158 margin: 0;
159 padding: 0;
160 }
161
162 canvas {
163 position: absolute;
164 z-index: 5;
165 top: -0.7em;
166 margin: 0;
167 }
168
169 ul#graphnodes {
170 position: absolute;
171 z-index: 10;
172 top: -1.0em;
173 list-style: none inside none;
174 padding: 0;
175 }
176
177 ul#nodebgs {
178 list-style: none inside none;
179 padding: 0;
180 margin: 0;
181 top: -0.7em;
182 }
183
184 ul#graphnodes li, ul#nodebgs li {
185 height: 39px;
186 }
187
188 ul#graphnodes li .info {
189 display: block;
190 font-size: 70%;
191 position: relative;
192 top: -3px;
193 }
General Comments 0
You need to be logged in to leave comments. Login now