Skip to content

Commit 89f6b57

Browse files
authored
Fix additional formatting details
1 parent 381cf40 commit 89f6b57

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

_static/link_gen/link.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function generateRegularUrl(hubUrl, urlPath, repoUrl, branch, compressed, source
66

77
url.searchParams.set('repo', repoUrl);
88
if(compressed) {
9-
url.searchParams.set('content_provider', source);
9+
url.searchParams.set('content_provider', source);
1010
}
1111
if (urlPath) {
1212
url.searchParams.set('urlpath', urlPath);
@@ -17,6 +17,7 @@ function generateRegularUrl(hubUrl, urlPath, repoUrl, branch, compressed, source
1717
} else if(source == "git"){
1818
url.searchParams.set('branch', "main");
1919
}
20+
2021
if (!url.pathname.endsWith('/')) {
2122
url.pathname += '/'
2223
}
@@ -118,7 +119,6 @@ function clearLinks(){
118119
document.getElementById('canvas-link').value = "";
119120
}
120121

121-
122122
function changeTab(div) {
123123
var hub = document.getElementById("hub");
124124
var hub_help_text = document.getElementById("hub-help-text");
@@ -319,7 +319,6 @@ function render() {
319319
document.getElementById('filepath').disabled = false;
320320
}
321321
}
322-
323322
displayLink();
324323
}
325324

@@ -338,8 +337,7 @@ function main() {
338337
element.addEventListener('change', function(){
339338
displaySource();
340339
render();
341-
}
342-
);
340+
});
343341
}
344342
)
345343
document.querySelectorAll('#linkgenerator input[type="text"], #linkgenerator input[type="url"]').forEach(

link.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ <h1>nbgitpuller link generator<a class="headerlink" href="#nbgitpuller-link-gene
229229
<div class="invalid-feedback">
230230
Must be a valid git URL
231231
</div>
232-
<small class="form-text text-muted" id="env-repo-help-text" >
232+
<small class="form-text text-muted" id="env-repo-help-text">
233233
The environment repository must have
234234
<a href="https://github.com/jupyterhub/nbgitpuller">nbgitpuller</a> installed.
235235
</small>
@@ -294,15 +294,14 @@ <h1>nbgitpuller link generator<a class="headerlink" href="#nbgitpuller-link-gene
294294
</div>
295295
</div>
296296
<div class="col-sm-4">
297-
<div class="input-group" id="content-branch-group" >
297+
<div class="input-group" id="content-branch-group">
298298
<div class="input-group-prepend">
299299
<span class="input-group-text" id="content-branch-prepend-label">branch</span>
300300
</div>
301301
<input name="content-branch" id="content-branch" type="text" placeholder="main" aria-label="Branch Name" aria-describedby="content-branch-prepend-label">
302302
<small id="default-content-message" class="form-text text-muted">
303303
If left blank, the default branch of your repository is used. Also note, Github now names the default branch <code>main</code> instead of <code>master</code> on
304-
<a href="https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/">
305-
new GitHub repositories</a>
304+
<a href="https://github.blog/changelog/2020-10-01-the-default-branch-for-newly-created-repositories-is-now-main/">new GitHub repositories</a>
306305
</small>
307306
</div>
308307
</div>
@@ -348,6 +347,7 @@ <h1>nbgitpuller link generator<a class="headerlink" href="#nbgitpuller-link-gene
348347
</small>
349348
</div>
350349
</div>
350+
351351
<div class="form-group row" id="app-container">
352352
<div class="col-sm-2 col-form-label">
353353
<label for="app" class=>Application to Open</label>

0 commit comments

Comments
 (0)