Skip to content

Commit 8f5d347

Browse files
committed
whitespace fix
1 parent 2c13717 commit 8f5d347

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

js/ros2-design.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ $( document ).ready(function() {
3030
if (gh_token) {
3131
// Change login to logout
3232
$( 'a.login-btn' ).replaceWith([
33-
'<button class="login-btn btn btn-default navbar-btn">',
34-
'<span class="glyphicon glyphicon-user"></span> &nbsp;Logout',
35-
'</button>'].join('\n'));
33+
'<button class="login-btn btn btn-default navbar-btn">',
34+
'<span class="glyphicon glyphicon-user"></span> &nbsp;Logout',
35+
'</button>'].join('\n'));
3636
$( 'button.login-btn' ).click(function() {
3737
// When logout is clicked, unset github_oauth_token and refresh
3838
localStorage.removeItem('github_oauth_token');
@@ -61,14 +61,14 @@ $( document ).ready(function() {
6161
if (err) {
6262
// Show it
6363
$( 'div.sidebar-container' ).append([
64-
'<div class="panel panel-danger">',
65-
' <div class="panel-heading">',
66-
' <h3 class="panel-title">Error</h3>',
67-
' </div>',
68-
' <div class="panel-body">',
69-
' Error retrieving Github Info: ' + err,
70-
' </div>',
71-
'</div>'].join('\n'));
64+
'<div class="panel panel-danger">',
65+
' <div class="panel-heading">',
66+
' <h3 class="panel-title">Error</h3>',
67+
' </div>',
68+
' <div class="panel-body">',
69+
' Error retrieving Github Info: ' + err,
70+
' </div>',
71+
'</div>'].join('\n'));
7272
} else {
7373
// Store user info for given gh_token
7474
sessionStorage.setItem('user_' + gh_token, JSON.stringify(res));
@@ -103,24 +103,24 @@ $( document ).ready(function() {
103103
'<a>Open <span class="badge">' + total_open_pr + '</span></a>');
104104
// Append a li with a link and title of the pull request
105105
$( 'div.open-pr-list' ).append(
106-
'<a href="' + pr['html_url'] +
107-
'" class="list-group-item">' +
108-
'<strong>#' + pr['number'] + '</strong> ' +
109-
pr['title'] + '</a>');
106+
'<a href="' + pr['html_url'] +
107+
'" class="list-group-item">' +
108+
'<strong>#' + pr['number'] + '</strong> ' +
109+
pr['title'] + '</a>');
110110
}
111111
// Else if closed
112112
else if (pr['state'] == 'closed') {
113113
// Increment total open pr
114114
total_closed_pr = total_closed_pr + 1;
115115
// Update the closed number badge
116116
$( 'li.closed-pr' ).html(
117-
'<a>Closed <span class="badge">' + total_closed_pr + '</span></a>');
117+
'<a>Closed <span class="badge">' + total_closed_pr + '</span></a>');
118118
// Append a li with a link and title of the pull request
119119
$( 'div.closed-pr-list' ).append(
120-
'<a href="' + pr['html_url'] +
121-
'" class="list-group-item">' +
122-
'<strong>#' + pr['number'] + '</strong> ' +
123-
pr['title'] + '</a>');
120+
'<a href="' + pr['html_url'] +
121+
'" class="list-group-item">' +
122+
'<strong>#' + pr['number'] + '</strong> ' +
123+
pr['title'] + '</a>');
124124
}
125125
// Else wtf
126126
else {

0 commit comments

Comments
 (0)