Change the clone URL dropdown to just static text

adb42db5c07212b4831239d24106cfa30de7b039

Tucker McKnight <tmcknight@instructure.com> | Sat Sep 05 2026

Change the clone URL dropdown to just static text

It had broken somehow anyway
js_templates/index.ts:35
Before
34
35
36
37
38
39
40
41
42
43
44
45
46
47








48
49
                  href: nav.repoHomePath(repo.name),
                  class: "ms-0 me-2 my-2 btn btn-primary text-white"
                }, 'Go to site'),
                m('button', {
                  class: "mx-1 my-2 btn btn-outline-secondary shadow-none dropdown-toggle clone-popover-btn",
                  'data-copy-text': repo.cloneUrl
                }, 'Clone'),
                (data.reposConfig.repos[repo.name].defaultTemplate.homepageButtons).map((button) => {
                  return m('a', {
                    class: "mx-1 my-2 btn btn-outline-secondary shadow-none",
                    href: button.url,
                    target: button.newTab ? '_blank' : '_self'
                  }, [button.text, button.newTab ? [' ', m('span', m.trust('&#x29C9;'))] : null])
                })
⁣
⁣
⁣
⁣
⁣
⁣
⁣
⁣
              ])
            )
          )
After
34
35
36




37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
                  href: nav.repoHomePath(repo.name),
                  class: "ms-0 me-2 my-2 btn btn-primary text-white"
                }, 'Go to site'),
⁣
⁣
⁣
⁣
                (data.reposConfig.repos[repo.name].defaultTemplate.homepageButtons).map((button) => {
                  return m('a', {
                    class: "mx-1 my-2 btn btn-outline-secondary shadow-none",
                    href: button.url,
                    target: button.newTab ? '_blank' : '_self'
                  }, [button.text, button.newTab ? [' ', m('span', m.trust('&#x29C9;'))] : null])
                }),
                m('span', { class: 'd-inline-block mx-1' }, [
                  m('span', {class: 'me-1'}, 'Clone URL:'),
                  m('span', {class: 'clone overflow-scroll font-monospace'}, repo.cloneUrl),
                  m('button', {
                    class: 'btn btn-info shadow-none copy-button ms-1',
                    ['data-copy-text']: repo.cloneUrl,
                  }, 'Copy' )
                ])
              ])
            )
          )