Skip to content

Commit 16c8ad4

Browse files
committed
fix: more pages; font adjustments
1 parent c947abd commit 16c8ad4

11 files changed

Lines changed: 79 additions & 36 deletions

File tree

content/404.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permalink: 404.html
44
eleventyExcludeFromCollections: true
55
---
66

7-
### Error: Not Found
7+
# Error: Not Found
88

99
---
1010

content/about.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: layouts/base.njk
3+
---
4+
5+
# About this site
6+
7+
---
8+
9+
jQuery issues have moved to [GitHub](https://github.com/jquery/jquery/issues).
10+
11+
This site is now a static version of the old Trac bugs site.
12+
13+
> Trac is a web-based software project management and bug/issue tracking system emphasizing ease of use and low ceremony. It provides an integrated Wiki, an interface to version control systems, and a number of convenient ways to stay on top of events and changes within a project.
14+
15+
See [https://trac.edgewall.org/](https://trac.edgewall.org/) for more on Trac.

content/about/index.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

content/blog.njk

Lines changed: 0 additions & 10 deletions
This file was deleted.

content/query.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: layouts/base.njk
3+
---
4+
5+
# Custom Query
6+
7+
---
8+
9+
jQuery issues have moved to [GitHub](https://github.com/jquery/jquery/issues). This site is now a static version of the old trac bugs site. SQL queries are no longer available.
10+
11+
If you know the ticket number you are looking for, use the following URL format to go directly to the ticket:
12+
13+
`https://bugs.jquery.com/ticket/<ticket number>`
14+
15+
Or, search the full archive of tickets using the search box above.

content/report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: layouts/base.njk
33
---
44

5-
### Available Reports
5+
# Available Reports
66

77
---
88

9-
This site is now a static version of the old trac bugs site. Reports using SQL queries are no longer available.
9+
jQuery issues have moved to [GitHub](https://github.com/jquery/jquery/issues). This site is now a static version of the old trac bugs site. Reports using SQL queries are no longer available.
1010

1111
If you know the ticket number you are looking for, use the following URL format to go directly to the ticket:
1212

content/ticket.njk

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// Sliced in development or the server gets bogged down
88
before: (paginationData) => {
99
if (process.env.NODE_ENV === 'development') {
10-
return paginationData.slice(-5)
10+
return paginationData.slice(0, 5)
1111
}
1212
return paginationData
1313
}
@@ -49,7 +49,7 @@
4949
<div class="ticket-info">
5050
<div class="flex-row flex-between-start">
5151
<h3>
52-
<a href="{{ pagination.url }}">#{{ ticket.id }}</a>
52+
<a href="{{ pagination.url }}" class="ticket-number">#{{ ticket.id }}</a>
5353
<span class="ticket-status">{{ ticket.status }}</span>
5454
<span class="ticket-type">{{ ticket.type }}</span>
5555
<span class="ticket-resolution">({{ ticket.resolution }})</span>
@@ -60,11 +60,13 @@
6060
{% if ticket.status == 'closed' and ticket.closedtime %}
6161
<p>Closed {{ ticket.closedtime | yearsAgo }}</p>
6262
{% endif %}
63-
<p>Last modified {{ ticket.changetime | yearsAgo }}</p>
63+
{% if not ticket.closedtime or ticket.closedtime != ticket.changetime %}
64+
<p>Last modified {{ ticket.changetime | yearsAgo }}</p>
65+
{% endif %}
6466
</div>
6567
</div>
6668

67-
<h3 class="ticket-title">{{ ticket.summary }}</h3>
69+
<h1 class="ticket-title">{{ ticket.summary }}</h1>
6870

6971
<table class="ticket-properties">
7072
<tr>
@@ -172,4 +174,4 @@
172174
</div>
173175
</div>
174176
{% endfor %}
175-
</details>
177+
</details>

content/timeline.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: layouts/base.njk
3+
---
4+
5+
# Timeline
6+
7+
---
8+
9+
jQuery issues have moved to [GitHub](https://github.com/jquery/jquery/issues). This site is now a static version of the old trac bugs site. Timeline searches using SQL queries are no longer available.
10+
11+
If you know the ticket number you are looking for, use the following URL format to go directly to the ticket:
12+
13+
`https://bugs.jquery.com/ticket/<ticket number>`
14+
15+
Or, search the full archive of tickets using the search box above.

eleventy.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ module.exports = function (eleventyConfig) {
150150
// Linkify ticket references
151151
.replace(/#(\d+)/g, `<a href="/ticket/$1">$&</a>`)
152152
// Replace double newlines with paragraphs
153-
.split(/(?:\r\n){2}/g)
153+
.split(/(?:\r?\n){2}/g)
154154
.map((line) => {
155155
if (!line.trim()) {
156156
return ''

public/css/index.css

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/* Defaults */
22
:root {
3-
--font-family: Verdana, Arial, "Bitstream Vera Sans", Helvetica, sans-serif;
4-
--font-family-header: "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
5-
--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono,
3+
--font-family: "Trebuchet MS", Verdana, Helvetica, Arial, sans-serif;
4+
--font-family-header: var(--font-family);
5+
--font-family-alternate: Verdana, Arial, "Bitstream Vera Sans", Helvetica, sans-serif;
6+
--font-family-monospace: Monaco, Andale Mono WT, Andale Mono,
67
Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono,
78
Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New,
89
Courier, monospace;
@@ -79,6 +80,8 @@ body {
7980
width: 100%;
8081
max-width: 910px;
8182
margin: 0 auto;
83+
/* Avoid scroll with mobile nav */
84+
overflow: hidden;
8285
}
8386

8487
h1, h2, h3, h4, h5, h6 {
@@ -89,6 +92,11 @@ h1, h2, h3, h4, h5, h6 {
8992
letter-spacing: 0;
9093
}
9194

95+
h1 {
96+
font-size: 1.15rem;
97+
font-weight: bold;
98+
}
99+
92100
/* https://www.a11yproject.com/posts/how-to-hide-content/ */
93101
.visually-hidden {
94102
clip: rect(0 0 0 0);
@@ -210,7 +218,6 @@ header h1 {
210218
display: flex;
211219
flex-direction: column;
212220
padding: 0;
213-
margin: 0;
214221
list-style: none;
215222
}
216223
.nav a {
@@ -322,6 +329,7 @@ form {
322329
label {
323330
font-style: italic;
324331
font-size: 0.8125rem;
332+
font-weight: 700;
325333
}
326334
input {
327335
border: 1px solid var(--input-border-color);
@@ -382,7 +390,7 @@ footer {
382390
var(--footer-background-start-color),
383391
var(--footer-background-end-color)
384392
);
385-
padding: 2.5em 2.5em;
393+
padding: 2.5em;
386394
margin-bottom: 2em;
387395
border-top: 2px solid #000;
388396
border-bottom: 2px solid #000;
@@ -496,5 +504,6 @@ a.ext-link .icon {
496504
#jq-content {
497505
flex-grow: 1;
498506
max-width: 622px;
507+
font-size: 0.875rem;
499508
}
500509
}

0 commit comments

Comments
 (0)