diff --git a/src/main/twirl/gitbucket/core/account/newrepo.scala.html b/src/main/twirl/gitbucket/core/account/newrepo.scala.html
index c2dec33..9233e0a 100644
--- a/src/main/twirl/gitbucket/core/account/newrepo.scala.html
+++ b/src/main/twirl/gitbucket/core/account/newrepo.scala.html
@@ -21,7 +21,7 @@
@@ -77,8 +77,8 @@
var userName = $(this).data('name');
$('#owner').val(userName);
- $('#owner-dropdown i').attr('class', 'icon-white');
- $(this).find('i').attr('class', 'icon-ok');
+ $('#owner-dropdown i').attr('class', 'octicon');
+ $(this).find('i').attr('class', 'octicon octicon-check');
$('#owner-dropdown span.strong').html($(this).find('span').html());
});
diff --git a/src/main/twirl/gitbucket/core/helper/checkicon.scala.html b/src/main/twirl/gitbucket/core/helper/checkicon.scala.html
index 308ee41..c29c6df 100644
--- a/src/main/twirl/gitbucket/core/helper/checkicon.scala.html
+++ b/src/main/twirl/gitbucket/core/helper/checkicon.scala.html
@@ -2,5 +2,5 @@
@if(condition){
} else {
-
+
}
\ No newline at end of file
diff --git a/src/main/twirl/gitbucket/core/issues/issueinfo.scala.html b/src/main/twirl/gitbucket/core/issues/issueinfo.scala.html
index d2c90ef..b53f6e9 100644
--- a/src/main/twirl/gitbucket/core/issues/issueinfo.scala.html
+++ b/src/main/twirl/gitbucket/core/issues/issueinfo.scala.html
@@ -93,7 +93,7 @@
@collaborators.map { collaborator =>
- @helper.html.checkicon(issue.exists(_.assignedUserName == collaborator))@avatar(collaborator, 20) @collaborator
+ @helper.html.checkicon(issue.exists(_.assignedUserName.exists(_ == collaborator)))@avatar(collaborator, 20) @collaborator
}
@@ -164,7 +164,7 @@
switchLabel($(this));
var labelNames = Array();
$('a.toggle-label').each(function(i, e){
- if($(e).children('i').hasClass('icon-ok') == true){
+ if($(e).children('i').hasClass('octicon-check') == true){
labelNames.push($(e).text().trim());
}
});
@@ -195,17 +195,17 @@
function switchLabel($this){
var i = $this.children('i');
- if(i.hasClass('icon-ok')){
- i.removeClass().addClass('icon-white');
+ if(i.hasClass('octicon-check')){
+ i.removeClass('octicon-check');
return 'delete';
} else {
- i.removeClass().addClass('icon-ok');
+ i.addClass('octicon-check');
return 'new';
}
}
function displayMilestone(title, milestoneId, progress){
- $('a.milestone i.icon-ok').attr('class', 'icon-white');
+ $('a.milestone i.octicon-check').removeClass('octicon-check');
if(milestoneId == ''){
$('#label-milestone').html($('').text('No milestone'));
$('#milestone-progress-area').empty();
@@ -214,19 +214,19 @@
if(progress){
$('#milestone-progress-area').html(progress);
}
- $('a.milestone[data-id=' + milestoneId + '] i').attr('class', 'icon-ok');
+ $('a.milestone[data-id=' + milestoneId + '] i').addClass('octicon-check');
}
}
function displayAssignee($this, userName){
- $('a.assign i.icon-ok').attr('class', 'icon-white');
+ $('a.assign i.octicon-check').removeClass('octicon-check');
if(userName == ''){
$('#label-assigned').html($('').text('No one'));
} else {
$('#label-assigned').empty()
.append($this.find('img.avatar-mini').clone(false)).append(' ')
.append($('').attr('href', '@context.path/' + userName).text(userName));
- $('a.assign[data-name=' + jqSelectorEscape(userName) + '] i').attr('class', 'icon-ok');
+ $('a.assign[data-name=' + jqSelectorEscape(userName) + '] i').addClass('octicon-check');
}
}
});
diff --git a/src/main/twirl/gitbucket/core/issues/listparts.scala.html b/src/main/twirl/gitbucket/core/issues/listparts.scala.html
index d27d3ae..d1af594 100644
--- a/src/main/twirl/gitbucket/core/issues/listparts.scala.html
+++ b/src/main/twirl/gitbucket/core/issues/listparts.scala.html
@@ -124,7 +124,7 @@
@labels.map { label =>
-
+
@label.labelName
@@ -140,7 +140,7 @@
@helper.html.dropdown("Assignee", flat = true) {
Clear assignee
@collaborators.map { collaborator =>
- @avatar(collaborator, 20) @collaborator
+ @avatar(collaborator, 20) @collaborator
}
}
diff --git a/src/main/twirl/gitbucket/core/pulls/compare.scala.html b/src/main/twirl/gitbucket/core/pulls/compare.scala.html
index 3f4aeee..70dcfca 100644
--- a/src/main/twirl/gitbucket/core/pulls/compare.scala.html
+++ b/src/main/twirl/gitbucket/core/pulls/compare.scala.html
@@ -174,8 +174,8 @@
$(function(){
$('a.origin-owner, a.forked-owner, a.origin-branch, a.forked-branch').click(function(){
var e = $(this);
- e.parents('ul').find('i').attr('class', 'icon-white');
- e.find('i').attr('class', 'octicon-check');
+ e.parents('ul').find('i').attr('class', 'octicon');
+ e.find('i').addClass('octicon-check');
e.parents('div.btn-group').find('button span.strong').text(e.text());
@if(members.isEmpty){