fix(web): MR description as Markdown, latest tag row inline, no install button (#60)
- commit
- c1179903253ff4075db07b94eb163628bc5d2851
- author
- brice · · 2026-10-18 09:06 UTC
- committer
- bnema · · 2026-10-18 09:06 UTC
- parent
- ef38ad0
- signature
- SSH Unverified
SHA256:VOCA5lYARHcbKDZ7GhTV45VmcjWnJ6ZQIBazj17LivAThe key is unknown
46 files · +491 -695
M internal/adapters/web/ASSETS.md +1 -1
| @@ -16,7 +16,7 @@ content-hashed names. Nothing is fetched at runtime. | |||
| 16 | 16 | | `static/css/*.css` | native CSS, served as one stylesheet in name order; relative `url(fonts/…)` and `url(icons/…)` become hashed URLs | written here | | | |
| 17 | 17 | | `static/fonts/atkinson-next.woff2`, `atkinson-next-italic.woff2` | Atkinson Hyperlegible Next, variable weight, latin subset (SIL OFL 1.1, `static/fonts/OFL-next.txt`) | Google Fonts | `18b2a1a39a2fa298b0ba5390aca68462669826c90925656f1c1f6796e0e1bbaf`, `4a5037bfaf6680f40147407407ec09fa42925774bde809a579283d27f9f08106` | | |
| 18 | 18 | | `static/fonts/atkinson-mono.woff2` | Atkinson Hyperlegible Mono, variable weight, latin subset (SIL OFL 1.1, `static/fonts/OFL-mono.txt`) | Google Fonts | `2706b1ee4f452e744ea91f7e4908cbde9c5d35521bf5ffffc71a382a2de89613` | | |
| 19 | - | | `static/icons/*.svg` | interface icons, used as CSS masks; `brand.svg` is a grey picture shown as is. Only the icons in use are copied, one file each: `branch`, `search`, `tag`, `file`, `chevron`, `user`, `key`, `log-in`, `log-out`, `download` are Lucide 1.8 (`git-branch`, `search`, `tag`, `file-text`, `chevron-down`, `user-round`, `key-round`, `log-in`, `log-out`, `download`; ISC, https://lucide.dev/license) | Lucide; `brand.svg` written here | | | |
| 19 | + | | `static/icons/*.svg` | interface icons, used as CSS masks; `brand.svg` is a grey picture shown as is. Only the icons in use are copied, one file each: `branch`, `search`, `tag`, `file`, `chevron`, `user`, `key`, `log-in`, `log-out` are Lucide 1.8 (`git-branch`, `search`, `tag`, `file-text`, `chevron-down`, `user-round`, `key-round`, `log-in`, `log-out`; ISC, https://lucide.dev/license) | Lucide; `brand.svg` written here | | | |
| 20 | 20 | | `static/app/*.png` | icons of the installed web app (manifest, `apple-touch-icon`), rendered from `brand.svg` with resvg; the maskable and Apple icons have the picture in the safe zone on `#181818` | generated here | | | |
| 21 | 21 | | `static/sw.js` | the service worker of the installed app: a network-only passthrough (no cache), served at `/-/sw.js` with `Service-Worker-Allowed: /` and revalidated on each check (not a hashed asset) | written here | | | |
| 22 | 22 | | `static/rules.json` | speculation rules: prefetch the light same-origin pages on hover (`Speculation-Rules` header); the heavy ones (tree, blob, commit, commits, compare, refs, raw, MR "since") are excluded, each costs several Git reads on the server | written here | | | |
| @@ -16,7 +16,7 @@ content-hashed names. Nothing is fetched at runtime. | |||||
| 16 | | `static/css/*.css` | native CSS, served as one stylesheet in name order; relative `url(fonts/…)` and `url(icons/…)` become hashed URLs | written here | | | 16 | | `static/css/*.css` | native CSS, served as one stylesheet in name order; relative `url(fonts/…)` and `url(icons/…)` become hashed URLs | written here | | | ||
| 17 | | `static/fonts/atkinson-next.woff2`, `atkinson-next-italic.woff2` | Atkinson Hyperlegible Next, variable weight, latin subset (SIL OFL 1.1, `static/fonts/OFL-next.txt`) | Google Fonts | `18b2a1a39a2fa298b0ba5390aca68462669826c90925656f1c1f6796e0e1bbaf`, `4a5037bfaf6680f40147407407ec09fa42925774bde809a579283d27f9f08106` | | 17 | | `static/fonts/atkinson-next.woff2`, `atkinson-next-italic.woff2` | Atkinson Hyperlegible Next, variable weight, latin subset (SIL OFL 1.1, `static/fonts/OFL-next.txt`) | Google Fonts | `18b2a1a39a2fa298b0ba5390aca68462669826c90925656f1c1f6796e0e1bbaf`, `4a5037bfaf6680f40147407407ec09fa42925774bde809a579283d27f9f08106` | | ||
| 18 | | `static/fonts/atkinson-mono.woff2` | Atkinson Hyperlegible Mono, variable weight, latin subset (SIL OFL 1.1, `static/fonts/OFL-mono.txt`) | Google Fonts | `2706b1ee4f452e744ea91f7e4908cbde9c5d35521bf5ffffc71a382a2de89613` | | 18 | | `static/fonts/atkinson-mono.woff2` | Atkinson Hyperlegible Mono, variable weight, latin subset (SIL OFL 1.1, `static/fonts/OFL-mono.txt`) | Google Fonts | `2706b1ee4f452e744ea91f7e4908cbde9c5d35521bf5ffffc71a382a2de89613` | | ||
| 19 | - | | `static/icons/*.svg` | interface icons, used as CSS masks; `brand.svg` is a grey picture shown as is. Only the icons in use are copied, one file each: `branch`, `search`, `tag`, `file`, `chevron`, `user`, `key`, `log-in`, `log-out`, `download` are Lucide 1.8 (`git-branch`, `search`, `tag`, `file-text`, `chevron-down`, `user-round`, `key-round`, `log-in`, `log-out`, `download`; ISC, https://lucide.dev/license) | Lucide; `brand.svg` written here | | | 19 | + | | `static/icons/*.svg` | interface icons, used as CSS masks; `brand.svg` is a grey picture shown as is. Only the icons in use are copied, one file each: `branch`, `search`, `tag`, `file`, `chevron`, `user`, `key`, `log-in`, `log-out` are Lucide 1.8 (`git-branch`, `search`, `tag`, `file-text`, `chevron-down`, `user-round`, `key-round`, `log-in`, `log-out`; ISC, https://lucide.dev/license) | Lucide; `brand.svg` written here | | |
| 20 | | `static/app/*.png` | icons of the installed web app (manifest, `apple-touch-icon`), rendered from `brand.svg` with resvg; the maskable and Apple icons have the picture in the safe zone on `#181818` | generated here | | | 20 | | `static/app/*.png` | icons of the installed web app (manifest, `apple-touch-icon`), rendered from `brand.svg` with resvg; the maskable and Apple icons have the picture in the safe zone on `#181818` | generated here | | | ||
| 21 | | `static/sw.js` | the service worker of the installed app: a network-only passthrough (no cache), served at `/-/sw.js` with `Service-Worker-Allowed: /` and revalidated on each check (not a hashed asset) | written here | | | 21 | | `static/sw.js` | the service worker of the installed app: a network-only passthrough (no cache), served at `/-/sw.js` with `Service-Worker-Allowed: /` and revalidated on each check (not a hashed asset) | written here | | | ||
| 22 | | `static/rules.json` | speculation rules: prefetch the light same-origin pages on hover (`Speculation-Rules` header); the heavy ones (tree, blob, commit, commits, compare, refs, raw, MR "since") are excluded, each costs several Git reads on the server | written here | | | 22 | | `static/rules.json` | speculation rules: prefetch the light same-origin pages on hover (`Speculation-Rules` header); the heavy ones (tree, blob, commit, commits, compare, refs, raw, MR "since") are excluded, each costs several Git reads on the server | written here | | | ||
M internal/adapters/web/jstest/install.test.mjs +5 -71
| @@ -1,22 +1,15 @@ | |||
| 1 | 1 | // Tests of the install block of static/js/ermite.js (ermiteInstall): the | |
| 2 | - | // service worker registration and the "install app" button. Run with | |
| 2 | + | // service worker registration. Run with | |
| 3 | 3 | // node --test 'internal/adapters/web/jstest/*.test.mjs' | |
| 4 | 4 | import assert from 'node:assert/strict'; | |
| 5 | 5 | import { readFileSync } from 'node:fs'; | |
| 6 | 6 | import { test } from 'node:test'; | |
| 7 | - | import { dom, el, installDom } from './dom.mjs'; | |
| 7 | + | import { installDom } from './dom.mjs'; | |
| 8 | 8 | ||
| 9 | 9 | const doc = installDom(); | |
| 10 | - | const button = el('button', { attrs: { 'data-install': '' } }); | |
| 11 | - | button.hidden = true; | |
| 12 | - | document.body.append(button); | |
| 13 | - | ||
| 14 | 10 | const setNavigator = (v) => Object.defineProperty(globalThis, 'navigator', { value: v, configurable: true, writable: true }); | |
| 15 | 11 | const listeners = {}; | |
| 16 | 12 | globalThis.addEventListener = (type, fn) => { listeners[type] = fn; }; | |
| 17 | - | const fire = (type, ev) => listeners[type](ev); | |
| 18 | - | let standalone = false; | |
| 19 | - | globalThis.matchMedia = () => ({ matches: standalone }); | |
| 20 | 13 | doc.readyState = 'loading'; | |
| 21 | 14 | const registered = []; | |
| 22 | 15 | setNavigator({ serviceWorker: { register: async (url, opts) => { registered.push([url, opts]); return {}; } } }); | |
| @@ -25,17 +18,9 @@ setNavigator({ serviceWorker: { register: async (url, opts) => { registered.push | |||
| 25 | 18 | const src = readFileSync(new URL('../static/js/ermite.js', import.meta.url), 'utf8'); | |
| 26 | 19 | const start = src.indexOf(' window.ermiteInstall = '); | |
| 27 | 20 | const end = src.indexOf(' })();', start) + ' })();'.length; | |
| 28 | - | new Function('$$', src.slice(start, end))((sel) => document.querySelectorAll(sel)); | |
| 21 | + | new Function(src.slice(start, end))(); | |
| 29 | 22 | const I = window.ermiteInstall; | |
| 30 | 23 | ||
| 31 | - | // promptEvent is a beforeinstallprompt event. | |
| 32 | - | function promptEvent(outcome = 'accepted') { | |
| 33 | - | const e = { prevented: false, prompts: 0, preventDefault() { this.prevented = true; } }; | |
| 34 | - | e.prompt = async () => { e.prompts++; }; | |
| 35 | - | e.userChoice = Promise.resolve({ outcome }); | |
| 36 | - | return e; | |
| 37 | - | } | |
| 38 | - | ||
| 39 | 24 | test('the service worker is registered at the root scope once the page has loaded', async () => { | |
| 40 | 25 | assert.equal(registered.length, 0, 'not before load'); | |
| 41 | 26 | await listeners.load(); | |
| @@ -49,57 +34,6 @@ test('a refused registration is not an error', async () => { | |||
| 49 | 34 | assert.equal(await I.register(), null); | |
| 50 | 35 | }); | |
| 51 | 36 | ||
| 52 | - | test('the button shows on beforeinstallprompt, and a click prompts once', async () => { | |
| 53 | - | const e = promptEvent(); | |
| 54 | - | assert.equal(button.hidden, true); | |
| 55 | - | fire('beforeinstallprompt', e); | |
| 56 | - | assert.equal(e.prevented, true, 'the browser banner is replaced by the button'); | |
| 57 | - | assert.equal(button.hidden, false); | |
| 58 | - | const done = listeners.click({ target: { closest: (s) => (s === '[data-install]' ? button : null) } }); | |
| 59 | - | assert.equal(done, undefined); | |
| 60 | - | assert.equal(await I.pending, 'accepted'); | |
| 61 | - | assert.equal(await I.prompt(), '', 'the event was used by the click'); | |
| 62 | - | assert.equal(e.prompts, 1); | |
| 63 | - | assert.equal(button.hidden, true); | |
| 64 | - | }); | |
| 65 | - | ||
| 66 | - | test('the button stays while the dialog is up; its focus then moves to the search', async () => { | |
| 67 | - | const search = el('button', { attrs: { 'aria-controls': 'panel-cmd' } }); | |
| 68 | - | document.body.append(search); | |
| 69 | - | const e = promptEvent('dismissed'); | |
| 70 | - | let shownDuring = null; | |
| 71 | - | e.prompt = async () => { shownDuring = !button.hidden; }; | |
| 72 | - | fire('beforeinstallprompt', e); | |
| 73 | - | button.focus(); | |
| 74 | - | dom.focused = []; | |
| 75 | - | assert.equal(await I.prompt(), 'dismissed'); | |
| 76 | - | assert.equal(shownDuring, true, 'not hidden under the dialog'); | |
| 77 | - | assert.equal(button.hidden, true); | |
| 78 | - | assert.deepEqual(dom.focused, [search]); | |
| 79 | - | dom.active = null; | |
| 80 | - | search.remove(); | |
| 81 | - | }); | |
| 82 | - | ||
| 83 | - | test('prompt without an event does nothing; a dismissal reports its outcome', async () => { | |
| 84 | - | assert.equal(await I.prompt(), ''); | |
| 85 | - | const e = promptEvent('dismissed'); | |
| 86 | - | fire('beforeinstallprompt', e); | |
| 87 | - | assert.equal(await I.prompt(), 'dismissed'); | |
| 88 | - | assert.equal(button.hidden, true); | |
| 89 | - | }); | |
| 90 | - | ||
| 91 | - | test('appinstalled hides the button', () => { | |
| 92 | - | fire('beforeinstallprompt', promptEvent()); | |
| 93 | - | assert.equal(button.hidden, false); | |
| 94 | - | fire('appinstalled', {}); | |
| 95 | - | assert.equal(button.hidden, true); | |
| 96 | - | }); | |
| 97 | - | ||
| 98 | - | test('an app that runs installed never shows the button', () => { | |
| 99 | - | standalone = true; | |
| 100 | - | const e = promptEvent(); | |
| 101 | - | fire('beforeinstallprompt', e); | |
| 102 | - | assert.equal(button.hidden, true); | |
| 103 | - | assert.equal(e.prevented, false); | |
| 104 | - | standalone = false; | |
| 37 | + | test('the page leaves the browser its own install offer', () => { | |
| 38 | + | assert.equal(listeners.beforeinstallprompt, undefined, 'no preventDefault on beforeinstallprompt'); | |
| 105 | 39 | }); | |
| @@ -1,22 +1,15 @@ | |||||
| 1 | // Tests of the install block of static/js/ermite.js (ermiteInstall): the | 1 | // Tests of the install block of static/js/ermite.js (ermiteInstall): the | ||
| 2 | - | // service worker registration and the "install app" button. Run with | 2 | + | // service worker registration. Run with |
| 3 | // node --test 'internal/adapters/web/jstest/*.test.mjs' | 3 | // node --test 'internal/adapters/web/jstest/*.test.mjs' | ||
| 4 | import assert from 'node:assert/strict'; | 4 | import assert from 'node:assert/strict'; | ||
| 5 | import { readFileSync } from 'node:fs'; | 5 | import { readFileSync } from 'node:fs'; | ||
| 6 | import { test } from 'node:test'; | 6 | import { test } from 'node:test'; | ||
| 7 | - | import { dom, el, installDom } from './dom.mjs'; | 7 | + | import { installDom } from './dom.mjs'; |
| 8 | 8 | ||||
| 9 | const doc = installDom(); | 9 | const doc = installDom(); | ||
| 10 | - | const button = el('button', { attrs: { 'data-install': '' } }); | |||
| 11 | - | button.hidden = true; | |||
| 12 | - | document.body.append(button); | |||
| 13 | - | ||||
| 14 | const setNavigator = (v) => Object.defineProperty(globalThis, 'navigator', { value: v, configurable: true, writable: true }); | 10 | const setNavigator = (v) => Object.defineProperty(globalThis, 'navigator', { value: v, configurable: true, writable: true }); | ||
| 15 | const listeners = {}; | 11 | const listeners = {}; | ||
| 16 | globalThis.addEventListener = (type, fn) => { listeners[type] = fn; }; | 12 | globalThis.addEventListener = (type, fn) => { listeners[type] = fn; }; | ||
| 17 | - | const fire = (type, ev) => listeners[type](ev); | |||
| 18 | - | let standalone = false; | |||
| 19 | - | globalThis.matchMedia = () => ({ matches: standalone }); | |||
| 20 | doc.readyState = 'loading'; | 13 | doc.readyState = 'loading'; | ||
| 21 | const registered = []; | 14 | const registered = []; | ||
| 22 | setNavigator({ serviceWorker: { register: async (url, opts) => { registered.push([url, opts]); return {}; } } }); | 15 | setNavigator({ serviceWorker: { register: async (url, opts) => { registered.push([url, opts]); return {}; } } }); | ||
| @@ -25,17 +18,9 @@ setNavigator({ serviceWorker: { register: async (url, opts) => { registered.push | |||||
| 25 | const src = readFileSync(new URL('../static/js/ermite.js', import.meta.url), 'utf8'); | 18 | const src = readFileSync(new URL('../static/js/ermite.js', import.meta.url), 'utf8'); | ||
| 26 | const start = src.indexOf(' window.ermiteInstall = '); | 19 | const start = src.indexOf(' window.ermiteInstall = '); | ||
| 27 | const end = src.indexOf(' })();', start) + ' })();'.length; | 20 | const end = src.indexOf(' })();', start) + ' })();'.length; | ||
| 28 | - | new Function('$$', src.slice(start, end))((sel) => document.querySelectorAll(sel)); | 21 | + | new Function(src.slice(start, end))(); |
| 29 | const I = window.ermiteInstall; | 22 | const I = window.ermiteInstall; | ||
| 30 | 23 | ||||
| 31 | - | // promptEvent is a beforeinstallprompt event. | |||
| 32 | - | function promptEvent(outcome = 'accepted') { | |||
| 33 | - | const e = { prevented: false, prompts: 0, preventDefault() { this.prevented = true; } }; | |||
| 34 | - | e.prompt = async () => { e.prompts++; }; | |||
| 35 | - | e.userChoice = Promise.resolve({ outcome }); | |||
| 36 | - | return e; | |||
| 37 | - | } | |||
| 38 | - | ||||
| 39 | test('the service worker is registered at the root scope once the page has loaded', async () => { | 24 | test('the service worker is registered at the root scope once the page has loaded', async () => { | ||
| 40 | assert.equal(registered.length, 0, 'not before load'); | 25 | assert.equal(registered.length, 0, 'not before load'); | ||
| 41 | await listeners.load(); | 26 | await listeners.load(); | ||
| @@ -49,57 +34,6 @@ test('a refused registration is not an error', async () => { | |||||
| 49 | assert.equal(await I.register(), null); | 34 | assert.equal(await I.register(), null); | ||
| 50 | }); | 35 | }); | ||
| 51 | 36 | ||||
| 52 | - | test('the button shows on beforeinstallprompt, and a click prompts once', async () => { | 37 | + | test('the page leaves the browser its own install offer', () => { |
| 53 | - | const e = promptEvent(); | 38 | + | assert.equal(listeners.beforeinstallprompt, undefined, 'no preventDefault on beforeinstallprompt'); |
| 54 | - | assert.equal(button.hidden, true); | |||
| 55 | - | fire('beforeinstallprompt', e); | |||
| 56 | - | assert.equal(e.prevented, true, 'the browser banner is replaced by the button'); | |||
| 57 | - | assert.equal(button.hidden, false); | |||
| 58 | - | const done = listeners.click({ target: { closest: (s) => (s === '[data-install]' ? button : null) } }); | |||
| 59 | - | assert.equal(done, undefined); | |||
| 60 | - | assert.equal(await I.pending, 'accepted'); | |||
| 61 | - | assert.equal(await I.prompt(), '', 'the event was used by the click'); | |||
| 62 | - | assert.equal(e.prompts, 1); | |||
| 63 | - | assert.equal(button.hidden, true); | |||
| 64 | - | }); | |||
| 65 | - | ||||
| 66 | - | test('the button stays while the dialog is up; its focus then moves to the search', async () => { | |||
| 67 | - | const search = el('button', { attrs: { 'aria-controls': 'panel-cmd' } }); | |||
| 68 | - | document.body.append(search); | |||
| 69 | - | const e = promptEvent('dismissed'); | |||
| 70 | - | let shownDuring = null; | |||
| 71 | - | e.prompt = async () => { shownDuring = !button.hidden; }; | |||
| 72 | - | fire('beforeinstallprompt', e); | |||
| 73 | - | button.focus(); | |||
| 74 | - | dom.focused = []; | |||
| 75 | - | assert.equal(await I.prompt(), 'dismissed'); | |||
| 76 | - | assert.equal(shownDuring, true, 'not hidden under the dialog'); | |||
| 77 | - | assert.equal(button.hidden, true); | |||
| 78 | - | assert.deepEqual(dom.focused, [search]); | |||
| 79 | - | dom.active = null; | |||
| 80 | - | search.remove(); | |||
| 81 | - | }); | |||
| 82 | - | ||||
| 83 | - | test('prompt without an event does nothing; a dismissal reports its outcome', async () => { | |||
| 84 | - | assert.equal(await I.prompt(), ''); | |||
| 85 | - | const e = promptEvent('dismissed'); | |||
| 86 | - | fire('beforeinstallprompt', e); | |||
| 87 | - | assert.equal(await I.prompt(), 'dismissed'); | |||
| 88 | - | assert.equal(button.hidden, true); | |||
| 89 | - | }); | |||
| 90 | - | ||||
| 91 | - | test('appinstalled hides the button', () => { | |||
| 92 | - | fire('beforeinstallprompt', promptEvent()); | |||
| 93 | - | assert.equal(button.hidden, false); | |||
| 94 | - | fire('appinstalled', {}); | |||
| 95 | - | assert.equal(button.hidden, true); | |||
| 96 | - | }); | |||
| 97 | - | ||||
| 98 | - | test('an app that runs installed never shows the button', () => { | |||
| 99 | - | standalone = true; | |||
| 100 | - | const e = promptEvent(); | |||
| 101 | - | fire('beforeinstallprompt', e); | |||
| 102 | - | assert.equal(button.hidden, true); | |||
| 103 | - | assert.equal(e.prevented, false); | |||
| 104 | - | standalone = false; | |||
| 105 | }); | 39 | }); | ||
M internal/adapters/web/manifest_test.go +0 -1
| @@ -57,7 +57,6 @@ func TestWebAppManifest(t *testing.T) { | |||
| 57 | 57 | page := renderToString(t, Shell(Layout{Assets: u}, nil)) | |
| 58 | 58 | assert.Contains(t, page, `<link rel="manifest" href="`+u.Manifest+`">`) | |
| 59 | 59 | assert.Contains(t, page, `<link rel="apple-touch-icon" href="`+u.AppleIcon+`">`) | |
| 60 | - | assert.Contains(t, page, `data-install`) | |
| 61 | 60 | } | |
| 62 | 61 | ||
| 63 | 62 | // The icons are exactly the size the manifest declares: Chrome does not | |
| @@ -57,7 +57,6 @@ func TestWebAppManifest(t *testing.T) { | |||||
| 57 | page := renderToString(t, Shell(Layout{Assets: u}, nil)) | 57 | page := renderToString(t, Shell(Layout{Assets: u}, nil)) | ||
| 58 | assert.Contains(t, page, `<link rel="manifest" href="`+u.Manifest+`">`) | 58 | assert.Contains(t, page, `<link rel="manifest" href="`+u.Manifest+`">`) | ||
| 59 | assert.Contains(t, page, `<link rel="apple-touch-icon" href="`+u.AppleIcon+`">`) | 59 | assert.Contains(t, page, `<link rel="apple-touch-icon" href="`+u.AppleIcon+`">`) | ||
| 60 | - | assert.Contains(t, page, `data-install`) | |||
| 61 | } | 60 | } | ||
| 62 | 61 | ||||
| 63 | // The icons are exactly the size the manifest declares: Chrome does not | 62 | // The icons are exactly the size the manifest declares: Chrome does not | ||
M internal/adapters/web/mr.go +14 -2
| @@ -5,6 +5,7 @@ package web | |||
| 5 | 5 | import ( | |
| 6 | 6 | "context" | |
| 7 | 7 | "html" | |
| 8 | + | "html/template" | |
| 8 | 9 | "io" | |
| 9 | 10 | "net/http" | |
| 10 | 11 | "net/url" | |
| @@ -196,7 +197,9 @@ type MRPage struct { | |||
| 196 | 197 | Opened Person | |
| 197 | 198 | Updated string | |
| 198 | 199 | UpdatedAt string | |
| 199 | - | Desc []TextPart | |
| 200 | + | // Desc is the description rendered as Markdown (as a README: no raw | |
| 201 | + | // HTML, filtered URLs), "" when it is empty. | |
| 202 | + | Desc template.HTML | |
| 200 | 203 | Head string | |
| 201 | 204 | HeadShort string | |
| 202 | 205 | MergedShort string | |
| @@ -469,7 +472,6 @@ func (s *Server) mrPage(ctx context.Context, r *http.Request, since bool) (templ | |||
| 469 | 472 | State: mrStateName(m), Open: open, Signed: signed, | |
| 470 | 473 | Source: visibleText(m.Source), Target: visibleText(m.Target), | |
| 471 | 474 | Author: s.who(m.Author), | |
| 472 | - | Desc: plainParts(m.Description.String()), | |
| 473 | 475 | Head: head, HeadShort: short(head), | |
| 474 | 476 | NFiles: res.Stats.FilesChanged, | |
| 475 | 477 | Adds: res.Stats.Additions, | |
| @@ -477,6 +479,16 @@ func (s *Server) mrPage(ctx context.Context, r *http.Request, since bool) (templ | |||
| 477 | 479 | Files: diffFiles(res.Diff.Files), | |
| 478 | 480 | } | |
| 479 | 481 | contextGaps(p.Files, res.Diff.Files, repoHref(d.name(), "context", head)) | |
| 482 | + | if desc := m.Description.String(); strings.TrimSpace(desc) != "" { | |
| 483 | + | // Relative links point into the source branch as it is now (its head | |
| 484 | + | // commit); the heading ids carry their own prefix, apart from the | |
| 485 | + | // ids of the diff. | |
| 486 | + | h, _, err := s.md.renderWithIDs([]byte(desc), d.name(), head, "", "mr-desc-") | |
| 487 | + | if err != nil { | |
| 488 | + | return nil, 0, err | |
| 489 | + | } | |
| 490 | + | p.Desc = h | |
| 491 | + | } | |
| 480 | 492 | p.Opened.Name = p.Author | |
| 481 | 493 | p.Opened.When, p.Opened.WhenAt = whenOf(now, m.CreatedAt) | |
| 482 | 494 | if !m.CreatedAt.IsZero() { | |
| @@ -5,6 +5,7 @@ package web | |||||
| 5 | import ( | 5 | import ( | ||
| 6 | "context" | 6 | "context" | ||
| 7 | "html" | 7 | "html" | ||
| 8 | + | "html/template" | |||
| 8 | "io" | 9 | "io" | ||
| 9 | "net/http" | 10 | "net/http" | ||
| 10 | "net/url" | 11 | "net/url" | ||
| @@ -196,7 +197,9 @@ type MRPage struct { | |||||
| 196 | Opened Person | 197 | Opened Person | ||
| 197 | Updated string | 198 | Updated string | ||
| 198 | UpdatedAt string | 199 | UpdatedAt string | ||
| 199 | - | Desc []TextPart | 200 | + | // Desc is the description rendered as Markdown (as a README: no raw |
| 201 | + | // HTML, filtered URLs), "" when it is empty. | |||
| 202 | + | Desc template.HTML | |||
| 200 | Head string | 203 | Head string | ||
| 201 | HeadShort string | 204 | HeadShort string | ||
| 202 | MergedShort string | 205 | MergedShort string | ||
| @@ -469,7 +472,6 @@ func (s *Server) mrPage(ctx context.Context, r *http.Request, since bool) (templ | |||||
| 469 | State: mrStateName(m), Open: open, Signed: signed, | 472 | State: mrStateName(m), Open: open, Signed: signed, | ||
| 470 | Source: visibleText(m.Source), Target: visibleText(m.Target), | 473 | Source: visibleText(m.Source), Target: visibleText(m.Target), | ||
| 471 | Author: s.who(m.Author), | 474 | Author: s.who(m.Author), | ||
| 472 | - | Desc: plainParts(m.Description.String()), | |||
| 473 | Head: head, HeadShort: short(head), | 475 | Head: head, HeadShort: short(head), | ||
| 474 | NFiles: res.Stats.FilesChanged, | 476 | NFiles: res.Stats.FilesChanged, | ||
| 475 | Adds: res.Stats.Additions, | 477 | Adds: res.Stats.Additions, | ||
| @@ -477,6 +479,16 @@ func (s *Server) mrPage(ctx context.Context, r *http.Request, since bool) (templ | |||||
| 477 | Files: diffFiles(res.Diff.Files), | 479 | Files: diffFiles(res.Diff.Files), | ||
| 478 | } | 480 | } | ||
| 479 | contextGaps(p.Files, res.Diff.Files, repoHref(d.name(), "context", head)) | 481 | contextGaps(p.Files, res.Diff.Files, repoHref(d.name(), "context", head)) | ||
| 482 | + | if desc := m.Description.String(); strings.TrimSpace(desc) != "" { | |||
| 483 | + | // Relative links point into the source branch as it is now (its head | |||
| 484 | + | // commit); the heading ids carry their own prefix, apart from the | |||
| 485 | + | // ids of the diff. | |||
| 486 | + | h, _, err := s.md.renderWithIDs([]byte(desc), d.name(), head, "", "mr-desc-") | |||
| 487 | + | if err != nil { | |||
| 488 | + | return nil, 0, err | |||
| 489 | + | } | |||
| 490 | + | p.Desc = h | |||
| 491 | + | } | |||
| 480 | p.Opened.Name = p.Author | 492 | p.Opened.Name = p.Author | ||
| 481 | p.Opened.When, p.Opened.WhenAt = whenOf(now, m.CreatedAt) | 493 | p.Opened.When, p.Opened.WhenAt = whenOf(now, m.CreatedAt) | ||
| 482 | if !m.CreatedAt.IsZero() { | 494 | if !m.CreatedAt.IsZero() { | ||
M internal/adapters/web/mr.templ +5 -3
| @@ -140,8 +140,10 @@ templ MergeRequest(l Layout, p MRPage) { | |||
| 140 | 140 | </dl> | |
| 141 | 141 | </header> | |
| 142 | 142 | @LiveSlot("mr-notice") | |
| 143 | - | if len(p.Desc) > 0 { | |
| 144 | - | <p class="mr-desc">@userText(p.Desc)</p> | |
| 143 | + | if p.Desc != "" { | |
| 144 | + | <article class="mr-desc prose" aria-label="description" hx-ignore> | |
| 145 | + | @templ.Raw(string(p.Desc)) | |
| 146 | + | </article> | |
| 145 | 147 | } | |
| 146 | 148 | if p.Since != nil { | |
| 147 | 149 | <nav class="since" aria-label="Diff range"> | |
| @@ -481,7 +483,7 @@ templ Compare(l Layout, p ComparePage) { | |||
| 481 | 483 | <label for="mr-title">title</label> | |
| 482 | 484 | <input id="mr-title" name="title" type="text" maxlength="120" required value={ p.Create.Title } autocomplete="off"/> | |
| 483 | 485 | <label for="mr-desc">description</label> | |
| 484 | - | <textarea id="mr-desc" name="description" rows="4" maxlength="8000" placeholder="plain text, optional"></textarea> | |
| 486 | + | <textarea id="mr-desc" name="description" rows="4" maxlength="8000" placeholder="Markdown, optional"></textarea> | |
| 485 | 487 | <div class="f-btns"> | |
| 486 | 488 | <button type="submit" class="btn primary">Create merge request</button> | |
| 487 | 489 | </div> | |
| @@ -140,8 +140,10 @@ templ MergeRequest(l Layout, p MRPage) { | |||||
| 140 | </dl> | 140 | </dl> | ||
| 141 | </header> | 141 | </header> | ||
| 142 | @LiveSlot("mr-notice") | 142 | @LiveSlot("mr-notice") | ||
| 143 | - | if len(p.Desc) > 0 { | 143 | + | if p.Desc != "" { |
| 144 | - | <p class="mr-desc">@userText(p.Desc)</p> | 144 | + | <article class="mr-desc prose" aria-label="description" hx-ignore> |
| 145 | + | @templ.Raw(string(p.Desc)) | |||
| 146 | + | </article> | |||
| 145 | } | 147 | } | ||
| 146 | if p.Since != nil { | 148 | if p.Since != nil { | ||
| 147 | <nav class="since" aria-label="Diff range"> | 149 | <nav class="since" aria-label="Diff range"> | ||
| @@ -481,7 +483,7 @@ templ Compare(l Layout, p ComparePage) { | |||||
| 481 | <label for="mr-title">title</label> | 483 | <label for="mr-title">title</label> | ||
| 482 | <input id="mr-title" name="title" type="text" maxlength="120" required value={ p.Create.Title } autocomplete="off"/> | 484 | <input id="mr-title" name="title" type="text" maxlength="120" required value={ p.Create.Title } autocomplete="off"/> | ||
| 483 | <label for="mr-desc">description</label> | 485 | <label for="mr-desc">description</label> | ||
| 484 | - | <textarea id="mr-desc" name="description" rows="4" maxlength="8000" placeholder="plain text, optional"></textarea> | 486 | + | <textarea id="mr-desc" name="description" rows="4" maxlength="8000" placeholder="Markdown, optional"></textarea> |
| 485 | <div class="f-btns"> | 487 | <div class="f-btns"> | ||
| 486 | <button type="submit" class="btn primary">Create merge request</button> | 488 | <button type="submit" class="btn primary">Create merge request</button> | ||
| 487 | </div> | 489 | </div> | ||
M internal/adapters/web/mr_templ.go +100 -100
| @@ -799,16 +799,16 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 799 | 799 | if templ_7745c5c3_Err != nil { | |
| 800 | 800 | return templ_7745c5c3_Err | |
| 801 | 801 | } | |
| 802 | - | if len(p.Desc) > 0 { | |
| 803 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<p class=\"mr-desc\">") | |
| 802 | + | if p.Desc != "" { | |
| 803 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<article class=\"mr-desc prose\" aria-label=\"description\" hx-ignore>") | |
| 804 | 804 | if templ_7745c5c3_Err != nil { | |
| 805 | 805 | return templ_7745c5c3_Err | |
| 806 | 806 | } | |
| 807 | - | templ_7745c5c3_Err = userText(p.Desc).Render(ctx, templ_7745c5c3_Buffer) | |
| 807 | + | templ_7745c5c3_Err = templ.Raw(string(p.Desc)).Render(ctx, templ_7745c5c3_Buffer) | |
| 808 | 808 | if templ_7745c5c3_Err != nil { | |
| 809 | 809 | return templ_7745c5c3_Err | |
| 810 | 810 | } | |
| 811 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "</p>") | |
| 811 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "</article>") | |
| 812 | 812 | if templ_7745c5c3_Err != nil { | |
| 813 | 813 | return templ_7745c5c3_Err | |
| 814 | 814 | } | |
| @@ -825,7 +825,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 825 | 825 | var templ_7745c5c3_Var42 templ.SafeURL | |
| 826 | 826 | templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Since.AllHref)) | |
| 827 | 827 | if templ_7745c5c3_Err != nil { | |
| 828 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 149, Col: 42} | |
| 828 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 151, Col: 42} | |
| 829 | 829 | } | |
| 830 | 830 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) | |
| 831 | 831 | if templ_7745c5c3_Err != nil { | |
| @@ -848,7 +848,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 848 | 848 | var templ_7745c5c3_Var43 string | |
| 849 | 849 | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 850 | 850 | if templ_7745c5c3_Err != nil { | |
| 851 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 153, Col: 49} | |
| 851 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 155, Col: 49} | |
| 852 | 852 | } | |
| 853 | 853 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | |
| 854 | 854 | if templ_7745c5c3_Err != nil { | |
| @@ -861,7 +861,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 861 | 861 | var templ_7745c5c3_Var44 templ.SafeURL | |
| 862 | 862 | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Since.SinceHref)) | |
| 863 | 863 | if templ_7745c5c3_Err != nil { | |
| 864 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 155, Col: 44} | |
| 864 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 157, Col: 44} | |
| 865 | 865 | } | |
| 866 | 866 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var44)) | |
| 867 | 867 | if templ_7745c5c3_Err != nil { | |
| @@ -884,7 +884,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 884 | 884 | var templ_7745c5c3_Var45 string | |
| 885 | 885 | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.JoinStringErrs(p.Since.ReadShort) | |
| 886 | 886 | if templ_7745c5c3_Err != nil { | |
| 887 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 159, Col: 64} | |
| 887 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 161, Col: 64} | |
| 888 | 888 | } | |
| 889 | 889 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var45)) | |
| 890 | 890 | if templ_7745c5c3_Err != nil { | |
| @@ -897,7 +897,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 897 | 897 | var templ_7745c5c3_Var46 string | |
| 898 | 898 | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.JoinStringErrs(p.Since.HeadShort) | |
| 899 | 899 | if templ_7745c5c3_Err != nil { | |
| 900 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 159, Col: 90} | |
| 900 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 161, Col: 90} | |
| 901 | 901 | } | |
| 902 | 902 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var46)) | |
| 903 | 903 | if templ_7745c5c3_Err != nil { | |
| @@ -920,7 +920,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 920 | 920 | var templ_7745c5c3_Var47 string | |
| 921 | 921 | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(p.SinceNote) | |
| 922 | 922 | if templ_7745c5c3_Err != nil { | |
| 923 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 163, Col: 34} | |
| 923 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 165, Col: 34} | |
| 924 | 924 | } | |
| 925 | 925 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | |
| 926 | 926 | if templ_7745c5c3_Err != nil { | |
| @@ -961,7 +961,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 961 | 961 | var templ_7745c5c3_Var48 string | |
| 962 | 962 | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | |
| 963 | 963 | if templ_7745c5c3_Err != nil { | |
| 964 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 173, Col: 29} | |
| 964 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 175, Col: 29} | |
| 965 | 965 | } | |
| 966 | 966 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) | |
| 967 | 967 | if templ_7745c5c3_Err != nil { | |
| @@ -984,7 +984,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 984 | 984 | var templ_7745c5c3_Var49 string | |
| 985 | 985 | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 986 | 986 | if templ_7745c5c3_Err != nil { | |
| 987 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 179, Col: 22} | |
| 987 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 181, Col: 22} | |
| 988 | 988 | } | |
| 989 | 989 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var49) | |
| 990 | 990 | if templ_7745c5c3_Err != nil { | |
| @@ -1002,7 +1002,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1002 | 1002 | var templ_7745c5c3_Var50 string | |
| 1003 | 1003 | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 1004 | 1004 | if templ_7745c5c3_Err != nil { | |
| 1005 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 181, Col: 22} | |
| 1005 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 183, Col: 22} | |
| 1006 | 1006 | } | |
| 1007 | 1007 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var50) | |
| 1008 | 1008 | if templ_7745c5c3_Err != nil { | |
| @@ -1042,7 +1042,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1042 | 1042 | var templ_7745c5c3_Var51 string | |
| 1043 | 1043 | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) | |
| 1044 | 1044 | if templ_7745c5c3_Err != nil { | |
| 1045 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 194, Col: 97} | |
| 1045 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 196, Col: 97} | |
| 1046 | 1046 | } | |
| 1047 | 1047 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var51)) | |
| 1048 | 1048 | if templ_7745c5c3_Err != nil { | |
| @@ -1055,7 +1055,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||
| 1055 | 1055 | var templ_7745c5c3_Var52 string | |
| 1056 | 1056 | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) | |
| 1057 | 1057 | if templ_7745c5c3_Err != nil { | |
| 1058 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 194, Col: 126} | |
| 1058 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 196, Col: 126} | |
| 1059 | 1059 | } | |
| 1060 | 1060 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var52)) | |
| 1061 | 1061 | if templ_7745c5c3_Err != nil { | |
| @@ -1136,7 +1136,7 @@ func branchLink(name, href string) templ.Component { | |||
| 1136 | 1136 | var templ_7745c5c3_Var54 templ.SafeURL | |
| 1137 | 1137 | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | |
| 1138 | 1138 | if templ_7745c5c3_Err != nil { | |
| 1139 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 212, Col: 31} | |
| 1139 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 214, Col: 31} | |
| 1140 | 1140 | } | |
| 1141 | 1141 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | |
| 1142 | 1142 | if templ_7745c5c3_Err != nil { | |
| @@ -1149,7 +1149,7 @@ func branchLink(name, href string) templ.Component { | |||
| 1149 | 1149 | var templ_7745c5c3_Var55 string | |
| 1150 | 1150 | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(name) | |
| 1151 | 1151 | if templ_7745c5c3_Err != nil { | |
| 1152 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 212, Col: 40} | |
| 1152 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 214, Col: 40} | |
| 1153 | 1153 | } | |
| 1154 | 1154 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | |
| 1155 | 1155 | if templ_7745c5c3_Err != nil { | |
| @@ -1163,7 +1163,7 @@ func branchLink(name, href string) templ.Component { | |||
| 1163 | 1163 | var templ_7745c5c3_Var56 string | |
| 1164 | 1164 | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinStringErrs(name) | |
| 1165 | 1165 | if templ_7745c5c3_Err != nil { | |
| 1166 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 214, Col: 8} | |
| 1166 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 216, Col: 8} | |
| 1167 | 1167 | } | |
| 1168 | 1168 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | |
| 1169 | 1169 | if templ_7745c5c3_Err != nil { | |
| @@ -1245,7 +1245,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1245 | 1245 | var templ_7745c5c3_Var59 string | |
| 1246 | 1246 | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) | |
| 1247 | 1247 | if templ_7745c5c3_Err != nil { | |
| 1248 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 234, Col: 42} | |
| 1248 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 236, Col: 42} | |
| 1249 | 1249 | } | |
| 1250 | 1250 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) | |
| 1251 | 1251 | if templ_7745c5c3_Err != nil { | |
| @@ -1258,7 +1258,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1258 | 1258 | var templ_7745c5c3_Var60 string | |
| 1259 | 1259 | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) | |
| 1260 | 1260 | if templ_7745c5c3_Err != nil { | |
| 1261 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 234, Col: 81} | |
| 1261 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 236, Col: 81} | |
| 1262 | 1262 | } | |
| 1263 | 1263 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var60) | |
| 1264 | 1264 | if templ_7745c5c3_Err != nil { | |
| @@ -1271,7 +1271,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1271 | 1271 | var templ_7745c5c3_Var61 string | |
| 1272 | 1272 | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 1273 | 1273 | if templ_7745c5c3_Err != nil { | |
| 1274 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 236, Col: 33} | |
| 1274 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 33} | |
| 1275 | 1275 | } | |
| 1276 | 1276 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var61)) | |
| 1277 | 1277 | if templ_7745c5c3_Err != nil { | |
| @@ -1285,7 +1285,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1285 | 1285 | var templ_7745c5c3_Var62 string | |
| 1286 | 1286 | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1287 | 1287 | if templ_7745c5c3_Err != nil { | |
| 1288 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 9} | |
| 1288 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 9} | |
| 1289 | 1289 | } | |
| 1290 | 1290 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var62)) | |
| 1291 | 1291 | if templ_7745c5c3_Err != nil { | |
| @@ -1298,7 +1298,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1298 | 1298 | var templ_7745c5c3_Var63 string | |
| 1299 | 1299 | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 1300 | 1300 | if templ_7745c5c3_Err != nil { | |
| 1301 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 49} | |
| 1301 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 49} | |
| 1302 | 1302 | } | |
| 1303 | 1303 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var63) | |
| 1304 | 1304 | if templ_7745c5c3_Err != nil { | |
| @@ -1311,7 +1311,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1311 | 1311 | var templ_7745c5c3_Var64 string | |
| 1312 | 1312 | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) | |
| 1313 | 1313 | if templ_7745c5c3_Err != nil { | |
| 1314 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 65} | |
| 1314 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 65} | |
| 1315 | 1315 | } | |
| 1316 | 1316 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var64) | |
| 1317 | 1317 | if templ_7745c5c3_Err != nil { | |
| @@ -1324,7 +1324,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1324 | 1324 | var templ_7745c5c3_Var65 string | |
| 1325 | 1325 | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 1326 | 1326 | if templ_7745c5c3_Err != nil { | |
| 1327 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 76} | |
| 1327 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 76} | |
| 1328 | 1328 | } | |
| 1329 | 1329 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | |
| 1330 | 1330 | if templ_7745c5c3_Err != nil { | |
| @@ -1339,7 +1339,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1339 | 1339 | var templ_7745c5c3_Var66 string | |
| 1340 | 1340 | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1341 | 1341 | if templ_7745c5c3_Err != nil { | |
| 1342 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 241, Col: 9} | |
| 1342 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 243, Col: 9} | |
| 1343 | 1343 | } | |
| 1344 | 1344 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var66)) | |
| 1345 | 1345 | if templ_7745c5c3_Err != nil { | |
| @@ -1354,7 +1354,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1354 | 1354 | var templ_7745c5c3_Var67 string | |
| 1355 | 1355 | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1356 | 1356 | if templ_7745c5c3_Err != nil { | |
| 1357 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 244, Col: 9} | |
| 1357 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 246, Col: 9} | |
| 1358 | 1358 | } | |
| 1359 | 1359 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | |
| 1360 | 1360 | if templ_7745c5c3_Err != nil { | |
| @@ -1369,7 +1369,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1369 | 1369 | var templ_7745c5c3_Var68 string | |
| 1370 | 1370 | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | |
| 1371 | 1371 | if templ_7745c5c3_Err != nil { | |
| 1372 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 9} | |
| 1372 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 249, Col: 9} | |
| 1373 | 1373 | } | |
| 1374 | 1374 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | |
| 1375 | 1375 | if templ_7745c5c3_Err != nil { | |
| @@ -1382,7 +1382,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1382 | 1382 | var templ_7745c5c3_Var69 string | |
| 1383 | 1383 | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | |
| 1384 | 1384 | if templ_7745c5c3_Err != nil { | |
| 1385 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 47} | |
| 1385 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 249, Col: 47} | |
| 1386 | 1386 | } | |
| 1387 | 1387 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var69)) | |
| 1388 | 1388 | if templ_7745c5c3_Err != nil { | |
| @@ -1413,7 +1413,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1413 | 1413 | var templ_7745c5c3_Var70 templ.SafeURL | |
| 1414 | 1414 | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) | |
| 1415 | 1415 | if templ_7745c5c3_Err != nil { | |
| 1416 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 252, Col: 77} | |
| 1416 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 254, Col: 77} | |
| 1417 | 1417 | } | |
| 1418 | 1418 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var70)) | |
| 1419 | 1419 | if templ_7745c5c3_Err != nil { | |
| @@ -1426,7 +1426,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1426 | 1426 | var templ_7745c5c3_Var71 string | |
| 1427 | 1427 | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) | |
| 1428 | 1428 | if templ_7745c5c3_Err != nil { | |
| 1429 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 253, Col: 74} | |
| 1429 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 255, Col: 74} | |
| 1430 | 1430 | } | |
| 1431 | 1431 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) | |
| 1432 | 1432 | if templ_7745c5c3_Err != nil { | |
| @@ -1444,7 +1444,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1444 | 1444 | var templ_7745c5c3_Var72 string | |
| 1445 | 1445 | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) | |
| 1446 | 1446 | if templ_7745c5c3_Err != nil { | |
| 1447 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 255, Col: 66} | |
| 1447 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 257, Col: 66} | |
| 1448 | 1448 | } | |
| 1449 | 1449 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) | |
| 1450 | 1450 | if templ_7745c5c3_Err != nil { | |
| @@ -1462,7 +1462,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||
| 1462 | 1462 | var templ_7745c5c3_Var73 string | |
| 1463 | 1463 | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) | |
| 1464 | 1464 | if templ_7745c5c3_Err != nil { | |
| 1465 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 257, Col: 55} | |
| 1465 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 259, Col: 55} | |
| 1466 | 1466 | } | |
| 1467 | 1467 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | |
| 1468 | 1468 | if templ_7745c5c3_Err != nil { | |
| @@ -1517,7 +1517,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1517 | 1517 | var templ_7745c5c3_Var75 templ.SafeURL | |
| 1518 | 1518 | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) | |
| 1519 | 1519 | if templ_7745c5c3_Err != nil { | |
| 1520 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 272, Col: 67} | |
| 1520 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 274, Col: 67} | |
| 1521 | 1521 | } | |
| 1522 | 1522 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) | |
| 1523 | 1523 | if templ_7745c5c3_Err != nil { | |
| @@ -1530,7 +1530,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1530 | 1530 | var templ_7745c5c3_Var76 string | |
| 1531 | 1531 | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | |
| 1532 | 1532 | if templ_7745c5c3_Err != nil { | |
| 1533 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 273, Col: 28} | |
| 1533 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 275, Col: 28} | |
| 1534 | 1534 | } | |
| 1535 | 1535 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var76) | |
| 1536 | 1536 | if templ_7745c5c3_Err != nil { | |
| @@ -1543,7 +1543,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1543 | 1543 | var templ_7745c5c3_Var77 string | |
| 1544 | 1544 | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) | |
| 1545 | 1545 | if templ_7745c5c3_Err != nil { | |
| 1546 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 273, Col: 40} | |
| 1546 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 275, Col: 40} | |
| 1547 | 1547 | } | |
| 1548 | 1548 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var77)) | |
| 1549 | 1549 | if templ_7745c5c3_Err != nil { | |
| @@ -1556,7 +1556,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1556 | 1556 | var templ_7745c5c3_Var78 string | |
| 1557 | 1557 | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | |
| 1558 | 1558 | if templ_7745c5c3_Err != nil { | |
| 1559 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 275, Col: 21} | |
| 1559 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 277, Col: 21} | |
| 1560 | 1560 | } | |
| 1561 | 1561 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var78) | |
| 1562 | 1562 | if templ_7745c5c3_Err != nil { | |
| @@ -1584,7 +1584,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1584 | 1584 | var templ_7745c5c3_Var79 string | |
| 1585 | 1585 | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | |
| 1586 | 1586 | if templ_7745c5c3_Err != nil { | |
| 1587 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 286, Col: 50} | |
| 1587 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 288, Col: 50} | |
| 1588 | 1588 | } | |
| 1589 | 1589 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) | |
| 1590 | 1590 | if templ_7745c5c3_Err != nil { | |
| @@ -1597,7 +1597,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1597 | 1597 | var templ_7745c5c3_Var80 string | |
| 1598 | 1598 | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) | |
| 1599 | 1599 | if templ_7745c5c3_Err != nil { | |
| 1600 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 287, Col: 50} | |
| 1600 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 50} | |
| 1601 | 1601 | } | |
| 1602 | 1602 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) | |
| 1603 | 1603 | if templ_7745c5c3_Err != nil { | |
| @@ -1610,7 +1610,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1610 | 1610 | var templ_7745c5c3_Var81 string | |
| 1611 | 1611 | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) | |
| 1612 | 1612 | if templ_7745c5c3_Err != nil { | |
| 1613 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 288, Col: 50} | |
| 1613 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 290, Col: 50} | |
| 1614 | 1614 | } | |
| 1615 | 1615 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var81) | |
| 1616 | 1616 | if templ_7745c5c3_Err != nil { | |
| @@ -1629,7 +1629,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1629 | 1629 | var templ_7745c5c3_Var82 string | |
| 1630 | 1630 | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) | |
| 1631 | 1631 | if templ_7745c5c3_Err != nil { | |
| 1632 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 291, Col: 56} | |
| 1632 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 293, Col: 56} | |
| 1633 | 1633 | } | |
| 1634 | 1634 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) | |
| 1635 | 1635 | if templ_7745c5c3_Err != nil { | |
| @@ -1652,7 +1652,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||
| 1652 | 1652 | var templ_7745c5c3_Var83 templ.SafeURL | |
| 1653 | 1653 | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) | |
| 1654 | 1654 | if templ_7745c5c3_Err != nil { | |
| 1655 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 296, Col: 49} | |
| 1655 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 298, Col: 49} | |
| 1656 | 1656 | } | |
| 1657 | 1657 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var83)) | |
| 1658 | 1658 | if templ_7745c5c3_Err != nil { | |
| @@ -1699,7 +1699,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1699 | 1699 | var templ_7745c5c3_Var85 string | |
| 1700 | 1700 | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 1701 | 1701 | if templ_7745c5c3_Err != nil { | |
| 1702 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 305, Col: 49} | |
| 1702 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 307, Col: 49} | |
| 1703 | 1703 | } | |
| 1704 | 1704 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var85)) | |
| 1705 | 1705 | if templ_7745c5c3_Err != nil { | |
| @@ -1728,7 +1728,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1728 | 1728 | var templ_7745c5c3_Var86 string | |
| 1729 | 1729 | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) | |
| 1730 | 1730 | if templ_7745c5c3_Err != nil { | |
| 1731 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 314, Col: 71} | |
| 1731 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 316, Col: 71} | |
| 1732 | 1732 | } | |
| 1733 | 1733 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var86)) | |
| 1734 | 1734 | if templ_7745c5c3_Err != nil { | |
| @@ -1756,7 +1756,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1756 | 1756 | var templ_7745c5c3_Var87 templ.SafeURL | |
| 1757 | 1757 | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) | |
| 1758 | 1758 | if templ_7745c5c3_Err != nil { | |
| 1759 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 318, Col: 36} | |
| 1759 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 320, Col: 36} | |
| 1760 | 1760 | } | |
| 1761 | 1761 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var87)) | |
| 1762 | 1762 | if templ_7745c5c3_Err != nil { | |
| @@ -1769,7 +1769,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1769 | 1769 | var templ_7745c5c3_Var88 string | |
| 1770 | 1770 | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | |
| 1771 | 1771 | if templ_7745c5c3_Err != nil { | |
| 1772 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 318, Col: 48} | |
| 1772 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 320, Col: 48} | |
| 1773 | 1773 | } | |
| 1774 | 1774 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) | |
| 1775 | 1775 | if templ_7745c5c3_Err != nil { | |
| @@ -1782,7 +1782,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1782 | 1782 | var templ_7745c5c3_Var89 string | |
| 1783 | 1783 | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | |
| 1784 | 1784 | if templ_7745c5c3_Err != nil { | |
| 1785 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 319, Col: 32} | |
| 1785 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 321, Col: 32} | |
| 1786 | 1786 | } | |
| 1787 | 1787 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var89)) | |
| 1788 | 1788 | if templ_7745c5c3_Err != nil { | |
| @@ -1795,7 +1795,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1795 | 1795 | var templ_7745c5c3_Var90 string | |
| 1796 | 1796 | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 1797 | 1797 | if templ_7745c5c3_Err != nil { | |
| 1798 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 321, Col: 16} | |
| 1798 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 16} | |
| 1799 | 1799 | } | |
| 1800 | 1800 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var90)) | |
| 1801 | 1801 | if templ_7745c5c3_Err != nil { | |
| @@ -1809,7 +1809,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1809 | 1809 | var templ_7745c5c3_Var91 string | |
| 1810 | 1810 | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 1811 | 1811 | if templ_7745c5c3_Err != nil { | |
| 1812 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 15} | |
| 1812 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 325, Col: 15} | |
| 1813 | 1813 | } | |
| 1814 | 1814 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) | |
| 1815 | 1815 | if templ_7745c5c3_Err != nil { | |
| @@ -1822,7 +1822,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1822 | 1822 | var templ_7745c5c3_Var92 string | |
| 1823 | 1823 | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 1824 | 1824 | if templ_7745c5c3_Err != nil { | |
| 1825 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 42} | |
| 1825 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 325, Col: 42} | |
| 1826 | 1826 | } | |
| 1827 | 1827 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) | |
| 1828 | 1828 | if templ_7745c5c3_Err != nil { | |
| @@ -1835,7 +1835,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1835 | 1835 | var templ_7745c5c3_Var93 string | |
| 1836 | 1836 | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 1837 | 1837 | if templ_7745c5c3_Err != nil { | |
| 1838 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 53} | |
| 1838 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 325, Col: 53} | |
| 1839 | 1839 | } | |
| 1840 | 1840 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var93)) | |
| 1841 | 1841 | if templ_7745c5c3_Err != nil { | |
| @@ -1850,7 +1850,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1850 | 1850 | var templ_7745c5c3_Var94 string | |
| 1851 | 1851 | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") | |
| 1852 | 1852 | if templ_7745c5c3_Err != nil { | |
| 1853 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 326, Col: 18} | |
| 1853 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 328, Col: 18} | |
| 1854 | 1854 | } | |
| 1855 | 1855 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var94)) | |
| 1856 | 1856 | if templ_7745c5c3_Err != nil { | |
| @@ -1880,7 +1880,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1880 | 1880 | var templ_7745c5c3_Var95 string | |
| 1881 | 1881 | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) | |
| 1882 | 1882 | if templ_7745c5c3_Err != nil { | |
| 1883 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 336, Col: 34} | |
| 1883 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 338, Col: 34} | |
| 1884 | 1884 | } | |
| 1885 | 1885 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var95)) | |
| 1886 | 1886 | if templ_7745c5c3_Err != nil { | |
| @@ -1898,7 +1898,7 @@ func mrRail(p MRPage) templ.Component { | |||
| 1898 | 1898 | var templ_7745c5c3_Var96 string | |
| 1899 | 1899 | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) | |
| 1900 | 1900 | if templ_7745c5c3_Err != nil { | |
| 1901 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 343, Col: 36} | |
| 1901 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 345, Col: 36} | |
| 1902 | 1902 | } | |
| 1903 | 1903 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var96)) | |
| 1904 | 1904 | if templ_7745c5c3_Err != nil { | |
| @@ -1959,7 +1959,7 @@ func mrBar(p MRPage) templ.Component { | |||
| 1959 | 1959 | var templ_7745c5c3_Var98 string | |
| 1960 | 1960 | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | |
| 1961 | 1961 | if templ_7745c5c3_Err != nil { | |
| 1962 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 362, Col: 55} | |
| 1962 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 364, Col: 55} | |
| 1963 | 1963 | } | |
| 1964 | 1964 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | |
| 1965 | 1965 | if templ_7745c5c3_Err != nil { | |
| @@ -1972,7 +1972,7 @@ func mrBar(p MRPage) templ.Component { | |||
| 1972 | 1972 | var templ_7745c5c3_Var99 string | |
| 1973 | 1973 | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | |
| 1974 | 1974 | if templ_7745c5c3_Err != nil { | |
| 1975 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 362, Col: 95} | |
| 1975 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 364, Col: 95} | |
| 1976 | 1976 | } | |
| 1977 | 1977 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | |
| 1978 | 1978 | if templ_7745c5c3_Err != nil { | |
| @@ -1985,7 +1985,7 @@ func mrBar(p MRPage) templ.Component { | |||
| 1985 | 1985 | var templ_7745c5c3_Var100 string | |
| 1986 | 1986 | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | |
| 1987 | 1987 | if templ_7745c5c3_Err != nil { | |
| 1988 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 362, Col: 140} | |
| 1988 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 364, Col: 140} | |
| 1989 | 1989 | } | |
| 1990 | 1990 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) | |
| 1991 | 1991 | if templ_7745c5c3_Err != nil { | |
| @@ -2089,7 +2089,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2089 | 2089 | var templ_7745c5c3_Var102 string | |
| 2090 | 2090 | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) | |
| 2091 | 2091 | if templ_7745c5c3_Err != nil { | |
| 2092 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 395, Col: 19} | |
| 2092 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 397, Col: 19} | |
| 2093 | 2093 | } | |
| 2094 | 2094 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | |
| 2095 | 2095 | if templ_7745c5c3_Err != nil { | |
| @@ -2103,7 +2103,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2103 | 2103 | var templ_7745c5c3_Var103 string | |
| 2104 | 2104 | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2105 | 2105 | if templ_7745c5c3_Err != nil { | |
| 2106 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 399, Col: 18} | |
| 2106 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 401, Col: 18} | |
| 2107 | 2107 | } | |
| 2108 | 2108 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | |
| 2109 | 2109 | if templ_7745c5c3_Err != nil { | |
| @@ -2121,7 +2121,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2121 | 2121 | var templ_7745c5c3_Var104 templ.SafeURL | |
| 2122 | 2122 | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) | |
| 2123 | 2123 | if templ_7745c5c3_Err != nil { | |
| 2124 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 80} | |
| 2124 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 405, Col: 80} | |
| 2125 | 2125 | } | |
| 2126 | 2126 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | |
| 2127 | 2127 | if templ_7745c5c3_Err != nil { | |
| @@ -2139,7 +2139,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2139 | 2139 | var templ_7745c5c3_Var105 templ.SafeURL | |
| 2140 | 2140 | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) | |
| 2141 | 2141 | if templ_7745c5c3_Err != nil { | |
| 2142 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 407, Col: 80} | |
| 2142 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 409, Col: 80} | |
| 2143 | 2143 | } | |
| 2144 | 2144 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | |
| 2145 | 2145 | if templ_7745c5c3_Err != nil { | |
| @@ -2152,7 +2152,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2152 | 2152 | var templ_7745c5c3_Var106 string | |
| 2153 | 2153 | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | |
| 2154 | 2154 | if templ_7745c5c3_Err != nil { | |
| 2155 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 408, Col: 59} | |
| 2155 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 410, Col: 59} | |
| 2156 | 2156 | } | |
| 2157 | 2157 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var106) | |
| 2158 | 2158 | if templ_7745c5c3_Err != nil { | |
| @@ -2170,7 +2170,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2170 | 2170 | var templ_7745c5c3_Var107 string | |
| 2171 | 2171 | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) | |
| 2172 | 2172 | if templ_7745c5c3_Err != nil { | |
| 2173 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 413, Col: 55} | |
| 2173 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 415, Col: 55} | |
| 2174 | 2174 | } | |
| 2175 | 2175 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var107) | |
| 2176 | 2176 | if templ_7745c5c3_Err != nil { | |
| @@ -2193,7 +2193,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2193 | 2193 | var templ_7745c5c3_Var108 string | |
| 2194 | 2194 | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) | |
| 2195 | 2195 | if templ_7745c5c3_Err != nil { | |
| 2196 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 414, Col: 17} | |
| 2196 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 416, Col: 17} | |
| 2197 | 2197 | } | |
| 2198 | 2198 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var108)) | |
| 2199 | 2199 | if templ_7745c5c3_Err != nil { | |
| @@ -2211,7 +2211,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2211 | 2211 | var templ_7745c5c3_Var109 string | |
| 2212 | 2212 | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) | |
| 2213 | 2213 | if templ_7745c5c3_Err != nil { | |
| 2214 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 416, Col: 46} | |
| 2214 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 418, Col: 46} | |
| 2215 | 2215 | } | |
| 2216 | 2216 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) | |
| 2217 | 2217 | if templ_7745c5c3_Err != nil { | |
| @@ -2239,7 +2239,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2239 | 2239 | var templ_7745c5c3_Var110 string | |
| 2240 | 2240 | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 2241 | 2241 | if templ_7745c5c3_Err != nil { | |
| 2242 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 422, Col: 102} | |
| 2242 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 424, Col: 102} | |
| 2243 | 2243 | } | |
| 2244 | 2244 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) | |
| 2245 | 2245 | if templ_7745c5c3_Err != nil { | |
| @@ -2257,7 +2257,7 @@ func mergeMenu(p MRPage) templ.Component { | |||
| 2257 | 2257 | var templ_7745c5c3_Var111 string | |
| 2258 | 2258 | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2259 | 2259 | if templ_7745c5c3_Err != nil { | |
| 2260 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 425, Col: 82} | |
| 2260 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 427, Col: 82} | |
| 2261 | 2261 | } | |
| 2262 | 2262 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) | |
| 2263 | 2263 | if templ_7745c5c3_Err != nil { | |
| @@ -2311,7 +2311,7 @@ func moreMenu(p MRPage) templ.Component { | |||
| 2311 | 2311 | var templ_7745c5c3_Var113 templ.SafeURL | |
| 2312 | 2312 | templ_7745c5c3_Var113, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) | |
| 2313 | 2313 | if templ_7745c5c3_Err != nil { | |
| 2314 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 440, Col: 64} | |
| 2314 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 64} | |
| 2315 | 2315 | } | |
| 2316 | 2316 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var113)) | |
| 2317 | 2317 | if templ_7745c5c3_Err != nil { | |
| @@ -2324,7 +2324,7 @@ func moreMenu(p MRPage) templ.Component { | |||
| 2324 | 2324 | var templ_7745c5c3_Var114 string | |
| 2325 | 2325 | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | |
| 2326 | 2326 | if templ_7745c5c3_Err != nil { | |
| 2327 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 441, Col: 59} | |
| 2327 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 443, Col: 59} | |
| 2328 | 2328 | } | |
| 2329 | 2329 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var114) | |
| 2330 | 2330 | if templ_7745c5c3_Err != nil { | |
| @@ -2342,7 +2342,7 @@ func moreMenu(p MRPage) templ.Component { | |||
| 2342 | 2342 | var templ_7745c5c3_Var115 templ.SafeURL | |
| 2343 | 2343 | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) | |
| 2344 | 2344 | if templ_7745c5c3_Err != nil { | |
| 2345 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 64} | |
| 2345 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 447, Col: 64} | |
| 2346 | 2346 | } | |
| 2347 | 2347 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) | |
| 2348 | 2348 | if templ_7745c5c3_Err != nil { | |
| @@ -2414,7 +2414,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2414 | 2414 | var templ_7745c5c3_Var118 string | |
| 2415 | 2415 | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 2416 | 2416 | if templ_7745c5c3_Err != nil { | |
| 2417 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 461, Col: 17} | |
| 2417 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 463, Col: 17} | |
| 2418 | 2418 | } | |
| 2419 | 2419 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) | |
| 2420 | 2420 | if templ_7745c5c3_Err != nil { | |
| @@ -2427,7 +2427,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2427 | 2427 | var templ_7745c5c3_Var119 string | |
| 2428 | 2428 | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2429 | 2429 | if templ_7745c5c3_Err != nil { | |
| 2430 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 461, Col: 34} | |
| 2430 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 463, Col: 34} | |
| 2431 | 2431 | } | |
| 2432 | 2432 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) | |
| 2433 | 2433 | if templ_7745c5c3_Err != nil { | |
| @@ -2440,7 +2440,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2440 | 2440 | var templ_7745c5c3_Var120 templ.SafeURL | |
| 2441 | 2441 | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) | |
| 2442 | 2442 | if templ_7745c5c3_Err != nil { | |
| 2443 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 464, Col: 45} | |
| 2443 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 45} | |
| 2444 | 2444 | } | |
| 2445 | 2445 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) | |
| 2446 | 2446 | if templ_7745c5c3_Err != nil { | |
| @@ -2453,7 +2453,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2453 | 2453 | var templ_7745c5c3_Var121 string | |
| 2454 | 2454 | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | |
| 2455 | 2455 | if templ_7745c5c3_Err != nil { | |
| 2456 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 464, Col: 58} | |
| 2456 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 58} | |
| 2457 | 2457 | } | |
| 2458 | 2458 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) | |
| 2459 | 2459 | if templ_7745c5c3_Err != nil { | |
| @@ -2466,7 +2466,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2466 | 2466 | var templ_7745c5c3_Var122 templ.SafeURL | |
| 2467 | 2467 | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) | |
| 2468 | 2468 | if templ_7745c5c3_Err != nil { | |
| 2469 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 45} | |
| 2469 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 468, Col: 45} | |
| 2470 | 2470 | } | |
| 2471 | 2471 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var122)) | |
| 2472 | 2472 | if templ_7745c5c3_Err != nil { | |
| @@ -2479,7 +2479,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2479 | 2479 | var templ_7745c5c3_Var123 string | |
| 2480 | 2480 | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2481 | 2481 | if templ_7745c5c3_Err != nil { | |
| 2482 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 58} | |
| 2482 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 468, Col: 58} | |
| 2483 | 2483 | } | |
| 2484 | 2484 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var123)) | |
| 2485 | 2485 | if templ_7745c5c3_Err != nil { | |
| @@ -2492,7 +2492,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2492 | 2492 | var templ_7745c5c3_Var124 string | |
| 2493 | 2493 | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) | |
| 2494 | 2494 | if templ_7745c5c3_Err != nil { | |
| 2495 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 468, Col: 21} | |
| 2495 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 470, Col: 21} | |
| 2496 | 2496 | } | |
| 2497 | 2497 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var124)) | |
| 2498 | 2498 | if templ_7745c5c3_Err != nil { | |
| @@ -2510,7 +2510,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2510 | 2510 | var templ_7745c5c3_Var125 string | |
| 2511 | 2511 | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | |
| 2512 | 2512 | if templ_7745c5c3_Err != nil { | |
| 2513 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 472, Col: 29} | |
| 2513 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 474, Col: 29} | |
| 2514 | 2514 | } | |
| 2515 | 2515 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var125)) | |
| 2516 | 2516 | if templ_7745c5c3_Err != nil { | |
| @@ -2533,7 +2533,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2533 | 2533 | var templ_7745c5c3_Var126 templ.SafeURL | |
| 2534 | 2534 | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) | |
| 2535 | 2535 | if templ_7745c5c3_Err != nil { | |
| 2536 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 475, Col: 114} | |
| 2536 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 477, Col: 114} | |
| 2537 | 2537 | } | |
| 2538 | 2538 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) | |
| 2539 | 2539 | if templ_7745c5c3_Err != nil { | |
| @@ -2546,7 +2546,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2546 | 2546 | var templ_7745c5c3_Var127 string | |
| 2547 | 2547 | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) | |
| 2548 | 2548 | if templ_7745c5c3_Err != nil { | |
| 2549 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 475, Col: 135} | |
| 2549 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 477, Col: 135} | |
| 2550 | 2550 | } | |
| 2551 | 2551 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) | |
| 2552 | 2552 | if templ_7745c5c3_Err != nil { | |
| @@ -2569,7 +2569,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2569 | 2569 | var templ_7745c5c3_Var128 templ.SafeURL | |
| 2570 | 2570 | templ_7745c5c3_Var128, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) | |
| 2571 | 2571 | if templ_7745c5c3_Err != nil { | |
| 2572 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 478, Col: 83} | |
| 2572 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 480, Col: 83} | |
| 2573 | 2573 | } | |
| 2574 | 2574 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var128)) | |
| 2575 | 2575 | if templ_7745c5c3_Err != nil { | |
| @@ -2582,7 +2582,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2582 | 2582 | var templ_7745c5c3_Var129 string | |
| 2583 | 2583 | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) | |
| 2584 | 2584 | if templ_7745c5c3_Err != nil { | |
| 2585 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 479, Col: 62} | |
| 2585 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 481, Col: 62} | |
| 2586 | 2586 | } | |
| 2587 | 2587 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var129) | |
| 2588 | 2588 | if templ_7745c5c3_Err != nil { | |
| @@ -2595,7 +2595,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2595 | 2595 | var templ_7745c5c3_Var130 string | |
| 2596 | 2596 | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) | |
| 2597 | 2597 | if templ_7745c5c3_Err != nil { | |
| 2598 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 480, Col: 62} | |
| 2598 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 482, Col: 62} | |
| 2599 | 2599 | } | |
| 2600 | 2600 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var130) | |
| 2601 | 2601 | if templ_7745c5c3_Err != nil { | |
| @@ -2608,13 +2608,13 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2608 | 2608 | var templ_7745c5c3_Var131 string | |
| 2609 | 2609 | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) | |
| 2610 | 2610 | if templ_7745c5c3_Err != nil { | |
| 2611 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 482, Col: 97} | |
| 2611 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 484, Col: 97} | |
| 2612 | 2612 | } | |
| 2613 | 2613 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var131) | |
| 2614 | 2614 | if templ_7745c5c3_Err != nil { | |
| 2615 | 2615 | return templ_7745c5c3_Err | |
| 2616 | 2616 | } | |
| 2617 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"plain text, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") | |
| 2617 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"Markdown, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") | |
| 2618 | 2618 | if templ_7745c5c3_Err != nil { | |
| 2619 | 2619 | return templ_7745c5c3_Err | |
| 2620 | 2620 | } | |
| @@ -2631,7 +2631,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2631 | 2631 | var templ_7745c5c3_Var132 string | |
| 2632 | 2632 | templ_7745c5c3_Var132, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | |
| 2633 | 2633 | if templ_7745c5c3_Err != nil { | |
| 2634 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 492, Col: 57} | |
| 2634 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 57} | |
| 2635 | 2635 | } | |
| 2636 | 2636 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var132)) | |
| 2637 | 2637 | if templ_7745c5c3_Err != nil { | |
| @@ -2644,7 +2644,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2644 | 2644 | var templ_7745c5c3_Var133 string | |
| 2645 | 2645 | templ_7745c5c3_Var133, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | |
| 2646 | 2646 | if templ_7745c5c3_Err != nil { | |
| 2647 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 492, Col: 97} | |
| 2647 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 97} | |
| 2648 | 2648 | } | |
| 2649 | 2649 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var133)) | |
| 2650 | 2650 | if templ_7745c5c3_Err != nil { | |
| @@ -2657,7 +2657,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2657 | 2657 | var templ_7745c5c3_Var134 string | |
| 2658 | 2658 | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | |
| 2659 | 2659 | if templ_7745c5c3_Err != nil { | |
| 2660 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 492, Col: 142} | |
| 2660 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 142} | |
| 2661 | 2661 | } | |
| 2662 | 2662 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var134)) | |
| 2663 | 2663 | if templ_7745c5c3_Err != nil { | |
| @@ -2701,7 +2701,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2701 | 2701 | var templ_7745c5c3_Var135 string | |
| 2702 | 2702 | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 2703 | 2703 | if templ_7745c5c3_Err != nil { | |
| 2704 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 507, Col: 23} | |
| 2704 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 509, Col: 23} | |
| 2705 | 2705 | } | |
| 2706 | 2706 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var135) | |
| 2707 | 2707 | if templ_7745c5c3_Err != nil { | |
| @@ -2719,7 +2719,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||
| 2719 | 2719 | var templ_7745c5c3_Var136 string | |
| 2720 | 2720 | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | |
| 2721 | 2721 | if templ_7745c5c3_Err != nil { | |
| 2722 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 509, Col: 23} | |
| 2722 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 511, Col: 23} | |
| 2723 | 2723 | } | |
| 2724 | 2724 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var136) | |
| 2725 | 2725 | if templ_7745c5c3_Err != nil { | |
| @@ -2789,7 +2789,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2789 | 2789 | var templ_7745c5c3_Var138 string | |
| 2790 | 2790 | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) | |
| 2791 | 2791 | if templ_7745c5c3_Err != nil { | |
| 2792 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 525, Col: 67} | |
| 2792 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 527, Col: 67} | |
| 2793 | 2793 | } | |
| 2794 | 2794 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var138)) | |
| 2795 | 2795 | if templ_7745c5c3_Err != nil { | |
| @@ -2807,7 +2807,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2807 | 2807 | var templ_7745c5c3_Var139 templ.SafeURL | |
| 2808 | 2808 | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) | |
| 2809 | 2809 | if templ_7745c5c3_Err != nil { | |
| 2810 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 529, Col: 37} | |
| 2810 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 531, Col: 37} | |
| 2811 | 2811 | } | |
| 2812 | 2812 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var139)) | |
| 2813 | 2813 | if templ_7745c5c3_Err != nil { | |
| @@ -2820,7 +2820,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2820 | 2820 | var templ_7745c5c3_Var140 string | |
| 2821 | 2821 | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | |
| 2822 | 2822 | if templ_7745c5c3_Err != nil { | |
| 2823 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 529, Col: 49} | |
| 2823 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 531, Col: 49} | |
| 2824 | 2824 | } | |
| 2825 | 2825 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) | |
| 2826 | 2826 | if templ_7745c5c3_Err != nil { | |
| @@ -2833,7 +2833,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2833 | 2833 | var templ_7745c5c3_Var141 string | |
| 2834 | 2834 | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | |
| 2835 | 2835 | if templ_7745c5c3_Err != nil { | |
| 2836 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 530, Col: 32} | |
| 2836 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 532, Col: 32} | |
| 2837 | 2837 | } | |
| 2838 | 2838 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) | |
| 2839 | 2839 | if templ_7745c5c3_Err != nil { | |
| @@ -2846,7 +2846,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2846 | 2846 | var templ_7745c5c3_Var142 string | |
| 2847 | 2847 | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | |
| 2848 | 2848 | if templ_7745c5c3_Err != nil { | |
| 2849 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 532, Col: 16} | |
| 2849 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 16} | |
| 2850 | 2850 | } | |
| 2851 | 2851 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) | |
| 2852 | 2852 | if templ_7745c5c3_Err != nil { | |
| @@ -2860,7 +2860,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2860 | 2860 | var templ_7745c5c3_Var143 string | |
| 2861 | 2861 | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | |
| 2862 | 2862 | if templ_7745c5c3_Err != nil { | |
| 2863 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 15} | |
| 2863 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 536, Col: 15} | |
| 2864 | 2864 | } | |
| 2865 | 2865 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) | |
| 2866 | 2866 | if templ_7745c5c3_Err != nil { | |
| @@ -2873,7 +2873,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2873 | 2873 | var templ_7745c5c3_Var144 string | |
| 2874 | 2874 | templ_7745c5c3_Var144, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | |
| 2875 | 2875 | if templ_7745c5c3_Err != nil { | |
| 2876 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 42} | |
| 2876 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 536, Col: 42} | |
| 2877 | 2877 | } | |
| 2878 | 2878 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var144) | |
| 2879 | 2879 | if templ_7745c5c3_Err != nil { | |
| @@ -2886,7 +2886,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2886 | 2886 | var templ_7745c5c3_Var145 string | |
| 2887 | 2887 | templ_7745c5c3_Var145, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | |
| 2888 | 2888 | if templ_7745c5c3_Err != nil { | |
| 2889 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 53} | |
| 2889 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 536, Col: 53} | |
| 2890 | 2890 | } | |
| 2891 | 2891 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var145)) | |
| 2892 | 2892 | if templ_7745c5c3_Err != nil { | |
| @@ -2914,7 +2914,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2914 | 2914 | var templ_7745c5c3_Var146 string | |
| 2915 | 2915 | templ_7745c5c3_Var146, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | |
| 2916 | 2916 | if templ_7745c5c3_Err != nil { | |
| 2917 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 541, Col: 47} | |
| 2917 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 543, Col: 47} | |
| 2918 | 2918 | } | |
| 2919 | 2919 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var146)) | |
| 2920 | 2920 | if templ_7745c5c3_Err != nil { | |
| @@ -2937,7 +2937,7 @@ func compareRail(p ComparePage) templ.Component { | |||
| 2937 | 2937 | var templ_7745c5c3_Var147 string | |
| 2938 | 2938 | templ_7745c5c3_Var147, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | |
| 2939 | 2939 | if templ_7745c5c3_Err != nil { | |
| 2940 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 546, Col: 66} | |
| 2940 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 548, Col: 66} | |
| 2941 | 2941 | } | |
| 2942 | 2942 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var147)) | |
| 2943 | 2943 | if templ_7745c5c3_Err != nil { | |
| @@ -799,16 +799,16 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 799 | if templ_7745c5c3_Err != nil { | 799 | if templ_7745c5c3_Err != nil { | ||
| 800 | return templ_7745c5c3_Err | 800 | return templ_7745c5c3_Err | ||
| 801 | } | 801 | } | ||
| 802 | - | if len(p.Desc) > 0 { | 802 | + | if p.Desc != "" { |
| 803 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<p class=\"mr-desc\">") | 803 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 70, "<article class=\"mr-desc prose\" aria-label=\"description\" hx-ignore>") |
| 804 | if templ_7745c5c3_Err != nil { | 804 | if templ_7745c5c3_Err != nil { | ||
| 805 | return templ_7745c5c3_Err | 805 | return templ_7745c5c3_Err | ||
| 806 | } | 806 | } | ||
| 807 | - | templ_7745c5c3_Err = userText(p.Desc).Render(ctx, templ_7745c5c3_Buffer) | 807 | + | templ_7745c5c3_Err = templ.Raw(string(p.Desc)).Render(ctx, templ_7745c5c3_Buffer) |
| 808 | if templ_7745c5c3_Err != nil { | 808 | if templ_7745c5c3_Err != nil { | ||
| 809 | return templ_7745c5c3_Err | 809 | return templ_7745c5c3_Err | ||
| 810 | } | 810 | } | ||
| 811 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "</p>") | 811 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 71, "</article>") |
| 812 | if templ_7745c5c3_Err != nil { | 812 | if templ_7745c5c3_Err != nil { | ||
| 813 | return templ_7745c5c3_Err | 813 | return templ_7745c5c3_Err | ||
| 814 | } | 814 | } | ||
| @@ -825,7 +825,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 825 | var templ_7745c5c3_Var42 templ.SafeURL | 825 | var templ_7745c5c3_Var42 templ.SafeURL | ||
| 826 | templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Since.AllHref)) | 826 | templ_7745c5c3_Var42, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Since.AllHref)) | ||
| 827 | if templ_7745c5c3_Err != nil { | 827 | if templ_7745c5c3_Err != nil { | ||
| 828 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 149, Col: 42} | 828 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 151, Col: 42} |
| 829 | } | 829 | } | ||
| 830 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) | 830 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var42)) | ||
| 831 | if templ_7745c5c3_Err != nil { | 831 | if templ_7745c5c3_Err != nil { | ||
| @@ -848,7 +848,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 848 | var templ_7745c5c3_Var43 string | 848 | var templ_7745c5c3_Var43 string | ||
| 849 | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 849 | templ_7745c5c3_Var43, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | ||
| 850 | if templ_7745c5c3_Err != nil { | 850 | if templ_7745c5c3_Err != nil { | ||
| 851 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 153, Col: 49} | 851 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 155, Col: 49} |
| 852 | } | 852 | } | ||
| 853 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | 853 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var43)) | ||
| 854 | if templ_7745c5c3_Err != nil { | 854 | if templ_7745c5c3_Err != nil { | ||
| @@ -861,7 +861,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 861 | var templ_7745c5c3_Var44 templ.SafeURL | 861 | var templ_7745c5c3_Var44 templ.SafeURL | ||
| 862 | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Since.SinceHref)) | 862 | templ_7745c5c3_Var44, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Since.SinceHref)) | ||
| 863 | if templ_7745c5c3_Err != nil { | 863 | if templ_7745c5c3_Err != nil { | ||
| 864 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 155, Col: 44} | 864 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 157, Col: 44} |
| 865 | } | 865 | } | ||
| 866 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var44)) | 866 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var44)) | ||
| 867 | if templ_7745c5c3_Err != nil { | 867 | if templ_7745c5c3_Err != nil { | ||
| @@ -884,7 +884,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 884 | var templ_7745c5c3_Var45 string | 884 | var templ_7745c5c3_Var45 string | ||
| 885 | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.JoinStringErrs(p.Since.ReadShort) | 885 | templ_7745c5c3_Var45, templ_7745c5c3_Err = templ.JoinStringErrs(p.Since.ReadShort) | ||
| 886 | if templ_7745c5c3_Err != nil { | 886 | if templ_7745c5c3_Err != nil { | ||
| 887 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 159, Col: 64} | 887 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 161, Col: 64} |
| 888 | } | 888 | } | ||
| 889 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var45)) | 889 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var45)) | ||
| 890 | if templ_7745c5c3_Err != nil { | 890 | if templ_7745c5c3_Err != nil { | ||
| @@ -897,7 +897,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 897 | var templ_7745c5c3_Var46 string | 897 | var templ_7745c5c3_Var46 string | ||
| 898 | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.JoinStringErrs(p.Since.HeadShort) | 898 | templ_7745c5c3_Var46, templ_7745c5c3_Err = templ.JoinStringErrs(p.Since.HeadShort) | ||
| 899 | if templ_7745c5c3_Err != nil { | 899 | if templ_7745c5c3_Err != nil { | ||
| 900 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 159, Col: 90} | 900 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 161, Col: 90} |
| 901 | } | 901 | } | ||
| 902 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var46)) | 902 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var46)) | ||
| 903 | if templ_7745c5c3_Err != nil { | 903 | if templ_7745c5c3_Err != nil { | ||
| @@ -920,7 +920,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 920 | var templ_7745c5c3_Var47 string | 920 | var templ_7745c5c3_Var47 string | ||
| 921 | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(p.SinceNote) | 921 | templ_7745c5c3_Var47, templ_7745c5c3_Err = templ.JoinStringErrs(p.SinceNote) | ||
| 922 | if templ_7745c5c3_Err != nil { | 922 | if templ_7745c5c3_Err != nil { | ||
| 923 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 163, Col: 34} | 923 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 165, Col: 34} |
| 924 | } | 924 | } | ||
| 925 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | 925 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var47)) | ||
| 926 | if templ_7745c5c3_Err != nil { | 926 | if templ_7745c5c3_Err != nil { | ||
| @@ -961,7 +961,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 961 | var templ_7745c5c3_Var48 string | 961 | var templ_7745c5c3_Var48 string | ||
| 962 | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | 962 | templ_7745c5c3_Var48, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | ||
| 963 | if templ_7745c5c3_Err != nil { | 963 | if templ_7745c5c3_Err != nil { | ||
| 964 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 173, Col: 29} | 964 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 175, Col: 29} |
| 965 | } | 965 | } | ||
| 966 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) | 966 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var48)) | ||
| 967 | if templ_7745c5c3_Err != nil { | 967 | if templ_7745c5c3_Err != nil { | ||
| @@ -984,7 +984,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 984 | var templ_7745c5c3_Var49 string | 984 | var templ_7745c5c3_Var49 string | ||
| 985 | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 985 | templ_7745c5c3_Var49, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 986 | if templ_7745c5c3_Err != nil { | 986 | if templ_7745c5c3_Err != nil { | ||
| 987 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 179, Col: 22} | 987 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 181, Col: 22} |
| 988 | } | 988 | } | ||
| 989 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var49) | 989 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var49) | ||
| 990 | if templ_7745c5c3_Err != nil { | 990 | if templ_7745c5c3_Err != nil { | ||
| @@ -1002,7 +1002,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1002 | var templ_7745c5c3_Var50 string | 1002 | var templ_7745c5c3_Var50 string | ||
| 1003 | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 1003 | templ_7745c5c3_Var50, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 1004 | if templ_7745c5c3_Err != nil { | 1004 | if templ_7745c5c3_Err != nil { | ||
| 1005 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 181, Col: 22} | 1005 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 183, Col: 22} |
| 1006 | } | 1006 | } | ||
| 1007 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var50) | 1007 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var50) | ||
| 1008 | if templ_7745c5c3_Err != nil { | 1008 | if templ_7745c5c3_Err != nil { | ||
| @@ -1042,7 +1042,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1042 | var templ_7745c5c3_Var51 string | 1042 | var templ_7745c5c3_Var51 string | ||
| 1043 | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) | 1043 | templ_7745c5c3_Var51, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NUnresolved)) | ||
| 1044 | if templ_7745c5c3_Err != nil { | 1044 | if templ_7745c5c3_Err != nil { | ||
| 1045 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 194, Col: 97} | 1045 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 196, Col: 97} |
| 1046 | } | 1046 | } | ||
| 1047 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var51)) | 1047 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var51)) | ||
| 1048 | if templ_7745c5c3_Err != nil { | 1048 | if templ_7745c5c3_Err != nil { | ||
| @@ -1055,7 +1055,7 @@ func MergeRequest(l Layout, p MRPage) templ.Component { | |||||
| 1055 | var templ_7745c5c3_Var52 string | 1055 | var templ_7745c5c3_Var52 string | ||
| 1056 | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) | 1056 | templ_7745c5c3_Var52, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.NComments)) | ||
| 1057 | if templ_7745c5c3_Err != nil { | 1057 | if templ_7745c5c3_Err != nil { | ||
| 1058 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 194, Col: 126} | 1058 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 196, Col: 126} |
| 1059 | } | 1059 | } | ||
| 1060 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var52)) | 1060 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var52)) | ||
| 1061 | if templ_7745c5c3_Err != nil { | 1061 | if templ_7745c5c3_Err != nil { | ||
| @@ -1136,7 +1136,7 @@ func branchLink(name, href string) templ.Component { | |||||
| 1136 | var templ_7745c5c3_Var54 templ.SafeURL | 1136 | var templ_7745c5c3_Var54 templ.SafeURL | ||
| 1137 | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | 1137 | templ_7745c5c3_Var54, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(href)) | ||
| 1138 | if templ_7745c5c3_Err != nil { | 1138 | if templ_7745c5c3_Err != nil { | ||
| 1139 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 212, Col: 31} | 1139 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 214, Col: 31} |
| 1140 | } | 1140 | } | ||
| 1141 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | 1141 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var54)) | ||
| 1142 | if templ_7745c5c3_Err != nil { | 1142 | if templ_7745c5c3_Err != nil { | ||
| @@ -1149,7 +1149,7 @@ func branchLink(name, href string) templ.Component { | |||||
| 1149 | var templ_7745c5c3_Var55 string | 1149 | var templ_7745c5c3_Var55 string | ||
| 1150 | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(name) | 1150 | templ_7745c5c3_Var55, templ_7745c5c3_Err = templ.JoinStringErrs(name) | ||
| 1151 | if templ_7745c5c3_Err != nil { | 1151 | if templ_7745c5c3_Err != nil { | ||
| 1152 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 212, Col: 40} | 1152 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 214, Col: 40} |
| 1153 | } | 1153 | } | ||
| 1154 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | 1154 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var55)) | ||
| 1155 | if templ_7745c5c3_Err != nil { | 1155 | if templ_7745c5c3_Err != nil { | ||
| @@ -1163,7 +1163,7 @@ func branchLink(name, href string) templ.Component { | |||||
| 1163 | var templ_7745c5c3_Var56 string | 1163 | var templ_7745c5c3_Var56 string | ||
| 1164 | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinStringErrs(name) | 1164 | templ_7745c5c3_Var56, templ_7745c5c3_Err = templ.JoinStringErrs(name) | ||
| 1165 | if templ_7745c5c3_Err != nil { | 1165 | if templ_7745c5c3_Err != nil { | ||
| 1166 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 214, Col: 8} | 1166 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 216, Col: 8} |
| 1167 | } | 1167 | } | ||
| 1168 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | 1168 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var56)) | ||
| 1169 | if templ_7745c5c3_Err != nil { | 1169 | if templ_7745c5c3_Err != nil { | ||
| @@ -1245,7 +1245,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1245 | var templ_7745c5c3_Var59 string | 1245 | var templ_7745c5c3_Var59 string | ||
| 1246 | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) | 1246 | templ_7745c5c3_Var59, templ_7745c5c3_Err = templ.ResolveAttributeValue("c" + c.ID + suffix) | ||
| 1247 | if templ_7745c5c3_Err != nil { | 1247 | if templ_7745c5c3_Err != nil { | ||
| 1248 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 234, Col: 42} | 1248 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 236, Col: 42} |
| 1249 | } | 1249 | } | ||
| 1250 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) | 1250 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var59) | ||
| 1251 | if templ_7745c5c3_Err != nil { | 1251 | if templ_7745c5c3_Err != nil { | ||
| @@ -1258,7 +1258,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1258 | var templ_7745c5c3_Var60 string | 1258 | var templ_7745c5c3_Var60 string | ||
| 1259 | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) | 1259 | templ_7745c5c3_Var60, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolved)) | ||
| 1260 | if templ_7745c5c3_Err != nil { | 1260 | if templ_7745c5c3_Err != nil { | ||
| 1261 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 234, Col: 81} | 1261 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 236, Col: 81} |
| 1262 | } | 1262 | } | ||
| 1263 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var60) | 1263 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var60) | ||
| 1264 | if templ_7745c5c3_Err != nil { | 1264 | if templ_7745c5c3_Err != nil { | ||
| @@ -1271,7 +1271,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1271 | var templ_7745c5c3_Var61 string | 1271 | var templ_7745c5c3_Var61 string | ||
| 1272 | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | 1272 | templ_7745c5c3_Var61, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | ||
| 1273 | if templ_7745c5c3_Err != nil { | 1273 | if templ_7745c5c3_Err != nil { | ||
| 1274 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 236, Col: 33} | 1274 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 33} |
| 1275 | } | 1275 | } | ||
| 1276 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var61)) | 1276 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var61)) | ||
| 1277 | if templ_7745c5c3_Err != nil { | 1277 | if templ_7745c5c3_Err != nil { | ||
| @@ -1285,7 +1285,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1285 | var templ_7745c5c3_Var62 string | 1285 | var templ_7745c5c3_Var62 string | ||
| 1286 | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1286 | templ_7745c5c3_Var62, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 1287 | if templ_7745c5c3_Err != nil { | 1287 | if templ_7745c5c3_Err != nil { | ||
| 1288 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 9} | 1288 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 9} |
| 1289 | } | 1289 | } | ||
| 1290 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var62)) | 1290 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var62)) | ||
| 1291 | if templ_7745c5c3_Err != nil { | 1291 | if templ_7745c5c3_Err != nil { | ||
| @@ -1298,7 +1298,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1298 | var templ_7745c5c3_Var63 string | 1298 | var templ_7745c5c3_Var63 string | ||
| 1299 | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | 1299 | templ_7745c5c3_Var63, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | ||
| 1300 | if templ_7745c5c3_Err != nil { | 1300 | if templ_7745c5c3_Err != nil { | ||
| 1301 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 49} | 1301 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 49} |
| 1302 | } | 1302 | } | ||
| 1303 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var63) | 1303 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var63) | ||
| 1304 | if templ_7745c5c3_Err != nil { | 1304 | if templ_7745c5c3_Err != nil { | ||
| @@ -1311,7 +1311,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1311 | var templ_7745c5c3_Var64 string | 1311 | var templ_7745c5c3_Var64 string | ||
| 1312 | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) | 1312 | templ_7745c5c3_Var64, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.Abs) | ||
| 1313 | if templ_7745c5c3_Err != nil { | 1313 | if templ_7745c5c3_Err != nil { | ||
| 1314 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 65} | 1314 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 65} |
| 1315 | } | 1315 | } | ||
| 1316 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var64) | 1316 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var64) | ||
| 1317 | if templ_7745c5c3_Err != nil { | 1317 | if templ_7745c5c3_Err != nil { | ||
| @@ -1324,7 +1324,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1324 | var templ_7745c5c3_Var65 string | 1324 | var templ_7745c5c3_Var65 string | ||
| 1325 | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | 1325 | templ_7745c5c3_Var65, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | ||
| 1326 | if templ_7745c5c3_Err != nil { | 1326 | if templ_7745c5c3_Err != nil { | ||
| 1327 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 238, Col: 76} | 1327 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 240, Col: 76} |
| 1328 | } | 1328 | } | ||
| 1329 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | 1329 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var65)) | ||
| 1330 | if templ_7745c5c3_Err != nil { | 1330 | if templ_7745c5c3_Err != nil { | ||
| @@ -1339,7 +1339,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1339 | var templ_7745c5c3_Var66 string | 1339 | var templ_7745c5c3_Var66 string | ||
| 1340 | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1340 | templ_7745c5c3_Var66, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 1341 | if templ_7745c5c3_Err != nil { | 1341 | if templ_7745c5c3_Err != nil { | ||
| 1342 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 241, Col: 9} | 1342 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 243, Col: 9} |
| 1343 | } | 1343 | } | ||
| 1344 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var66)) | 1344 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var66)) | ||
| 1345 | if templ_7745c5c3_Err != nil { | 1345 | if templ_7745c5c3_Err != nil { | ||
| @@ -1354,7 +1354,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1354 | var templ_7745c5c3_Var67 string | 1354 | var templ_7745c5c3_Var67 string | ||
| 1355 | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1355 | templ_7745c5c3_Var67, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 1356 | if templ_7745c5c3_Err != nil { | 1356 | if templ_7745c5c3_Err != nil { | ||
| 1357 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 244, Col: 9} | 1357 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 246, Col: 9} |
| 1358 | } | 1358 | } | ||
| 1359 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | 1359 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var67)) | ||
| 1360 | if templ_7745c5c3_Err != nil { | 1360 | if templ_7745c5c3_Err != nil { | ||
| @@ -1369,7 +1369,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1369 | var templ_7745c5c3_Var68 string | 1369 | var templ_7745c5c3_Var68 string | ||
| 1370 | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | 1370 | templ_7745c5c3_Var68, templ_7745c5c3_Err = templ.JoinStringErrs(" ") | ||
| 1371 | if templ_7745c5c3_Err != nil { | 1371 | if templ_7745c5c3_Err != nil { | ||
| 1372 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 9} | 1372 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 249, Col: 9} |
| 1373 | } | 1373 | } | ||
| 1374 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | 1374 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var68)) | ||
| 1375 | if templ_7745c5c3_Err != nil { | 1375 | if templ_7745c5c3_Err != nil { | ||
| @@ -1382,7 +1382,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1382 | var templ_7745c5c3_Var69 string | 1382 | var templ_7745c5c3_Var69 string | ||
| 1383 | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | 1383 | templ_7745c5c3_Var69, templ_7745c5c3_Err = templ.JoinStringErrs(c.Where) | ||
| 1384 | if templ_7745c5c3_Err != nil { | 1384 | if templ_7745c5c3_Err != nil { | ||
| 1385 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 247, Col: 47} | 1385 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 249, Col: 47} |
| 1386 | } | 1386 | } | ||
| 1387 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var69)) | 1387 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var69)) | ||
| 1388 | if templ_7745c5c3_Err != nil { | 1388 | if templ_7745c5c3_Err != nil { | ||
| @@ -1413,7 +1413,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1413 | var templ_7745c5c3_Var70 templ.SafeURL | 1413 | var templ_7745c5c3_Var70 templ.SafeURL | ||
| 1414 | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) | 1414 | templ_7745c5c3_Var70, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Resolve.Action)) | ||
| 1415 | if templ_7745c5c3_Err != nil { | 1415 | if templ_7745c5c3_Err != nil { | ||
| 1416 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 252, Col: 77} | 1416 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 254, Col: 77} |
| 1417 | } | 1417 | } | ||
| 1418 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var70)) | 1418 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var70)) | ||
| 1419 | if templ_7745c5c3_Err != nil { | 1419 | if templ_7745c5c3_Err != nil { | ||
| @@ -1426,7 +1426,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1426 | var templ_7745c5c3_Var71 string | 1426 | var templ_7745c5c3_Var71 string | ||
| 1427 | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) | 1427 | templ_7745c5c3_Var71, templ_7745c5c3_Err = templ.ResolveAttributeValue(boolText(c.Resolve.Value)) | ||
| 1428 | if templ_7745c5c3_Err != nil { | 1428 | if templ_7745c5c3_Err != nil { | ||
| 1429 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 253, Col: 74} | 1429 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 255, Col: 74} |
| 1430 | } | 1430 | } | ||
| 1431 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) | 1431 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var71) | ||
| 1432 | if templ_7745c5c3_Err != nil { | 1432 | if templ_7745c5c3_Err != nil { | ||
| @@ -1444,7 +1444,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1444 | var templ_7745c5c3_Var72 string | 1444 | var templ_7745c5c3_Var72 string | ||
| 1445 | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) | 1445 | templ_7745c5c3_Var72, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(c.Resolve.From)) | ||
| 1446 | if templ_7745c5c3_Err != nil { | 1446 | if templ_7745c5c3_Err != nil { | ||
| 1447 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 255, Col: 66} | 1447 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 257, Col: 66} |
| 1448 | } | 1448 | } | ||
| 1449 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) | 1449 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var72) | ||
| 1450 | if templ_7745c5c3_Err != nil { | 1450 | if templ_7745c5c3_Err != nil { | ||
| @@ -1462,7 +1462,7 @@ func commentView(c CommentView, suffix string) templ.Component { | |||||
| 1462 | var templ_7745c5c3_Var73 string | 1462 | var templ_7745c5c3_Var73 string | ||
| 1463 | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) | 1463 | templ_7745c5c3_Var73, templ_7745c5c3_Err = templ.JoinStringErrs(c.Resolve.Label) | ||
| 1464 | if templ_7745c5c3_Err != nil { | 1464 | if templ_7745c5c3_Err != nil { | ||
| 1465 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 257, Col: 55} | 1465 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 259, Col: 55} |
| 1466 | } | 1466 | } | ||
| 1467 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | 1467 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var73)) | ||
| 1468 | if templ_7745c5c3_Err != nil { | 1468 | if templ_7745c5c3_Err != nil { | ||
| @@ -1517,7 +1517,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1517 | var templ_7745c5c3_Var75 templ.SafeURL | 1517 | var templ_7745c5c3_Var75 templ.SafeURL | ||
| 1518 | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) | 1518 | templ_7745c5c3_Var75, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Action)) | ||
| 1519 | if templ_7745c5c3_Err != nil { | 1519 | if templ_7745c5c3_Err != nil { | ||
| 1520 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 272, Col: 67} | 1520 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 274, Col: 67} |
| 1521 | } | 1521 | } | ||
| 1522 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) | 1522 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var75)) | ||
| 1523 | if templ_7745c5c3_Err != nil { | 1523 | if templ_7745c5c3_Err != nil { | ||
| @@ -1530,7 +1530,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1530 | var templ_7745c5c3_Var76 string | 1530 | var templ_7745c5c3_Var76 string | ||
| 1531 | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | 1531 | templ_7745c5c3_Var76, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | ||
| 1532 | if templ_7745c5c3_Err != nil { | 1532 | if templ_7745c5c3_Err != nil { | ||
| 1533 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 273, Col: 28} | 1533 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 275, Col: 28} |
| 1534 | } | 1534 | } | ||
| 1535 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var76) | 1535 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var76) | ||
| 1536 | if templ_7745c5c3_Err != nil { | 1536 | if templ_7745c5c3_Err != nil { | ||
| @@ -1543,7 +1543,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1543 | var templ_7745c5c3_Var77 string | 1543 | var templ_7745c5c3_Var77 string | ||
| 1544 | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) | 1544 | templ_7745c5c3_Var77, templ_7745c5c3_Err = templ.JoinStringErrs(f.Title) | ||
| 1545 | if templ_7745c5c3_Err != nil { | 1545 | if templ_7745c5c3_Err != nil { | ||
| 1546 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 273, Col: 40} | 1546 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 275, Col: 40} |
| 1547 | } | 1547 | } | ||
| 1548 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var77)) | 1548 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var77)) | ||
| 1549 | if templ_7745c5c3_Err != nil { | 1549 | if templ_7745c5c3_Err != nil { | ||
| @@ -1556,7 +1556,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1556 | var templ_7745c5c3_Var78 string | 1556 | var templ_7745c5c3_Var78 string | ||
| 1557 | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | 1557 | templ_7745c5c3_Var78, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.ID + suffix) | ||
| 1558 | if templ_7745c5c3_Err != nil { | 1558 | if templ_7745c5c3_Err != nil { | ||
| 1559 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 275, Col: 21} | 1559 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 277, Col: 21} |
| 1560 | } | 1560 | } | ||
| 1561 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var78) | 1561 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var78) | ||
| 1562 | if templ_7745c5c3_Err != nil { | 1562 | if templ_7745c5c3_Err != nil { | ||
| @@ -1584,7 +1584,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1584 | var templ_7745c5c3_Var79 string | 1584 | var templ_7745c5c3_Var79 string | ||
| 1585 | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | 1585 | templ_7745c5c3_Var79, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Path) | ||
| 1586 | if templ_7745c5c3_Err != nil { | 1586 | if templ_7745c5c3_Err != nil { | ||
| 1587 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 286, Col: 50} | 1587 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 288, Col: 50} |
| 1588 | } | 1588 | } | ||
| 1589 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) | 1589 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var79) | ||
| 1590 | if templ_7745c5c3_Err != nil { | 1590 | if templ_7745c5c3_Err != nil { | ||
| @@ -1597,7 +1597,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1597 | var templ_7745c5c3_Var80 string | 1597 | var templ_7745c5c3_Var80 string | ||
| 1598 | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) | 1598 | templ_7745c5c3_Var80, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Line) | ||
| 1599 | if templ_7745c5c3_Err != nil { | 1599 | if templ_7745c5c3_Err != nil { | ||
| 1600 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 287, Col: 50} | 1600 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 289, Col: 50} |
| 1601 | } | 1601 | } | ||
| 1602 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) | 1602 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var80) | ||
| 1603 | if templ_7745c5c3_Err != nil { | 1603 | if templ_7745c5c3_Err != nil { | ||
| @@ -1610,7 +1610,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1610 | var templ_7745c5c3_Var81 string | 1610 | var templ_7745c5c3_Var81 string | ||
| 1611 | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) | 1611 | templ_7745c5c3_Var81, templ_7745c5c3_Err = templ.ResolveAttributeValue(f.Side) | ||
| 1612 | if templ_7745c5c3_Err != nil { | 1612 | if templ_7745c5c3_Err != nil { | ||
| 1613 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 288, Col: 50} | 1613 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 290, Col: 50} |
| 1614 | } | 1614 | } | ||
| 1615 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var81) | 1615 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var81) | ||
| 1616 | if templ_7745c5c3_Err != nil { | 1616 | if templ_7745c5c3_Err != nil { | ||
| @@ -1629,7 +1629,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1629 | var templ_7745c5c3_Var82 string | 1629 | var templ_7745c5c3_Var82 string | ||
| 1630 | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) | 1630 | templ_7745c5c3_Var82, templ_7745c5c3_Err = templ.ResolveAttributeValue(itoa(f.From)) | ||
| 1631 | if templ_7745c5c3_Err != nil { | 1631 | if templ_7745c5c3_Err != nil { | ||
| 1632 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 291, Col: 56} | 1632 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 293, Col: 56} |
| 1633 | } | 1633 | } | ||
| 1634 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) | 1634 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var82) | ||
| 1635 | if templ_7745c5c3_Err != nil { | 1635 | if templ_7745c5c3_Err != nil { | ||
| @@ -1652,7 +1652,7 @@ func commentForm(f CommentForm, suffix string) templ.Component { | |||||
| 1652 | var templ_7745c5c3_Var83 templ.SafeURL | 1652 | var templ_7745c5c3_Var83 templ.SafeURL | ||
| 1653 | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) | 1653 | templ_7745c5c3_Var83, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(f.Cancel)) | ||
| 1654 | if templ_7745c5c3_Err != nil { | 1654 | if templ_7745c5c3_Err != nil { | ||
| 1655 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 296, Col: 49} | 1655 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 298, Col: 49} |
| 1656 | } | 1656 | } | ||
| 1657 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var83)) | 1657 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var83)) | ||
| 1658 | if templ_7745c5c3_Err != nil { | 1658 | if templ_7745c5c3_Err != nil { | ||
| @@ -1699,7 +1699,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1699 | var templ_7745c5c3_Var85 string | 1699 | var templ_7745c5c3_Var85 string | ||
| 1700 | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | 1700 | templ_7745c5c3_Var85, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | ||
| 1701 | if templ_7745c5c3_Err != nil { | 1701 | if templ_7745c5c3_Err != nil { | ||
| 1702 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 305, Col: 49} | 1702 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 307, Col: 49} |
| 1703 | } | 1703 | } | ||
| 1704 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var85)) | 1704 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var85)) | ||
| 1705 | if templ_7745c5c3_Err != nil { | 1705 | if templ_7745c5c3_Err != nil { | ||
| @@ -1728,7 +1728,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1728 | var templ_7745c5c3_Var86 string | 1728 | var templ_7745c5c3_Var86 string | ||
| 1729 | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) | 1729 | templ_7745c5c3_Var86, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Commits))) | ||
| 1730 | if templ_7745c5c3_Err != nil { | 1730 | if templ_7745c5c3_Err != nil { | ||
| 1731 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 314, Col: 71} | 1731 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 316, Col: 71} |
| 1732 | } | 1732 | } | ||
| 1733 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var86)) | 1733 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var86)) | ||
| 1734 | if templ_7745c5c3_Err != nil { | 1734 | if templ_7745c5c3_Err != nil { | ||
| @@ -1756,7 +1756,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1756 | var templ_7745c5c3_Var87 templ.SafeURL | 1756 | var templ_7745c5c3_Var87 templ.SafeURL | ||
| 1757 | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) | 1757 | templ_7745c5c3_Var87, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.Href)) | ||
| 1758 | if templ_7745c5c3_Err != nil { | 1758 | if templ_7745c5c3_Err != nil { | ||
| 1759 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 318, Col: 36} | 1759 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 320, Col: 36} |
| 1760 | } | 1760 | } | ||
| 1761 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var87)) | 1761 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var87)) | ||
| 1762 | if templ_7745c5c3_Err != nil { | 1762 | if templ_7745c5c3_Err != nil { | ||
| @@ -1769,7 +1769,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1769 | var templ_7745c5c3_Var88 string | 1769 | var templ_7745c5c3_Var88 string | ||
| 1770 | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | 1770 | templ_7745c5c3_Var88, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | ||
| 1771 | if templ_7745c5c3_Err != nil { | 1771 | if templ_7745c5c3_Err != nil { | ||
| 1772 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 318, Col: 48} | 1772 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 320, Col: 48} |
| 1773 | } | 1773 | } | ||
| 1774 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) | 1774 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var88)) | ||
| 1775 | if templ_7745c5c3_Err != nil { | 1775 | if templ_7745c5c3_Err != nil { | ||
| @@ -1782,7 +1782,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1782 | var templ_7745c5c3_Var89 string | 1782 | var templ_7745c5c3_Var89 string | ||
| 1783 | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | 1783 | templ_7745c5c3_Var89, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | ||
| 1784 | if templ_7745c5c3_Err != nil { | 1784 | if templ_7745c5c3_Err != nil { | ||
| 1785 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 319, Col: 32} | 1785 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 321, Col: 32} |
| 1786 | } | 1786 | } | ||
| 1787 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var89)) | 1787 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var89)) | ||
| 1788 | if templ_7745c5c3_Err != nil { | 1788 | if templ_7745c5c3_Err != nil { | ||
| @@ -1795,7 +1795,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1795 | var templ_7745c5c3_Var90 string | 1795 | var templ_7745c5c3_Var90 string | ||
| 1796 | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | 1796 | templ_7745c5c3_Var90, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | ||
| 1797 | if templ_7745c5c3_Err != nil { | 1797 | if templ_7745c5c3_Err != nil { | ||
| 1798 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 321, Col: 16} | 1798 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 16} |
| 1799 | } | 1799 | } | ||
| 1800 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var90)) | 1800 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var90)) | ||
| 1801 | if templ_7745c5c3_Err != nil { | 1801 | if templ_7745c5c3_Err != nil { | ||
| @@ -1809,7 +1809,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1809 | var templ_7745c5c3_Var91 string | 1809 | var templ_7745c5c3_Var91 string | ||
| 1810 | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | 1810 | templ_7745c5c3_Var91, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | ||
| 1811 | if templ_7745c5c3_Err != nil { | 1811 | if templ_7745c5c3_Err != nil { | ||
| 1812 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 15} | 1812 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 325, Col: 15} |
| 1813 | } | 1813 | } | ||
| 1814 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) | 1814 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var91)) | ||
| 1815 | if templ_7745c5c3_Err != nil { | 1815 | if templ_7745c5c3_Err != nil { | ||
| @@ -1822,7 +1822,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1822 | var templ_7745c5c3_Var92 string | 1822 | var templ_7745c5c3_Var92 string | ||
| 1823 | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | 1823 | templ_7745c5c3_Var92, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | ||
| 1824 | if templ_7745c5c3_Err != nil { | 1824 | if templ_7745c5c3_Err != nil { | ||
| 1825 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 42} | 1825 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 325, Col: 42} |
| 1826 | } | 1826 | } | ||
| 1827 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) | 1827 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var92) | ||
| 1828 | if templ_7745c5c3_Err != nil { | 1828 | if templ_7745c5c3_Err != nil { | ||
| @@ -1835,7 +1835,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1835 | var templ_7745c5c3_Var93 string | 1835 | var templ_7745c5c3_Var93 string | ||
| 1836 | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | 1836 | templ_7745c5c3_Var93, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | ||
| 1837 | if templ_7745c5c3_Err != nil { | 1837 | if templ_7745c5c3_Err != nil { | ||
| 1838 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 323, Col: 53} | 1838 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 325, Col: 53} |
| 1839 | } | 1839 | } | ||
| 1840 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var93)) | 1840 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var93)) | ||
| 1841 | if templ_7745c5c3_Err != nil { | 1841 | if templ_7745c5c3_Err != nil { | ||
| @@ -1850,7 +1850,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1850 | var templ_7745c5c3_Var94 string | 1850 | var templ_7745c5c3_Var94 string | ||
| 1851 | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") | 1851 | templ_7745c5c3_Var94, templ_7745c5c3_Err = templ.JoinStringErrs(" · new") | ||
| 1852 | if templ_7745c5c3_Err != nil { | 1852 | if templ_7745c5c3_Err != nil { | ||
| 1853 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 326, Col: 18} | 1853 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 328, Col: 18} |
| 1854 | } | 1854 | } | ||
| 1855 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var94)) | 1855 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var94)) | ||
| 1856 | if templ_7745c5c3_Err != nil { | 1856 | if templ_7745c5c3_Err != nil { | ||
| @@ -1880,7 +1880,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1880 | var templ_7745c5c3_Var95 string | 1880 | var templ_7745c5c3_Var95 string | ||
| 1881 | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) | 1881 | templ_7745c5c3_Var95, templ_7745c5c3_Err = templ.JoinStringErrs(p.CommitsNote) | ||
| 1882 | if templ_7745c5c3_Err != nil { | 1882 | if templ_7745c5c3_Err != nil { | ||
| 1883 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 336, Col: 34} | 1883 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 338, Col: 34} |
| 1884 | } | 1884 | } | ||
| 1885 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var95)) | 1885 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var95)) | ||
| 1886 | if templ_7745c5c3_Err != nil { | 1886 | if templ_7745c5c3_Err != nil { | ||
| @@ -1898,7 +1898,7 @@ func mrRail(p MRPage) templ.Component { | |||||
| 1898 | var templ_7745c5c3_Var96 string | 1898 | var templ_7745c5c3_Var96 string | ||
| 1899 | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) | 1899 | templ_7745c5c3_Var96, templ_7745c5c3_Err = templ.JoinStringErrs(strings.Join(p.Modes, ", ")) | ||
| 1900 | if templ_7745c5c3_Err != nil { | 1900 | if templ_7745c5c3_Err != nil { | ||
| 1901 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 343, Col: 36} | 1901 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 345, Col: 36} |
| 1902 | } | 1902 | } | ||
| 1903 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var96)) | 1903 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var96)) | ||
| 1904 | if templ_7745c5c3_Err != nil { | 1904 | if templ_7745c5c3_Err != nil { | ||
| @@ -1959,7 +1959,7 @@ func mrBar(p MRPage) templ.Component { | |||||
| 1959 | var templ_7745c5c3_Var98 string | 1959 | var templ_7745c5c3_Var98 string | ||
| 1960 | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | 1960 | templ_7745c5c3_Var98, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | ||
| 1961 | if templ_7745c5c3_Err != nil { | 1961 | if templ_7745c5c3_Err != nil { | ||
| 1962 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 362, Col: 55} | 1962 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 364, Col: 55} |
| 1963 | } | 1963 | } | ||
| 1964 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | 1964 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var98)) | ||
| 1965 | if templ_7745c5c3_Err != nil { | 1965 | if templ_7745c5c3_Err != nil { | ||
| @@ -1972,7 +1972,7 @@ func mrBar(p MRPage) templ.Component { | |||||
| 1972 | var templ_7745c5c3_Var99 string | 1972 | var templ_7745c5c3_Var99 string | ||
| 1973 | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | 1973 | templ_7745c5c3_Var99, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | ||
| 1974 | if templ_7745c5c3_Err != nil { | 1974 | if templ_7745c5c3_Err != nil { | ||
| 1975 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 362, Col: 95} | 1975 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 364, Col: 95} |
| 1976 | } | 1976 | } | ||
| 1977 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | 1977 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var99)) | ||
| 1978 | if templ_7745c5c3_Err != nil { | 1978 | if templ_7745c5c3_Err != nil { | ||
| @@ -1985,7 +1985,7 @@ func mrBar(p MRPage) templ.Component { | |||||
| 1985 | var templ_7745c5c3_Var100 string | 1985 | var templ_7745c5c3_Var100 string | ||
| 1986 | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | 1986 | templ_7745c5c3_Var100, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | ||
| 1987 | if templ_7745c5c3_Err != nil { | 1987 | if templ_7745c5c3_Err != nil { | ||
| 1988 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 362, Col: 140} | 1988 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 364, Col: 140} |
| 1989 | } | 1989 | } | ||
| 1990 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) | 1990 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var100)) | ||
| 1991 | if templ_7745c5c3_Err != nil { | 1991 | if templ_7745c5c3_Err != nil { | ||
| @@ -2089,7 +2089,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2089 | var templ_7745c5c3_Var102 string | 2089 | var templ_7745c5c3_Var102 string | ||
| 2090 | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) | 2090 | templ_7745c5c3_Var102, templ_7745c5c3_Err = templ.JoinStringErrs(p.HeadShort) | ||
| 2091 | if templ_7745c5c3_Err != nil { | 2091 | if templ_7745c5c3_Err != nil { | ||
| 2092 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 395, Col: 19} | 2092 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 397, Col: 19} |
| 2093 | } | 2093 | } | ||
| 2094 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | 2094 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var102)) | ||
| 2095 | if templ_7745c5c3_Err != nil { | 2095 | if templ_7745c5c3_Err != nil { | ||
| @@ -2103,7 +2103,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2103 | var templ_7745c5c3_Var103 string | 2103 | var templ_7745c5c3_Var103 string | ||
| 2104 | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2104 | templ_7745c5c3_Var103, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | ||
| 2105 | if templ_7745c5c3_Err != nil { | 2105 | if templ_7745c5c3_Err != nil { | ||
| 2106 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 399, Col: 18} | 2106 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 401, Col: 18} |
| 2107 | } | 2107 | } | ||
| 2108 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | 2108 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var103)) | ||
| 2109 | if templ_7745c5c3_Err != nil { | 2109 | if templ_7745c5c3_Err != nil { | ||
| @@ -2121,7 +2121,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2121 | var templ_7745c5c3_Var104 templ.SafeURL | 2121 | var templ_7745c5c3_Var104 templ.SafeURL | ||
| 2122 | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) | 2122 | templ_7745c5c3_Var104, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadyAction)) | ||
| 2123 | if templ_7745c5c3_Err != nil { | 2123 | if templ_7745c5c3_Err != nil { | ||
| 2124 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 403, Col: 80} | 2124 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 405, Col: 80} |
| 2125 | } | 2125 | } | ||
| 2126 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | 2126 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var104)) | ||
| 2127 | if templ_7745c5c3_Err != nil { | 2127 | if templ_7745c5c3_Err != nil { | ||
| @@ -2139,7 +2139,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2139 | var templ_7745c5c3_Var105 templ.SafeURL | 2139 | var templ_7745c5c3_Var105 templ.SafeURL | ||
| 2140 | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) | 2140 | templ_7745c5c3_Var105, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.MergeAction)) | ||
| 2141 | if templ_7745c5c3_Err != nil { | 2141 | if templ_7745c5c3_Err != nil { | ||
| 2142 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 407, Col: 80} | 2142 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 409, Col: 80} |
| 2143 | } | 2143 | } | ||
| 2144 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | 2144 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var105)) | ||
| 2145 | if templ_7745c5c3_Err != nil { | 2145 | if templ_7745c5c3_Err != nil { | ||
| @@ -2152,7 +2152,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2152 | var templ_7745c5c3_Var106 string | 2152 | var templ_7745c5c3_Var106 string | ||
| 2153 | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | 2153 | templ_7745c5c3_Var106, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | ||
| 2154 | if templ_7745c5c3_Err != nil { | 2154 | if templ_7745c5c3_Err != nil { | ||
| 2155 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 408, Col: 59} | 2155 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 410, Col: 59} |
| 2156 | } | 2156 | } | ||
| 2157 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var106) | 2157 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var106) | ||
| 2158 | if templ_7745c5c3_Err != nil { | 2158 | if templ_7745c5c3_Err != nil { | ||
| @@ -2170,7 +2170,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2170 | var templ_7745c5c3_Var107 string | 2170 | var templ_7745c5c3_Var107 string | ||
| 2171 | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) | 2171 | templ_7745c5c3_Var107, templ_7745c5c3_Err = templ.ResolveAttributeValue(m.Value) | ||
| 2172 | if templ_7745c5c3_Err != nil { | 2172 | if templ_7745c5c3_Err != nil { | ||
| 2173 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 413, Col: 55} | 2173 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 415, Col: 55} |
| 2174 | } | 2174 | } | ||
| 2175 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var107) | 2175 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var107) | ||
| 2176 | if templ_7745c5c3_Err != nil { | 2176 | if templ_7745c5c3_Err != nil { | ||
| @@ -2193,7 +2193,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2193 | var templ_7745c5c3_Var108 string | 2193 | var templ_7745c5c3_Var108 string | ||
| 2194 | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) | 2194 | templ_7745c5c3_Var108, templ_7745c5c3_Err = templ.JoinStringErrs(m.Label) | ||
| 2195 | if templ_7745c5c3_Err != nil { | 2195 | if templ_7745c5c3_Err != nil { | ||
| 2196 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 414, Col: 17} | 2196 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 416, Col: 17} |
| 2197 | } | 2197 | } | ||
| 2198 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var108)) | 2198 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var108)) | ||
| 2199 | if templ_7745c5c3_Err != nil { | 2199 | if templ_7745c5c3_Err != nil { | ||
| @@ -2211,7 +2211,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2211 | var templ_7745c5c3_Var109 string | 2211 | var templ_7745c5c3_Var109 string | ||
| 2212 | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) | 2212 | templ_7745c5c3_Var109, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(i + 1)) | ||
| 2213 | if templ_7745c5c3_Err != nil { | 2213 | if templ_7745c5c3_Err != nil { | ||
| 2214 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 416, Col: 46} | 2214 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 418, Col: 46} |
| 2215 | } | 2215 | } | ||
| 2216 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) | 2216 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var109)) | ||
| 2217 | if templ_7745c5c3_Err != nil { | 2217 | if templ_7745c5c3_Err != nil { | ||
| @@ -2239,7 +2239,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2239 | var templ_7745c5c3_Var110 string | 2239 | var templ_7745c5c3_Var110 string | ||
| 2240 | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | 2240 | templ_7745c5c3_Var110, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | ||
| 2241 | if templ_7745c5c3_Err != nil { | 2241 | if templ_7745c5c3_Err != nil { | ||
| 2242 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 422, Col: 102} | 2242 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 424, Col: 102} |
| 2243 | } | 2243 | } | ||
| 2244 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) | 2244 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var110)) | ||
| 2245 | if templ_7745c5c3_Err != nil { | 2245 | if templ_7745c5c3_Err != nil { | ||
| @@ -2257,7 +2257,7 @@ func mergeMenu(p MRPage) templ.Component { | |||||
| 2257 | var templ_7745c5c3_Var111 string | 2257 | var templ_7745c5c3_Var111 string | ||
| 2258 | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2258 | templ_7745c5c3_Var111, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | ||
| 2259 | if templ_7745c5c3_Err != nil { | 2259 | if templ_7745c5c3_Err != nil { | ||
| 2260 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 425, Col: 82} | 2260 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 427, Col: 82} |
| 2261 | } | 2261 | } | ||
| 2262 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) | 2262 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var111)) | ||
| 2263 | if templ_7745c5c3_Err != nil { | 2263 | if templ_7745c5c3_Err != nil { | ||
| @@ -2311,7 +2311,7 @@ func moreMenu(p MRPage) templ.Component { | |||||
| 2311 | var templ_7745c5c3_Var113 templ.SafeURL | 2311 | var templ_7745c5c3_Var113 templ.SafeURL | ||
| 2312 | templ_7745c5c3_Var113, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) | 2312 | templ_7745c5c3_Var113, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.ReadAction)) | ||
| 2313 | if templ_7745c5c3_Err != nil { | 2313 | if templ_7745c5c3_Err != nil { | ||
| 2314 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 440, Col: 64} | 2314 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 442, Col: 64} |
| 2315 | } | 2315 | } | ||
| 2316 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var113)) | 2316 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var113)) | ||
| 2317 | if templ_7745c5c3_Err != nil { | 2317 | if templ_7745c5c3_Err != nil { | ||
| @@ -2324,7 +2324,7 @@ func moreMenu(p MRPage) templ.Component { | |||||
| 2324 | var templ_7745c5c3_Var114 string | 2324 | var templ_7745c5c3_Var114 string | ||
| 2325 | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | 2325 | templ_7745c5c3_Var114, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Box.Head) | ||
| 2326 | if templ_7745c5c3_Err != nil { | 2326 | if templ_7745c5c3_Err != nil { | ||
| 2327 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 441, Col: 59} | 2327 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 443, Col: 59} |
| 2328 | } | 2328 | } | ||
| 2329 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var114) | 2329 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var114) | ||
| 2330 | if templ_7745c5c3_Err != nil { | 2330 | if templ_7745c5c3_Err != nil { | ||
| @@ -2342,7 +2342,7 @@ func moreMenu(p MRPage) templ.Component { | |||||
| 2342 | var templ_7745c5c3_Var115 templ.SafeURL | 2342 | var templ_7745c5c3_Var115 templ.SafeURL | ||
| 2343 | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) | 2343 | templ_7745c5c3_Var115, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Box.CloseAction)) | ||
| 2344 | if templ_7745c5c3_Err != nil { | 2344 | if templ_7745c5c3_Err != nil { | ||
| 2345 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 445, Col: 64} | 2345 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 447, Col: 64} |
| 2346 | } | 2346 | } | ||
| 2347 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) | 2347 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var115)) | ||
| 2348 | if templ_7745c5c3_Err != nil { | 2348 | if templ_7745c5c3_Err != nil { | ||
| @@ -2414,7 +2414,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2414 | var templ_7745c5c3_Var118 string | 2414 | var templ_7745c5c3_Var118 string | ||
| 2415 | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | 2415 | templ_7745c5c3_Var118, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | ||
| 2416 | if templ_7745c5c3_Err != nil { | 2416 | if templ_7745c5c3_Err != nil { | ||
| 2417 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 461, Col: 17} | 2417 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 463, Col: 17} |
| 2418 | } | 2418 | } | ||
| 2419 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) | 2419 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var118)) | ||
| 2420 | if templ_7745c5c3_Err != nil { | 2420 | if templ_7745c5c3_Err != nil { | ||
| @@ -2427,7 +2427,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2427 | var templ_7745c5c3_Var119 string | 2427 | var templ_7745c5c3_Var119 string | ||
| 2428 | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2428 | templ_7745c5c3_Var119, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | ||
| 2429 | if templ_7745c5c3_Err != nil { | 2429 | if templ_7745c5c3_Err != nil { | ||
| 2430 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 461, Col: 34} | 2430 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 463, Col: 34} |
| 2431 | } | 2431 | } | ||
| 2432 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) | 2432 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var119)) | ||
| 2433 | if templ_7745c5c3_Err != nil { | 2433 | if templ_7745c5c3_Err != nil { | ||
| @@ -2440,7 +2440,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2440 | var templ_7745c5c3_Var120 templ.SafeURL | 2440 | var templ_7745c5c3_Var120 templ.SafeURL | ||
| 2441 | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) | 2441 | templ_7745c5c3_Var120, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.SourceHref)) | ||
| 2442 | if templ_7745c5c3_Err != nil { | 2442 | if templ_7745c5c3_Err != nil { | ||
| 2443 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 464, Col: 45} | 2443 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 45} |
| 2444 | } | 2444 | } | ||
| 2445 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) | 2445 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var120)) | ||
| 2446 | if templ_7745c5c3_Err != nil { | 2446 | if templ_7745c5c3_Err != nil { | ||
| @@ -2453,7 +2453,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2453 | var templ_7745c5c3_Var121 string | 2453 | var templ_7745c5c3_Var121 string | ||
| 2454 | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | 2454 | templ_7745c5c3_Var121, templ_7745c5c3_Err = templ.JoinStringErrs(p.Source) | ||
| 2455 | if templ_7745c5c3_Err != nil { | 2455 | if templ_7745c5c3_Err != nil { | ||
| 2456 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 464, Col: 58} | 2456 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 58} |
| 2457 | } | 2457 | } | ||
| 2458 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) | 2458 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var121)) | ||
| 2459 | if templ_7745c5c3_Err != nil { | 2459 | if templ_7745c5c3_Err != nil { | ||
| @@ -2466,7 +2466,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2466 | var templ_7745c5c3_Var122 templ.SafeURL | 2466 | var templ_7745c5c3_Var122 templ.SafeURL | ||
| 2467 | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) | 2467 | templ_7745c5c3_Var122, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.TargetHref)) | ||
| 2468 | if templ_7745c5c3_Err != nil { | 2468 | if templ_7745c5c3_Err != nil { | ||
| 2469 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 45} | 2469 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 468, Col: 45} |
| 2470 | } | 2470 | } | ||
| 2471 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var122)) | 2471 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var122)) | ||
| 2472 | if templ_7745c5c3_Err != nil { | 2472 | if templ_7745c5c3_Err != nil { | ||
| @@ -2479,7 +2479,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2479 | var templ_7745c5c3_Var123 string | 2479 | var templ_7745c5c3_Var123 string | ||
| 2480 | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2480 | templ_7745c5c3_Var123, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | ||
| 2481 | if templ_7745c5c3_Err != nil { | 2481 | if templ_7745c5c3_Err != nil { | ||
| 2482 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 466, Col: 58} | 2482 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 468, Col: 58} |
| 2483 | } | 2483 | } | ||
| 2484 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var123)) | 2484 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var123)) | ||
| 2485 | if templ_7745c5c3_Err != nil { | 2485 | if templ_7745c5c3_Err != nil { | ||
| @@ -2492,7 +2492,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2492 | var templ_7745c5c3_Var124 string | 2492 | var templ_7745c5c3_Var124 string | ||
| 2493 | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) | 2493 | templ_7745c5c3_Var124, templ_7745c5c3_Err = templ.JoinStringErrs(p.AheadText) | ||
| 2494 | if templ_7745c5c3_Err != nil { | 2494 | if templ_7745c5c3_Err != nil { | ||
| 2495 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 468, Col: 21} | 2495 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 470, Col: 21} |
| 2496 | } | 2496 | } | ||
| 2497 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var124)) | 2497 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var124)) | ||
| 2498 | if templ_7745c5c3_Err != nil { | 2498 | if templ_7745c5c3_Err != nil { | ||
| @@ -2510,7 +2510,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2510 | var templ_7745c5c3_Var125 string | 2510 | var templ_7745c5c3_Var125 string | ||
| 2511 | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | 2511 | templ_7745c5c3_Var125, templ_7745c5c3_Err = templ.JoinStringErrs(p.Note) | ||
| 2512 | if templ_7745c5c3_Err != nil { | 2512 | if templ_7745c5c3_Err != nil { | ||
| 2513 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 472, Col: 29} | 2513 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 474, Col: 29} |
| 2514 | } | 2514 | } | ||
| 2515 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var125)) | 2515 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var125)) | ||
| 2516 | if templ_7745c5c3_Err != nil { | 2516 | if templ_7745c5c3_Err != nil { | ||
| @@ -2533,7 +2533,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2533 | var templ_7745c5c3_Var126 templ.SafeURL | 2533 | var templ_7745c5c3_Var126 templ.SafeURL | ||
| 2534 | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) | 2534 | templ_7745c5c3_Var126, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Existing.Href)) | ||
| 2535 | if templ_7745c5c3_Err != nil { | 2535 | if templ_7745c5c3_Err != nil { | ||
| 2536 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 475, Col: 114} | 2536 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 477, Col: 114} |
| 2537 | } | 2537 | } | ||
| 2538 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) | 2538 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var126)) | ||
| 2539 | if templ_7745c5c3_Err != nil { | 2539 | if templ_7745c5c3_Err != nil { | ||
| @@ -2546,7 +2546,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2546 | var templ_7745c5c3_Var127 string | 2546 | var templ_7745c5c3_Var127 string | ||
| 2547 | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) | 2547 | templ_7745c5c3_Var127, templ_7745c5c3_Err = templ.JoinStringErrs(p.Existing.Label) | ||
| 2548 | if templ_7745c5c3_Err != nil { | 2548 | if templ_7745c5c3_Err != nil { | ||
| 2549 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 475, Col: 135} | 2549 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 477, Col: 135} |
| 2550 | } | 2550 | } | ||
| 2551 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) | 2551 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var127)) | ||
| 2552 | if templ_7745c5c3_Err != nil { | 2552 | if templ_7745c5c3_Err != nil { | ||
| @@ -2569,7 +2569,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2569 | var templ_7745c5c3_Var128 templ.SafeURL | 2569 | var templ_7745c5c3_Var128 templ.SafeURL | ||
| 2570 | templ_7745c5c3_Var128, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) | 2570 | templ_7745c5c3_Var128, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(p.Create.Action)) | ||
| 2571 | if templ_7745c5c3_Err != nil { | 2571 | if templ_7745c5c3_Err != nil { | ||
| 2572 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 478, Col: 83} | 2572 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 480, Col: 83} |
| 2573 | } | 2573 | } | ||
| 2574 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var128)) | 2574 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var128)) | ||
| 2575 | if templ_7745c5c3_Err != nil { | 2575 | if templ_7745c5c3_Err != nil { | ||
| @@ -2582,7 +2582,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2582 | var templ_7745c5c3_Var129 string | 2582 | var templ_7745c5c3_Var129 string | ||
| 2583 | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) | 2583 | templ_7745c5c3_Var129, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Source) | ||
| 2584 | if templ_7745c5c3_Err != nil { | 2584 | if templ_7745c5c3_Err != nil { | ||
| 2585 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 479, Col: 62} | 2585 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 481, Col: 62} |
| 2586 | } | 2586 | } | ||
| 2587 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var129) | 2587 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var129) | ||
| 2588 | if templ_7745c5c3_Err != nil { | 2588 | if templ_7745c5c3_Err != nil { | ||
| @@ -2595,7 +2595,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2595 | var templ_7745c5c3_Var130 string | 2595 | var templ_7745c5c3_Var130 string | ||
| 2596 | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) | 2596 | templ_7745c5c3_Var130, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Target) | ||
| 2597 | if templ_7745c5c3_Err != nil { | 2597 | if templ_7745c5c3_Err != nil { | ||
| 2598 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 480, Col: 62} | 2598 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 482, Col: 62} |
| 2599 | } | 2599 | } | ||
| 2600 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var130) | 2600 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var130) | ||
| 2601 | if templ_7745c5c3_Err != nil { | 2601 | if templ_7745c5c3_Err != nil { | ||
| @@ -2608,13 +2608,13 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2608 | var templ_7745c5c3_Var131 string | 2608 | var templ_7745c5c3_Var131 string | ||
| 2609 | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) | 2609 | templ_7745c5c3_Var131, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.Create.Title) | ||
| 2610 | if templ_7745c5c3_Err != nil { | 2610 | if templ_7745c5c3_Err != nil { | ||
| 2611 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 482, Col: 97} | 2611 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 484, Col: 97} |
| 2612 | } | 2612 | } | ||
| 2613 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var131) | 2613 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var131) | ||
| 2614 | if templ_7745c5c3_Err != nil { | 2614 | if templ_7745c5c3_Err != nil { | ||
| 2615 | return templ_7745c5c3_Err | 2615 | return templ_7745c5c3_Err | ||
| 2616 | } | 2616 | } | ||
| 2617 | - | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"plain text, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") | 2617 | + | templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 234, "\" autocomplete=\"off\"> <label for=\"mr-desc\">description</label> <textarea id=\"mr-desc\" name=\"description\" rows=\"4\" maxlength=\"8000\" placeholder=\"Markdown, optional\"></textarea><div class=\"f-btns\"><button type=\"submit\" class=\"btn primary\">Create merge request</button></div></form>") |
| 2618 | if templ_7745c5c3_Err != nil { | 2618 | if templ_7745c5c3_Err != nil { | ||
| 2619 | return templ_7745c5c3_Err | 2619 | return templ_7745c5c3_Err | ||
| 2620 | } | 2620 | } | ||
| @@ -2631,7 +2631,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2631 | var templ_7745c5c3_Var132 string | 2631 | var templ_7745c5c3_Var132 string | ||
| 2632 | templ_7745c5c3_Var132, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | 2632 | templ_7745c5c3_Var132, templ_7745c5c3_Err = templ.JoinStringErrs(plural(p.NFiles, "file", "files")) | ||
| 2633 | if templ_7745c5c3_Err != nil { | 2633 | if templ_7745c5c3_Err != nil { | ||
| 2634 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 492, Col: 57} | 2634 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 57} |
| 2635 | } | 2635 | } | ||
| 2636 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var132)) | 2636 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var132)) | ||
| 2637 | if templ_7745c5c3_Err != nil { | 2637 | if templ_7745c5c3_Err != nil { | ||
| @@ -2644,7 +2644,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2644 | var templ_7745c5c3_Var133 string | 2644 | var templ_7745c5c3_Var133 string | ||
| 2645 | templ_7745c5c3_Var133, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | 2645 | templ_7745c5c3_Var133, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Adds)) | ||
| 2646 | if templ_7745c5c3_Err != nil { | 2646 | if templ_7745c5c3_Err != nil { | ||
| 2647 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 492, Col: 97} | 2647 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 97} |
| 2648 | } | 2648 | } | ||
| 2649 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var133)) | 2649 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var133)) | ||
| 2650 | if templ_7745c5c3_Err != nil { | 2650 | if templ_7745c5c3_Err != nil { | ||
| @@ -2657,7 +2657,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2657 | var templ_7745c5c3_Var134 string | 2657 | var templ_7745c5c3_Var134 string | ||
| 2658 | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | 2658 | templ_7745c5c3_Var134, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(p.Dels)) | ||
| 2659 | if templ_7745c5c3_Err != nil { | 2659 | if templ_7745c5c3_Err != nil { | ||
| 2660 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 492, Col: 142} | 2660 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 494, Col: 142} |
| 2661 | } | 2661 | } | ||
| 2662 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var134)) | 2662 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var134)) | ||
| 2663 | if templ_7745c5c3_Err != nil { | 2663 | if templ_7745c5c3_Err != nil { | ||
| @@ -2701,7 +2701,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2701 | var templ_7745c5c3_Var135 string | 2701 | var templ_7745c5c3_Var135 string | ||
| 2702 | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 2702 | templ_7745c5c3_Var135, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 2703 | if templ_7745c5c3_Err != nil { | 2703 | if templ_7745c5c3_Err != nil { | ||
| 2704 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 507, Col: 23} | 2704 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 509, Col: 23} |
| 2705 | } | 2705 | } | ||
| 2706 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var135) | 2706 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var135) | ||
| 2707 | if templ_7745c5c3_Err != nil { | 2707 | if templ_7745c5c3_Err != nil { | ||
| @@ -2719,7 +2719,7 @@ func Compare(l Layout, p ComparePage) templ.Component { | |||||
| 2719 | var templ_7745c5c3_Var136 string | 2719 | var templ_7745c5c3_Var136 string | ||
| 2720 | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | 2720 | templ_7745c5c3_Var136, templ_7745c5c3_Err = templ.ResolveAttributeValue(p.View) | ||
| 2721 | if templ_7745c5c3_Err != nil { | 2721 | if templ_7745c5c3_Err != nil { | ||
| 2722 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 509, Col: 23} | 2722 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 511, Col: 23} |
| 2723 | } | 2723 | } | ||
| 2724 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var136) | 2724 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var136) | ||
| 2725 | if templ_7745c5c3_Err != nil { | 2725 | if templ_7745c5c3_Err != nil { | ||
| @@ -2789,7 +2789,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2789 | var templ_7745c5c3_Var138 string | 2789 | var templ_7745c5c3_Var138 string | ||
| 2790 | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) | 2790 | templ_7745c5c3_Var138, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Ahead))) | ||
| 2791 | if templ_7745c5c3_Err != nil { | 2791 | if templ_7745c5c3_Err != nil { | ||
| 2792 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 525, Col: 67} | 2792 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 527, Col: 67} |
| 2793 | } | 2793 | } | ||
| 2794 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var138)) | 2794 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var138)) | ||
| 2795 | if templ_7745c5c3_Err != nil { | 2795 | if templ_7745c5c3_Err != nil { | ||
| @@ -2807,7 +2807,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2807 | var templ_7745c5c3_Var139 templ.SafeURL | 2807 | var templ_7745c5c3_Var139 templ.SafeURL | ||
| 2808 | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) | 2808 | templ_7745c5c3_Var139, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(c.CHref)) | ||
| 2809 | if templ_7745c5c3_Err != nil { | 2809 | if templ_7745c5c3_Err != nil { | ||
| 2810 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 529, Col: 37} | 2810 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 531, Col: 37} |
| 2811 | } | 2811 | } | ||
| 2812 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var139)) | 2812 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var139)) | ||
| 2813 | if templ_7745c5c3_Err != nil { | 2813 | if templ_7745c5c3_Err != nil { | ||
| @@ -2820,7 +2820,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2820 | var templ_7745c5c3_Var140 string | 2820 | var templ_7745c5c3_Var140 string | ||
| 2821 | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | 2821 | templ_7745c5c3_Var140, templ_7745c5c3_Err = templ.JoinStringErrs(c.Short) | ||
| 2822 | if templ_7745c5c3_Err != nil { | 2822 | if templ_7745c5c3_Err != nil { | ||
| 2823 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 529, Col: 49} | 2823 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 531, Col: 49} |
| 2824 | } | 2824 | } | ||
| 2825 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) | 2825 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var140)) | ||
| 2826 | if templ_7745c5c3_Err != nil { | 2826 | if templ_7745c5c3_Err != nil { | ||
| @@ -2833,7 +2833,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2833 | var templ_7745c5c3_Var141 string | 2833 | var templ_7745c5c3_Var141 string | ||
| 2834 | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | 2834 | templ_7745c5c3_Var141, templ_7745c5c3_Err = templ.JoinStringErrs(c.Subject) | ||
| 2835 | if templ_7745c5c3_Err != nil { | 2835 | if templ_7745c5c3_Err != nil { | ||
| 2836 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 530, Col: 32} | 2836 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 532, Col: 32} |
| 2837 | } | 2837 | } | ||
| 2838 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) | 2838 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var141)) | ||
| 2839 | if templ_7745c5c3_Err != nil { | 2839 | if templ_7745c5c3_Err != nil { | ||
| @@ -2846,7 +2846,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2846 | var templ_7745c5c3_Var142 string | 2846 | var templ_7745c5c3_Var142 string | ||
| 2847 | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | 2847 | templ_7745c5c3_Var142, templ_7745c5c3_Err = templ.JoinStringErrs(c.Author) | ||
| 2848 | if templ_7745c5c3_Err != nil { | 2848 | if templ_7745c5c3_Err != nil { | ||
| 2849 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 532, Col: 16} | 2849 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 16} |
| 2850 | } | 2850 | } | ||
| 2851 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) | 2851 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var142)) | ||
| 2852 | if templ_7745c5c3_Err != nil { | 2852 | if templ_7745c5c3_Err != nil { | ||
| @@ -2860,7 +2860,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2860 | var templ_7745c5c3_Var143 string | 2860 | var templ_7745c5c3_Var143 string | ||
| 2861 | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | 2861 | templ_7745c5c3_Var143, templ_7745c5c3_Err = templ.JoinStringErrs(" · ") | ||
| 2862 | if templ_7745c5c3_Err != nil { | 2862 | if templ_7745c5c3_Err != nil { | ||
| 2863 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 15} | 2863 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 536, Col: 15} |
| 2864 | } | 2864 | } | ||
| 2865 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) | 2865 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var143)) | ||
| 2866 | if templ_7745c5c3_Err != nil { | 2866 | if templ_7745c5c3_Err != nil { | ||
| @@ -2873,7 +2873,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2873 | var templ_7745c5c3_Var144 string | 2873 | var templ_7745c5c3_Var144 string | ||
| 2874 | templ_7745c5c3_Var144, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | 2874 | templ_7745c5c3_Var144, templ_7745c5c3_Err = templ.ResolveAttributeValue(c.WhenAt) | ||
| 2875 | if templ_7745c5c3_Err != nil { | 2875 | if templ_7745c5c3_Err != nil { | ||
| 2876 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 42} | 2876 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 536, Col: 42} |
| 2877 | } | 2877 | } | ||
| 2878 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var144) | 2878 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var144) | ||
| 2879 | if templ_7745c5c3_Err != nil { | 2879 | if templ_7745c5c3_Err != nil { | ||
| @@ -2886,7 +2886,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2886 | var templ_7745c5c3_Var145 string | 2886 | var templ_7745c5c3_Var145 string | ||
| 2887 | templ_7745c5c3_Var145, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | 2887 | templ_7745c5c3_Var145, templ_7745c5c3_Err = templ.JoinStringErrs(c.When) | ||
| 2888 | if templ_7745c5c3_Err != nil { | 2888 | if templ_7745c5c3_Err != nil { | ||
| 2889 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 534, Col: 53} | 2889 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 536, Col: 53} |
| 2890 | } | 2890 | } | ||
| 2891 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var145)) | 2891 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var145)) | ||
| 2892 | if templ_7745c5c3_Err != nil { | 2892 | if templ_7745c5c3_Err != nil { | ||
| @@ -2914,7 +2914,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2914 | var templ_7745c5c3_Var146 string | 2914 | var templ_7745c5c3_Var146 string | ||
| 2915 | templ_7745c5c3_Var146, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | 2915 | templ_7745c5c3_Var146, templ_7745c5c3_Err = templ.JoinStringErrs(p.Target) | ||
| 2916 | if templ_7745c5c3_Err != nil { | 2916 | if templ_7745c5c3_Err != nil { | ||
| 2917 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 541, Col: 47} | 2917 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 543, Col: 47} |
| 2918 | } | 2918 | } | ||
| 2919 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var146)) | 2919 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var146)) | ||
| 2920 | if templ_7745c5c3_Err != nil { | 2920 | if templ_7745c5c3_Err != nil { | ||
| @@ -2937,7 +2937,7 @@ func compareRail(p ComparePage) templ.Component { | |||||
| 2937 | var templ_7745c5c3_Var147 string | 2937 | var templ_7745c5c3_Var147 string | ||
| 2938 | templ_7745c5c3_Var147, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | 2938 | templ_7745c5c3_Var147, templ_7745c5c3_Err = templ.JoinStringErrs(itoa(len(p.Files))) | ||
| 2939 | if templ_7745c5c3_Err != nil { | 2939 | if templ_7745c5c3_Err != nil { | ||
| 2940 | - | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 546, Col: 66} | 2940 | + | return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/adapters/web/mr.templ`, Line: 548, Col: 66} |
| 2941 | } | 2941 | } | ||
| 2942 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var147)) | 2942 | _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var147)) | ||
| 2943 | if templ_7745c5c3_Err != nil { | 2943 | if templ_7745c5c3_Err != nil { | ||
M internal/adapters/web/pages.templ +3 -2
| @@ -68,10 +68,11 @@ templ latestTagFact(t LatestTag) { | |||
| 68 | 68 | <dt>latest tag</dt> | |
| 69 | 69 | <dd class="latest-tag"> | |
| 70 | 70 | if t.Name != "" { | |
| 71 | - | <a class="tag-name" href={ templ.SafeURL(t.Href) } title={ t.Subject }><span class="ico i-tag" aria-hidden="true"></span>{ t.Name }</a> | |
| 71 | + | <a class="tag-name" href={ templ.SafeURL(t.Href) } title={ t.Subject }>{ t.Name }</a> | |
| 72 | 72 | if t.WhenAt != "" { | |
| 73 | - | <time class="dim" datetime={ t.WhenAt } title={ t.WhenAt }>{ t.When }</time> | |
| 73 | + | { " · " }<time datetime={ t.WhenAt } title={ t.WhenAt }>{ t.When }</time> | |
| 74 | 74 | } | |
| 75 | + | { " · " } | |
| 75 | 76 | } | |
| 76 | 77 | <a class="all-tags" href={ templ.SafeURL(t.RefsHref) }>{ plural(t.Count, "tag", "tags") }</a> | |
| 77 | 78 | </dd> | |
| @@ -68,10 +68,11 @@ templ latestTagFact(t LatestTag) { | |||||
| 68 | <dt>latest tag</dt> | 68 | <dt>latest tag</dt> | ||
| 69 | <dd class="latest-tag"> | 69 | <dd class="latest-tag"> | ||
| 70 | if t.Name != "" { | 70 | if t.Name != "" { | ||
| 71 | - | <a class="tag-name" href={ templ.SafeURL(t.Href) } title={ t.Subject }><span class="ico i-tag" aria-hidden="true"></span>{ t.Name }</a> | 71 | + | <a class="tag-name" href={ templ.SafeURL(t.Href) } title={ t.Subject }>{ t.Name }</a> |
| 72 | if t.WhenAt != "" { | 72 | if t.WhenAt != "" { | ||
| 73 | - | <time class="dim" datetime={ t.WhenAt } title={ t.WhenAt }>{ t.When }</time> | 73 | + | { " · " }<time datetime={ t.WhenAt } title={ t.WhenAt }>{ t.When }</time> |
| 74 | } | 74 | } | ||
| 75 | + | { " · " } | |||
| 75 | } | 76 | } | ||
| 76 | <a class="all-tags" href={ templ.SafeURL(t.RefsHref) }>{ plural(t.Count, "tag", "tags") }</a> | 77 | <a class="all-tags" href={ templ.SafeURL(t.RefsHref) }>{ plural(t.Count, "tag", "tags") }</a> | ||
| 77 | </dd> | 78 | </dd> | ||
M internal/adapters/web/pages_templ.go +325 -299 generated file: collapsed
M internal/adapters/web/shell.templ +0 -10
| @@ -128,16 +128,6 @@ templ Header(l Layout) { | |||
| 128 | 128 | <span class="search-label">Go to…</span> | |
| 129 | 129 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 130 | 130 | </button> | |
| 131 | - | <button | |
| 132 | - | type="button" | |
| 133 | - | class="btn icon" | |
| 134 | - | data-install | |
| 135 | - | hidden | |
| 136 | - | aria-label="Install app" | |
| 137 | - | title="install ermite as an app" | |
| 138 | - | > | |
| 139 | - | <span class="ico i-download" aria-hidden="true"></span> | |
| 140 | - | </button> | |
| 141 | 131 | if SignedIn(ctx) { | |
| 142 | 132 | <form class="owner" method="post" action="/-/logout"> | |
| 143 | 133 | <span class="owner-badge" title="signed in as the owner"><span class="ico i-user" aria-hidden="true"></span>{ l.Owner }</span> | |
| @@ -128,16 +128,6 @@ templ Header(l Layout) { | |||||
| 128 | <span class="search-label">Go to…</span> | 128 | <span class="search-label">Go to…</span> | ||
| 129 | <kbd aria-hidden="true">ctrl k</kbd> | 129 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 130 | </button> | 130 | </button> | ||
| 131 | - | <button | |||
| 132 | - | type="button" | |||
| 133 | - | class="btn icon" | |||
| 134 | - | data-install | |||
| 135 | - | hidden | |||
| 136 | - | aria-label="Install app" | |||
| 137 | - | title="install ermite as an app" | |||
| 138 | - | > | |||
| 139 | - | <span class="ico i-download" aria-hidden="true"></span> | |||
| 140 | - | </button> | |||
| 141 | if SignedIn(ctx) { | 131 | if SignedIn(ctx) { | ||
| 142 | <form class="owner" method="post" action="/-/logout"> | 132 | <form class="owner" method="post" action="/-/logout"> | ||
| 143 | <span class="owner-badge" title="signed in as the owner"><span class="ico i-user" aria-hidden="true"></span>{ l.Owner }</span> | 133 | <span class="owner-badge" title="signed in as the owner"><span class="ico i-user" aria-hidden="true"></span>{ l.Owner }</span> | ||
M internal/adapters/web/shell_templ.go +11 -11 generated file: collapsed
M internal/adapters/web/static/css/20-shell.css +5 -9
| @@ -26,7 +26,6 @@ | |||
| 26 | 26 | .i-key { --i: url(icons/key.svg); } | |
| 27 | 27 | .i-log-in { --i: url(icons/log-in.svg); } | |
| 28 | 28 | .i-log-out { --i: url(icons/log-out.svg); } | |
| 29 | - | .i-download { --i: url(icons/download.svg); } | |
| 30 | 29 | ||
| 31 | 30 | .pill { | |
| 32 | 31 | display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s2); margin-left: var(--s1); | |
| @@ -135,15 +134,12 @@ | |||
| 135 | 134 | .rail section > .list { margin: var(--s2) 0; } | |
| 136 | 135 | .rail section > p + p { margin-top: calc(-1 * var(--s2)); } | |
| 137 | 136 | ||
| 138 | - | /* newest tag, a row of About in the summary rail */ | |
| 137 | + | /* newest tag, a row of About in the summary rail: one line of text like | |
| 138 | + | the rows above it ("v0.9.0 · 36h ago · 9 tags") */ | |
| 139 | 139 | .kv dd.latest-tag { | |
| 140 | - | display: flex; align-items: baseline; gap: var(--s2); | |
| 141 | - | & .tag-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; font-weight: 700; font-family: var(--mono); color: var(--ink-hi); text-decoration: none; } | |
| 142 | - | & .tag-name .ico { flex: none; } | |
| 143 | - | & .tag-name:hover { text-decoration: underline; } | |
| 144 | - | & time { white-space: nowrap; } | |
| 145 | - | & .all-tags { margin-left: auto; white-space: nowrap; color: var(--ink-dim); text-decoration: none; } | |
| 146 | - | & .all-tags:hover { color: var(--ink-hi); text-decoration: underline; } | |
| 140 | + | & a { color: inherit; text-decoration: none; } | |
| 141 | + | & .tag-name { font-weight: 700; color: var(--ink-hi); } | |
| 142 | + | & a:hover { color: var(--ink-hi); text-decoration: underline; } | |
| 147 | 143 | } | |
| 148 | 144 | ||
| 149 | 145 | .kv { | |
| @@ -26,7 +26,6 @@ | |||||
| 26 | .i-key { --i: url(icons/key.svg); } | 26 | .i-key { --i: url(icons/key.svg); } | ||
| 27 | .i-log-in { --i: url(icons/log-in.svg); } | 27 | .i-log-in { --i: url(icons/log-in.svg); } | ||
| 28 | .i-log-out { --i: url(icons/log-out.svg); } | 28 | .i-log-out { --i: url(icons/log-out.svg); } | ||
| 29 | - | .i-download { --i: url(icons/download.svg); } | |||
| 30 | 29 | ||||
| 31 | .pill { | 30 | .pill { | ||
| 32 | display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s2); margin-left: var(--s1); | 31 | display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s2); margin-left: var(--s1); | ||
| @@ -135,15 +134,12 @@ | |||||
| 135 | .rail section > .list { margin: var(--s2) 0; } | 134 | .rail section > .list { margin: var(--s2) 0; } | ||
| 136 | .rail section > p + p { margin-top: calc(-1 * var(--s2)); } | 135 | .rail section > p + p { margin-top: calc(-1 * var(--s2)); } | ||
| 137 | 136 | ||||
| 138 | - | /* newest tag, a row of About in the summary rail */ | 137 | + | /* newest tag, a row of About in the summary rail: one line of text like |
| 138 | + | the rows above it ("v0.9.0 · 36h ago · 9 tags") */ | |||
| 139 | .kv dd.latest-tag { | 139 | .kv dd.latest-tag { | ||
| 140 | - | display: flex; align-items: baseline; gap: var(--s2); | 140 | + | & a { color: inherit; text-decoration: none; } |
| 141 | - | & .tag-name { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; font-weight: 700; font-family: var(--mono); color: var(--ink-hi); text-decoration: none; } | 141 | + | & .tag-name { font-weight: 700; color: var(--ink-hi); } |
| 142 | - | & .tag-name .ico { flex: none; } | 142 | + | & a:hover { color: var(--ink-hi); text-decoration: underline; } |
| 143 | - | & .tag-name:hover { text-decoration: underline; } | |||
| 144 | - | & time { white-space: nowrap; } | |||
| 145 | - | & .all-tags { margin-left: auto; white-space: nowrap; color: var(--ink-dim); text-decoration: none; } | |||
| 146 | - | & .all-tags:hover { color: var(--ink-hi); text-decoration: underline; } | |||
| 147 | } | 143 | } | ||
| 148 | 144 | ||||
| 149 | .kv { | 145 | .kv { | ||
M internal/adapters/web/static/css/60-mr.css +6 -2
| @@ -6,8 +6,12 @@ | |||
| 6 | 6 | .mr-state[data-state="merged"]::before { content: "✓ "; color: var(--teal); } | |
| 7 | 7 | .mr-state[data-state="closed"]::before { content: "✗ "; color: var(--red); } | |
| 8 | 8 | .mr-state[data-state="draft"]::before { content: "◌ "; color: var(--ink-dim); } | |
| 9 | - | .mr-desc { max-width: var(--measure); white-space: pre-wrap; overflow-wrap: anywhere; padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); } | |
| 10 | - | .mr-desc a, .c-text a { text-decoration: underline; } | |
| 9 | + | /* the description: Markdown as a README, as wide as the header card above; | |
| 10 | + | the text inside keeps the reading measure */ | |
| 11 | + | .mr-desc.prose { max-width: none; padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); } | |
| 12 | + | .mr-desc.prose > * { max-width: var(--measure); } | |
| 13 | + | .mr-desc.prose > pre, .mr-desc.prose > table { max-width: 100%; } | |
| 14 | + | .c-text a { text-decoration: underline; } | |
| 11 | 15 | ||
| 12 | 16 | .since { | |
| 13 | 17 | display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1); | |
| @@ -6,8 +6,12 @@ | |||||
| 6 | .mr-state[data-state="merged"]::before { content: "✓ "; color: var(--teal); } | 6 | .mr-state[data-state="merged"]::before { content: "✓ "; color: var(--teal); } | ||
| 7 | .mr-state[data-state="closed"]::before { content: "✗ "; color: var(--red); } | 7 | .mr-state[data-state="closed"]::before { content: "✗ "; color: var(--red); } | ||
| 8 | .mr-state[data-state="draft"]::before { content: "◌ "; color: var(--ink-dim); } | 8 | .mr-state[data-state="draft"]::before { content: "◌ "; color: var(--ink-dim); } | ||
| 9 | - | .mr-desc { max-width: var(--measure); white-space: pre-wrap; overflow-wrap: anywhere; padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); } | 9 | + | /* the description: Markdown as a README, as wide as the header card above; |
| 10 | - | .mr-desc a, .c-text a { text-decoration: underline; } | 10 | + | the text inside keeps the reading measure */ |
| 11 | + | .mr-desc.prose { max-width: none; padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r); } | |||
| 12 | + | .mr-desc.prose > * { max-width: var(--measure); } | |||
| 13 | + | .mr-desc.prose > pre, .mr-desc.prose > table { max-width: 100%; } | |||
| 14 | + | .c-text a { text-decoration: underline; } | |||
| 11 | 15 | ||||
| 12 | .since { | 16 | .since { | ||
| 13 | display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1); | 17 | display: inline-flex; flex-wrap: wrap; gap: var(--s1); padding: var(--s1); | ||
D internal/adapters/web/static/icons/download.svg +0 -1
| @@ -1,1 +0,0 @@ | |||
| 1 | - | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15V3"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/></svg> | |
| @@ -1,1 +0,0 @@ | |||||
| 1 | - | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 15V3"/><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><path d="m7 10 5 5 5-5"/></svg> | |||
M internal/adapters/web/static/js/ermite.js +6 -51
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | // 4. The file of the diff in view is marked in the table of contents. | |
| 12 | 12 | // 5. A handler that fails is shown in the hint badge. | |
| 13 | 13 | // 6. The lines a diff hides load in place (ermiteGaps; e and E). | |
| 14 | - | // 7. The service worker and the "install app" button (ermiteInstall). | |
| 14 | + | // 7. The service worker (ermiteInstall). | |
| 15 | 15 | (() => { | |
| 16 | 16 | // Marks the page as scripted: what does nothing without scripts (the filters, | |
| 17 | 17 | // the "go to" and help buttons) is hidden until this class is set (see the | |
| @@ -366,20 +366,12 @@ | |||
| 366 | 366 | }; | |
| 367 | 367 | })(); | |
| 368 | 368 | ||
| 369 | - | // The installed app. The service worker (/-/sw.js) is registered once the page | |
| 370 | - | // has loaded. Chrome offers the install by itself only as an icon in the | |
| 371 | - | // address bar of a desktop (or a mini-bar on a phone): the page keeps the | |
| 372 | - | // beforeinstallprompt event and shows its own button ([data-install] in the | |
| 373 | - | // header), which asks the browser to prompt. The button stays hidden when the | |
| 374 | - | // app is already running installed or once it was installed. Self-contained: | |
| 375 | - | // jstest/install.test.mjs evaluates this block alone. | |
| 369 | + | // The installed app: the service worker (/-/sw.js) is registered once the | |
| 370 | + | // page has loaded. With it and the manifest the browser offers the install | |
| 371 | + | // by itself (the address bar of a desktop, the menu or a banner on a phone); | |
| 372 | + | // the page leaves that offer alone. Self-contained: jstest/install.test.mjs | |
| 373 | + | // evaluates this block alone. | |
| 376 | 374 | window.ermiteInstall = (() => { | |
| 377 | - | let deferred = null; | |
| 378 | - | const buttons = () => $$('[data-install]'); | |
| 379 | - | const show = (on) => { for (const b of buttons()) b.hidden = !on; }; | |
| 380 | - | const installed = () => | |
| 381 | - | !!window.matchMedia?.('(display-mode: standalone), (display-mode: minimal-ui), (display-mode: window-controls-overlay)').matches || | |
| 382 | - | navigator.standalone === true; | |
| 383 | 375 | const api = { | |
| 384 | 376 | // register installs the service worker; a browser without one, or a | |
| 385 | 377 | // refusal, leaves the site working as before. | |
| @@ -387,44 +379,7 @@ | |||
| 387 | 379 | if (!navigator.serviceWorker) return Promise.resolve(null); | |
| 388 | 380 | return navigator.serviceWorker.register('/-/sw.js', { scope: '/' }).catch(() => null); | |
| 389 | 381 | }, | |
| 390 | - | // offer keeps the event the browser sent and shows the button. | |
| 391 | - | offer(e) { | |
| 392 | - | if (installed()) return; | |
| 393 | - | e.preventDefault(); | |
| 394 | - | deferred = e; | |
| 395 | - | show(true); | |
| 396 | - | }, | |
| 397 | - | // prompt asks the browser to show its install dialog. The event works | |
| 398 | - | // once: a new one comes if the visitor dismisses the dialog. The button | |
| 399 | - | // stays while the dialog is up; once it hides, the focus it held moves | |
| 400 | - | // to the search of the header rather than to the body. | |
| 401 | - | async prompt() { | |
| 402 | - | const e = deferred; | |
| 403 | - | if (!e) return ''; | |
| 404 | - | deferred = null; | |
| 405 | - | let outcome = ''; | |
| 406 | - | try { | |
| 407 | - | await e.prompt(); | |
| 408 | - | outcome = (await e.userChoice).outcome; | |
| 409 | - | } catch { | |
| 410 | - | outcome = ''; | |
| 411 | - | } | |
| 412 | - | const had = buttons().some((b) => b === document.activeElement); | |
| 413 | - | show(false); | |
| 414 | - | if (had) document.querySelector('[aria-controls="panel-cmd"]')?.focus?.(); | |
| 415 | - | return outcome; | |
| 416 | - | }, | |
| 417 | - | done() { | |
| 418 | - | deferred = null; | |
| 419 | - | show(false); | |
| 420 | - | }, | |
| 421 | 382 | }; | |
| 422 | - | addEventListener('beforeinstallprompt', api.offer); | |
| 423 | - | addEventListener('appinstalled', api.done); | |
| 424 | - | addEventListener('click', (e) => { | |
| 425 | - | // pending is the prompt the last click started (its outcome) | |
| 426 | - | if (e.target.closest?.('[data-install]')) api.pending = api.prompt(); | |
| 427 | - | }); | |
| 428 | 383 | if (document.readyState === 'complete') api.register(); | |
| 429 | 384 | else addEventListener('load', () => api.register(), { once: true }); | |
| 430 | 385 | return api; | |
| @@ -11,7 +11,7 @@ | |||||
| 11 | // 4. The file of the diff in view is marked in the table of contents. | 11 | // 4. The file of the diff in view is marked in the table of contents. | ||
| 12 | // 5. A handler that fails is shown in the hint badge. | 12 | // 5. A handler that fails is shown in the hint badge. | ||
| 13 | // 6. The lines a diff hides load in place (ermiteGaps; e and E). | 13 | // 6. The lines a diff hides load in place (ermiteGaps; e and E). | ||
| 14 | - | // 7. The service worker and the "install app" button (ermiteInstall). | 14 | + | // 7. The service worker (ermiteInstall). |
| 15 | (() => { | 15 | (() => { | ||
| 16 | // Marks the page as scripted: what does nothing without scripts (the filters, | 16 | // Marks the page as scripted: what does nothing without scripts (the filters, | ||
| 17 | // the "go to" and help buttons) is hidden until this class is set (see the | 17 | // the "go to" and help buttons) is hidden until this class is set (see the | ||
| @@ -366,20 +366,12 @@ | |||||
| 366 | }; | 366 | }; | ||
| 367 | })(); | 367 | })(); | ||
| 368 | 368 | ||||
| 369 | - | // The installed app. The service worker (/-/sw.js) is registered once the page | 369 | + | // The installed app: the service worker (/-/sw.js) is registered once the |
| 370 | - | // has loaded. Chrome offers the install by itself only as an icon in the | 370 | + | // page has loaded. With it and the manifest the browser offers the install |
| 371 | - | // address bar of a desktop (or a mini-bar on a phone): the page keeps the | 371 | + | // by itself (the address bar of a desktop, the menu or a banner on a phone); |
| 372 | - | // beforeinstallprompt event and shows its own button ([data-install] in the | 372 | + | // the page leaves that offer alone. Self-contained: jstest/install.test.mjs |
| 373 | - | // header), which asks the browser to prompt. The button stays hidden when the | 373 | + | // evaluates this block alone. |
| 374 | - | // app is already running installed or once it was installed. Self-contained: | |||
| 375 | - | // jstest/install.test.mjs evaluates this block alone. | |||
| 376 | window.ermiteInstall = (() => { | 374 | window.ermiteInstall = (() => { | ||
| 377 | - | let deferred = null; | |||
| 378 | - | const buttons = () => $$('[data-install]'); | |||
| 379 | - | const show = (on) => { for (const b of buttons()) b.hidden = !on; }; | |||
| 380 | - | const installed = () => | |||
| 381 | - | !!window.matchMedia?.('(display-mode: standalone), (display-mode: minimal-ui), (display-mode: window-controls-overlay)').matches || | |||
| 382 | - | navigator.standalone === true; | |||
| 383 | const api = { | 375 | const api = { | ||
| 384 | // register installs the service worker; a browser without one, or a | 376 | // register installs the service worker; a browser without one, or a | ||
| 385 | // refusal, leaves the site working as before. | 377 | // refusal, leaves the site working as before. | ||
| @@ -387,44 +379,7 @@ | |||||
| 387 | if (!navigator.serviceWorker) return Promise.resolve(null); | 379 | if (!navigator.serviceWorker) return Promise.resolve(null); | ||
| 388 | return navigator.serviceWorker.register('/-/sw.js', { scope: '/' }).catch(() => null); | 380 | return navigator.serviceWorker.register('/-/sw.js', { scope: '/' }).catch(() => null); | ||
| 389 | }, | 381 | }, | ||
| 390 | - | // offer keeps the event the browser sent and shows the button. | |||
| 391 | - | offer(e) { | |||
| 392 | - | if (installed()) return; | |||
| 393 | - | e.preventDefault(); | |||
| 394 | - | deferred = e; | |||
| 395 | - | show(true); | |||
| 396 | - | }, | |||
| 397 | - | // prompt asks the browser to show its install dialog. The event works | |||
| 398 | - | // once: a new one comes if the visitor dismisses the dialog. The button | |||
| 399 | - | // stays while the dialog is up; once it hides, the focus it held moves | |||
| 400 | - | // to the search of the header rather than to the body. | |||
| 401 | - | async prompt() { | |||
| 402 | - | const e = deferred; | |||
| 403 | - | if (!e) return ''; | |||
| 404 | - | deferred = null; | |||
| 405 | - | let outcome = ''; | |||
| 406 | - | try { | |||
| 407 | - | await e.prompt(); | |||
| 408 | - | outcome = (await e.userChoice).outcome; | |||
| 409 | - | } catch { | |||
| 410 | - | outcome = ''; | |||
| 411 | - | } | |||
| 412 | - | const had = buttons().some((b) => b === document.activeElement); | |||
| 413 | - | show(false); | |||
| 414 | - | if (had) document.querySelector('[aria-controls="panel-cmd"]')?.focus?.(); | |||
| 415 | - | return outcome; | |||
| 416 | - | }, | |||
| 417 | - | done() { | |||
| 418 | - | deferred = null; | |||
| 419 | - | show(false); | |||
| 420 | - | }, | |||
| 421 | }; | 382 | }; | ||
| 422 | - | addEventListener('beforeinstallprompt', api.offer); | |||
| 423 | - | addEventListener('appinstalled', api.done); | |||
| 424 | - | addEventListener('click', (e) => { | |||
| 425 | - | // pending is the prompt the last click started (its outcome) | |||
| 426 | - | if (e.target.closest?.('[data-install]')) api.pending = api.prompt(); | |||
| 427 | - | }); | |||
| 428 | if (document.readyState === 'complete') api.register(); | 383 | if (document.readyState === 'complete') api.register(); | ||
| 429 | else addEventListener('load', () => api.register(), { once: true }); | 384 | else addEventListener('load', () => api.register(), { once: true }); | ||
| 430 | return api; | 385 | return api; | ||
M internal/app/testdata/web/blob-binary.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-code.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-empty.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-image.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-markdown.html +0 -4
| @@ -69,10 +69,6 @@ | |||
| 69 | 69 | <span class="search-label">Go to…</span> | |
| 70 | 70 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 71 | 71 | </button> | |
| 72 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 73 | - | <span class="ico i-download" aria-hidden="true"> | |
| 74 | - | </span> | |
| 75 | - | </button> | |
| 76 | 72 | </div> | |
| 77 | 73 | </div> | |
| 78 | 74 | <nav class="tabs" aria-label="Sections"> | |
| @@ -69,10 +69,6 @@ | |||||
| 69 | <span class="search-label">Go to…</span> | 69 | <span class="search-label">Go to…</span> | ||
| 70 | <kbd aria-hidden="true">ctrl k</kbd> | 70 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 71 | </button> | 71 | </button> | ||
| 72 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 73 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 74 | - | </span> | |||
| 75 | - | </button> | |||
| 76 | </div> | 72 | </div> | ||
| 77 | </div> | 73 | </div> | ||
| 78 | <nav class="tabs" aria-label="Sections"> | 74 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-svg.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-text.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-too-large.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/blob-trojan.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-big.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-binary.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-merge.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-modify-split.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-modify.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-rename.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-root.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commit-trojan.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commits-page2.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commits-path.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commits-root.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/commits-small.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/empty.html +0 -4
| @@ -51,10 +51,6 @@ | |||
| 51 | 51 | <span class="search-label">Go to…</span> | |
| 52 | 52 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 53 | 53 | </button> | |
| 54 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 55 | - | <span class="ico i-download" aria-hidden="true"> | |
| 56 | - | </span> | |
| 57 | - | </button> | |
| 58 | 54 | </div> | |
| 59 | 55 | </div> | |
| 60 | 56 | </header> | |
| @@ -51,10 +51,6 @@ | |||||
| 51 | <span class="search-label">Go to…</span> | 51 | <span class="search-label">Go to…</span> | ||
| 52 | <kbd aria-hidden="true">ctrl k</kbd> | 52 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 53 | </button> | 53 | </button> | ||
| 54 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 55 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 56 | - | </span> | |||
| 57 | - | </button> | |||
| 58 | </div> | 54 | </div> | ||
| 59 | </div> | 55 | </div> | ||
| 60 | </header> | 56 | </header> | ||
M internal/app/testdata/web/home.html +0 -4
| @@ -44,10 +44,6 @@ | |||
| 44 | 44 | <span class="search-label">Go to…</span> | |
| 45 | 45 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 46 | 46 | </button> | |
| 47 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 48 | - | <span class="ico i-download" aria-hidden="true"> | |
| 49 | - | </span> | |
| 50 | - | </button> | |
| 51 | 47 | </div> | |
| 52 | 48 | </div> | |
| 53 | 49 | </header> | |
| @@ -44,10 +44,6 @@ | |||||
| 44 | <span class="search-label">Go to…</span> | 44 | <span class="search-label">Go to…</span> | ||
| 45 | <kbd aria-hidden="true">ctrl k</kbd> | 45 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 46 | </button> | 46 | </button> | ||
| 47 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 48 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 49 | - | </span> | |||
| 50 | - | </button> | |||
| 51 | </div> | 47 | </div> | ||
| 52 | </div> | 48 | </div> | ||
| 53 | </header> | 49 | </header> | ||
M internal/app/testdata/web/not-found-page.html +0 -4
| @@ -51,10 +51,6 @@ | |||
| 51 | 51 | <span class="search-label">Go to…</span> | |
| 52 | 52 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 53 | 53 | </button> | |
| 54 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 55 | - | <span class="ico i-download" aria-hidden="true"> | |
| 56 | - | </span> | |
| 57 | - | </button> | |
| 58 | 54 | </div> | |
| 59 | 55 | </div> | |
| 60 | 56 | </header> | |
| @@ -51,10 +51,6 @@ | |||||
| 51 | <span class="search-label">Go to…</span> | 51 | <span class="search-label">Go to…</span> | ||
| 52 | <kbd aria-hidden="true">ctrl k</kbd> | 52 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 53 | </button> | 53 | </button> | ||
| 54 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 55 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 56 | - | </span> | |||
| 57 | - | </button> | |||
| 58 | </div> | 54 | </div> | ||
| 59 | </div> | 55 | </div> | ||
| 60 | </header> | 56 | </header> | ||
M internal/app/testdata/web/not-found.html +0 -4
| @@ -51,10 +51,6 @@ | |||
| 51 | 51 | <span class="search-label">Go to…</span> | |
| 52 | 52 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 53 | 53 | </button> | |
| 54 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 55 | - | <span class="ico i-download" aria-hidden="true"> | |
| 56 | - | </span> | |
| 57 | - | </button> | |
| 58 | 54 | </div> | |
| 59 | 55 | </div> | |
| 60 | 56 | </header> | |
| @@ -51,10 +51,6 @@ | |||||
| 51 | <span class="search-label">Go to…</span> | 51 | <span class="search-label">Go to…</span> | ||
| 52 | <kbd aria-hidden="true">ctrl k</kbd> | 52 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 53 | </button> | 53 | </button> | ||
| 54 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 55 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 56 | - | </span> | |||
| 57 | - | </button> | |||
| 58 | </div> | 54 | </div> | ||
| 59 | </div> | 55 | </div> | ||
| 60 | </header> | 56 | </header> | ||
M internal/app/testdata/web/refs.html +0 -4
| @@ -60,10 +60,6 @@ | |||
| 60 | 60 | <span class="search-label">Go to…</span> | |
| 61 | 61 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 62 | 62 | </button> | |
| 63 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 64 | - | <span class="ico i-download" aria-hidden="true"> | |
| 65 | - | </span> | |
| 66 | - | </button> | |
| 67 | 63 | </div> | |
| 68 | 64 | </div> | |
| 69 | 65 | <nav class="tabs" aria-label="Sections"> | |
| @@ -60,10 +60,6 @@ | |||||
| 60 | <span class="search-label">Go to…</span> | 60 | <span class="search-label">Go to…</span> | ||
| 61 | <kbd aria-hidden="true">ctrl k</kbd> | 61 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 62 | </button> | 62 | </button> | ||
| 63 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 64 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 65 | - | </span> | |||
| 66 | - | </button> | |||
| 67 | </div> | 63 | </div> | ||
| 68 | </div> | 64 | </div> | ||
| 69 | <nav class="tabs" aria-label="Sections"> | 65 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/summary.html +1 -9
| @@ -57,10 +57,6 @@ | |||
| 57 | 57 | <span class="search-label">Go to…</span> | |
| 58 | 58 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 59 | 59 | </button> | |
| 60 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 61 | - | <span class="ico i-download" aria-hidden="true"> | |
| 62 | - | </span> | |
| 63 | - | </button> | |
| 64 | 60 | </div> | |
| 65 | 61 | </div> | |
| 66 | 62 | <nav class="tabs" aria-label="Sections"> | |
| @@ -153,11 +149,7 @@ | |||
| 153 | 149 | </dd> | |
| 154 | 150 | <dt>latest tag</dt> | |
| 155 | 151 | <dd class="latest-tag"> | |
| 156 | - | <a class="tag-name" href="/demo/tree/v0.2.0" title="add main.go"> | |
| 157 | - | <span class="ico i-tag" aria-hidden="true"> | |
| 158 | - | </span>v0.2.0</a> | |
| 159 | - | <time class="dim" datetime="STAMP" title="STAMP">AGO</time> | |
| 160 | - | <a class="all-tags" href="/demo/refs">2 tags</a> | |
| 152 | + | <a class="tag-name" href="/demo/tree/v0.2.0" title="add main.go">v0.2.0</a> · <time datetime="STAMP" title="STAMP">AGO</time> · <a class="all-tags" href="/demo/refs">2 tags</a> | |
| 161 | 153 | </dd> | |
| 162 | 154 | </dl> | |
| 163 | 155 | </section> | |
| @@ -57,10 +57,6 @@ | |||||
| 57 | <span class="search-label">Go to…</span> | 57 | <span class="search-label">Go to…</span> | ||
| 58 | <kbd aria-hidden="true">ctrl k</kbd> | 58 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 59 | </button> | 59 | </button> | ||
| 60 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 61 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 62 | - | </span> | |||
| 63 | - | </button> | |||
| 64 | </div> | 60 | </div> | ||
| 65 | </div> | 61 | </div> | ||
| 66 | <nav class="tabs" aria-label="Sections"> | 62 | <nav class="tabs" aria-label="Sections"> | ||
| @@ -153,11 +149,7 @@ | |||||
| 153 | </dd> | 149 | </dd> | ||
| 154 | <dt>latest tag</dt> | 150 | <dt>latest tag</dt> | ||
| 155 | <dd class="latest-tag"> | 151 | <dd class="latest-tag"> | ||
| 156 | - | <a class="tag-name" href="/demo/tree/v0.2.0" title="add main.go"> | 152 | + | <a class="tag-name" href="/demo/tree/v0.2.0" title="add main.go">v0.2.0</a> · <time datetime="STAMP" title="STAMP">AGO</time> · <a class="all-tags" href="/demo/refs">2 tags</a> |
| 157 | - | <span class="ico i-tag" aria-hidden="true"> | |||
| 158 | - | </span>v0.2.0</a> | |||
| 159 | - | <time class="dim" datetime="STAMP" title="STAMP">AGO</time> | |||
| 160 | - | <a class="all-tags" href="/demo/refs">2 tags</a> | |||
| 161 | </dd> | 153 | </dd> | ||
| 162 | </dl> | 154 | </dl> | ||
| 163 | </section> | 155 | </section> | ||
M internal/app/testdata/web/tree-nested.html +0 -4
| @@ -69,10 +69,6 @@ | |||
| 69 | 69 | <span class="search-label">Go to…</span> | |
| 70 | 70 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 71 | 71 | </button> | |
| 72 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 73 | - | <span class="ico i-download" aria-hidden="true"> | |
| 74 | - | </span> | |
| 75 | - | </button> | |
| 76 | 72 | </div> | |
| 77 | 73 | </div> | |
| 78 | 74 | <nav class="tabs" aria-label="Sections"> | |
| @@ -69,10 +69,6 @@ | |||||
| 69 | <span class="search-label">Go to…</span> | 69 | <span class="search-label">Go to…</span> | ||
| 70 | <kbd aria-hidden="true">ctrl k</kbd> | 70 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 71 | </button> | 71 | </button> | ||
| 72 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 73 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 74 | - | </span> | |||
| 75 | - | </button> | |||
| 76 | </div> | 72 | </div> | ||
| 77 | </div> | 73 | </div> | ||
| 78 | <nav class="tabs" aria-label="Sections"> | 74 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/tree-root.html +0 -4
| @@ -63,10 +63,6 @@ | |||
| 63 | 63 | <span class="search-label">Go to…</span> | |
| 64 | 64 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 65 | 65 | </button> | |
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |
| 68 | - | </span> | |
| 69 | - | </button> | |
| 70 | 66 | </div> | |
| 71 | 67 | </div> | |
| 72 | 68 | <nav class="tabs" aria-label="Sections"> | |
| @@ -63,10 +63,6 @@ | |||||
| 63 | <span class="search-label">Go to…</span> | 63 | <span class="search-label">Go to…</span> | ||
| 64 | <kbd aria-hidden="true">ctrl k</kbd> | 64 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 65 | </button> | 65 | </button> | ||
| 66 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 67 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 68 | - | </span> | |||
| 69 | - | </button> | |||
| 70 | </div> | 66 | </div> | ||
| 71 | </div> | 67 | </div> | ||
| 72 | <nav class="tabs" aria-label="Sections"> | 68 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/tree-slash-ref.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/testdata/web/tree-subdir.html +0 -4
| @@ -66,10 +66,6 @@ | |||
| 66 | 66 | <span class="search-label">Go to…</span> | |
| 67 | 67 | <kbd aria-hidden="true">ctrl k</kbd> | |
| 68 | 68 | </button> | |
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |
| 71 | - | </span> | |
| 72 | - | </button> | |
| 73 | 69 | </div> | |
| 74 | 70 | </div> | |
| 75 | 71 | <nav class="tabs" aria-label="Sections"> | |
| @@ -66,10 +66,6 @@ | |||||
| 66 | <span class="search-label">Go to…</span> | 66 | <span class="search-label">Go to…</span> | ||
| 67 | <kbd aria-hidden="true">ctrl k</kbd> | 67 | <kbd aria-hidden="true">ctrl k</kbd> | ||
| 68 | </button> | 68 | </button> | ||
| 69 | - | <button type="button" class="btn icon" data-install hidden aria-label="Install app" title="install ermite as an app"> | |||
| 70 | - | <span class="ico i-download" aria-hidden="true"> | |||
| 71 | - | </span> | |||
| 72 | - | </button> | |||
| 73 | </div> | 69 | </div> | ||
| 74 | </div> | 70 | </div> | ||
| 75 | <nav class="tabs" aria-label="Sections"> | 71 | <nav class="tabs" aria-label="Sections"> | ||
M internal/app/web_mr_test.go +9 -3
| @@ -98,7 +98,7 @@ func TestWebMergeRequestPagesRender(t *testing.T) { | |||
| 98 | 98 | // Open one from the compare page. | |
| 99 | 99 | res := b.form("/proj/merge-requests", token, url.Values{ | |
| 100 | 100 | "source": {"feat/search"}, "target": {"main"}, "title": {"Add <b>search</b>"}, | |
| 101 | - | "description": {"Finds things.\r\nSee https://example.org/spec) and javascript:alert(1)"}, | |
| 101 | + | "description": {"## Summary\r\n\r\nFinds **things** with `Find()`.\r\n\r\n- See https://example.org/spec) and javascript:alert(1)\r\n- [x](javascript:alert(1)) <script>alert(1)</script>"}, | |
| 102 | 102 | }) | |
| 103 | 103 | require.Equal(t, http.StatusSeeOther, res.status, res.body) | |
| 104 | 104 | assert.Equal(t, "/proj/merge-requests/1", res.hdr.Get("Location")) | |
| @@ -137,9 +137,15 @@ func TestWebMergeRequestPagesRender(t *testing.T) { | |||
| 137 | 137 | assert.Contains(t, mr.body, "package search</td>") | |
| 138 | 138 | assert.Contains(t, mr.body, "no checks") | |
| 139 | 139 | assert.Contains(t, mr.body, "fast-forward, squash") | |
| 140 | - | assert.Contains(t, mr.body, `<a href="https://example.org/spec" rel="noopener nofollow ugc">https://example.org/spec</a>)`, "the address is linked, not its closing bracket") | |
| 140 | + | // The description is Markdown, rendered as a README: no raw HTML, no | |
| 141 | + | // script URL; its heading ids keep apart from the ids of the page. | |
| 142 | + | assert.Contains(t, mr.body, `<article class="mr-desc prose" aria-label="description" hx-ignore>`) | |
| 143 | + | assert.Contains(t, mr.body, `<h2 id="mr-desc-summary">Summary</h2>`) | |
| 144 | + | assert.Contains(t, mr.body, `<strong>things</strong>`) | |
| 145 | + | assert.Contains(t, mr.body, `<code>Find()</code>`) | |
| 146 | + | assert.Contains(t, mr.body, `<a href="https://example.org/spec"`, "a bare address is linked") | |
| 141 | 147 | assert.NotContains(t, mr.body, `href="javascript:`) | |
| 142 | - | assert.Contains(t, mr.body, "Finds things.\nSee ", "line breaks are kept") | |
| 148 | + | assert.NotContains(t, mr.body, `<script>alert(1)</script>`) | |
| 143 | 149 | assert.NotContains(t, mr.body, "<form", "an anonymous visitor gets no form") | |
| 144 | 150 | assert.NotContains(t, mr.body, "ermite mr merge", "nor the merge line") | |
| 145 | 151 | assert.NotContains(t, mr.body, `id="merge-menu"`) | |
| @@ -98,7 +98,7 @@ func TestWebMergeRequestPagesRender(t *testing.T) { | |||||
| 98 | // Open one from the compare page. | 98 | // Open one from the compare page. | ||
| 99 | res := b.form("/proj/merge-requests", token, url.Values{ | 99 | res := b.form("/proj/merge-requests", token, url.Values{ | ||
| 100 | "source": {"feat/search"}, "target": {"main"}, "title": {"Add <b>search</b>"}, | 100 | "source": {"feat/search"}, "target": {"main"}, "title": {"Add <b>search</b>"}, | ||
| 101 | - | "description": {"Finds things.\r\nSee https://example.org/spec) and javascript:alert(1)"}, | 101 | + | "description": {"## Summary\r\n\r\nFinds **things** with `Find()`.\r\n\r\n- See https://example.org/spec) and javascript:alert(1)\r\n- [x](javascript:alert(1)) <script>alert(1)</script>"}, |
| 102 | }) | 102 | }) | ||
| 103 | require.Equal(t, http.StatusSeeOther, res.status, res.body) | 103 | require.Equal(t, http.StatusSeeOther, res.status, res.body) | ||
| 104 | assert.Equal(t, "/proj/merge-requests/1", res.hdr.Get("Location")) | 104 | assert.Equal(t, "/proj/merge-requests/1", res.hdr.Get("Location")) | ||
| @@ -137,9 +137,15 @@ func TestWebMergeRequestPagesRender(t *testing.T) { | |||||
| 137 | assert.Contains(t, mr.body, "package search</td>") | 137 | assert.Contains(t, mr.body, "package search</td>") | ||
| 138 | assert.Contains(t, mr.body, "no checks") | 138 | assert.Contains(t, mr.body, "no checks") | ||
| 139 | assert.Contains(t, mr.body, "fast-forward, squash") | 139 | assert.Contains(t, mr.body, "fast-forward, squash") | ||
| 140 | - | assert.Contains(t, mr.body, `<a href="https://example.org/spec" rel="noopener nofollow ugc">https://example.org/spec</a>)`, "the address is linked, not its closing bracket") | 140 | + | // The description is Markdown, rendered as a README: no raw HTML, no |
| 141 | + | // script URL; its heading ids keep apart from the ids of the page. | |||
| 142 | + | assert.Contains(t, mr.body, `<article class="mr-desc prose" aria-label="description" hx-ignore>`) | |||
| 143 | + | assert.Contains(t, mr.body, `<h2 id="mr-desc-summary">Summary</h2>`) | |||
| 144 | + | assert.Contains(t, mr.body, `<strong>things</strong>`) | |||
| 145 | + | assert.Contains(t, mr.body, `<code>Find()</code>`) | |||
| 146 | + | assert.Contains(t, mr.body, `<a href="https://example.org/spec"`, "a bare address is linked") | |||
| 141 | assert.NotContains(t, mr.body, `href="javascript:`) | 147 | assert.NotContains(t, mr.body, `href="javascript:`) | ||
| 142 | - | assert.Contains(t, mr.body, "Finds things.\nSee ", "line breaks are kept") | 148 | + | assert.NotContains(t, mr.body, `<script>alert(1)</script>`) |
| 143 | assert.NotContains(t, mr.body, "<form", "an anonymous visitor gets no form") | 149 | assert.NotContains(t, mr.body, "<form", "an anonymous visitor gets no form") | ||
| 144 | assert.NotContains(t, mr.body, "ermite mr merge", "nor the merge line") | 150 | assert.NotContains(t, mr.body, "ermite mr merge", "nor the merge line") | ||
| 145 | assert.NotContains(t, mr.body, `id="merge-menu"`) | 151 | assert.NotContains(t, mr.body, `id="merge-menu"`) | ||