Commit e82837ee authored by Phil Hughes's avatar Phil Hughes

Fixed conflicts

parent dff64d76
...@@ -12,10 +12,7 @@ ...@@ -12,10 +12,7 @@
/*= require jquery.atwho */ /*= require jquery.atwho */
/*= require jquery.scrollTo */ /*= require jquery.scrollTo */
/*= require jquery.turbolinks */ /*= require jquery.turbolinks */
<<<<<<< HEAD
/*= require jquery.tablesorter */ /*= require jquery.tablesorter */
=======
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
/*= require turbolinks */ /*= require turbolinks */
/*= require autosave */ /*= require autosave */
/*= require bootstrap/affix */ /*= require bootstrap/affix */
...@@ -132,11 +129,8 @@ ...@@ -132,11 +129,8 @@
window.addEventListener("hashchange", shiftWindow); window.addEventListener("hashchange", shiftWindow);
<<<<<<< HEAD
$.timeago.settings.allowFuture = true; $.timeago.settings.allowFuture = true;
=======
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
window.onload = function() { window.onload = function() {
if (location.hash) { if (location.hash) {
return setTimeout(shiftWindow, 100); return setTimeout(shiftWindow, 100);
...@@ -238,7 +232,6 @@ ...@@ -238,7 +232,6 @@
}); });
$document.off("click", '.js-confirm-danger'); $document.off("click", '.js-confirm-danger');
$document.on("click", '.js-confirm-danger', function(e) { $document.on("click", '.js-confirm-danger', function(e) {
<<<<<<< HEAD
var btn, form, text, warningMessage; var btn, form, text, warningMessage;
e.preventDefault(); e.preventDefault();
btn = $(e.target); btn = $(e.target);
...@@ -248,14 +241,6 @@ ...@@ -248,14 +241,6 @@
return new ConfirmDangerModal(form, text, { return new ConfirmDangerModal(form, text, {
warningMessage: warningMessage warningMessage: warningMessage
}); });
=======
var btn, form, text;
e.preventDefault();
btn = $(e.target);
text = btn.data("confirm-danger-message");
form = btn.closest("form");
return new ConfirmDangerModal(form, text);
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
}); });
$document.on('click', 'button', function() { $document.on('click', 'button', function() {
return $(this).blur(); return $(this).blur();
......
(function() { (function() {
this.ConfirmDangerModal = (function() { this.ConfirmDangerModal = (function() {
<<<<<<< HEAD
function ConfirmDangerModal(form, text, arg) { function ConfirmDangerModal(form, text, arg) {
var project_path, submit, warningMessage; var project_path, submit, warningMessage;
warningMessage = (arg != null ? arg : {}).warningMessage; warningMessage = (arg != null ? arg : {}).warningMessage;
...@@ -9,12 +8,6 @@ ...@@ -9,12 +8,6 @@
if (warningMessage) { if (warningMessage) {
$('.js-warning-text').html(warningMessage); $('.js-warning-text').html(warningMessage);
} }
=======
function ConfirmDangerModal(form, text) {
var project_path, submit;
this.form = form;
$('.js-confirm-text').text(text || '');
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
$('.js-confirm-danger-input').val(''); $('.js-confirm-danger-input').val('');
$('#modal-confirm-danger').modal('show'); $('#modal-confirm-danger').modal('show');
project_path = $('.js-confirm-danger-match').text(); project_path = $('.js-confirm-danger-match').text();
......
...@@ -171,7 +171,6 @@ ...@@ -171,7 +171,6 @@
break; break;
case 'search:show': case 'search:show':
new Search(); new Search();
<<<<<<< HEAD
break; break;
case 'projects:mirrors:show': case 'projects:mirrors:show':
case 'projects:mirrors:update': case 'projects:mirrors:update':
...@@ -179,8 +178,6 @@ ...@@ -179,8 +178,6 @@
break; break;
case 'admin:emails:show': case 'admin:emails:show':
new AdminEmailSelect(); new AdminEmailSelect();
=======
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
} }
switch (path.first()) { switch (path.first()) {
case 'admin': case 'admin':
......
...@@ -5,20 +5,14 @@ ...@@ -5,20 +5,14 @@
function GroupsSelect() { function GroupsSelect() {
$('.ajax-groups-select').each((function(_this) { $('.ajax-groups-select').each((function(_this) {
return function(i, select) { return function(i, select) {
<<<<<<< HEAD
var skip_group, url; var skip_group, url;
skip_group = $(select).data("skip-group"); skip_group = $(select).data("skip-group");
url = $(select).data("url"); url = $(select).data("url");
=======
var skip_ldap;
skip_ldap = $(select).hasClass('skip_ldap');
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
return $(select).select2({ return $(select).select2({
placeholder: "Search for a group", placeholder: "Search for a group",
multiple: $(select).hasClass('multiselect'), multiple: $(select).hasClass('multiselect'),
minimumInputLength: 0, minimumInputLength: 0,
query: function(query) { query: function(query) {
<<<<<<< HEAD
return $.ajax({ return $.ajax({
url: url, url: url,
data: { data: {
...@@ -38,13 +32,6 @@ ...@@ -38,13 +32,6 @@
} }
data.results.push(group); data.results.push(group);
} }
=======
return Api.groups(query.term, skip_ldap, function(groups) {
var data;
data = {
results: groups
};
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
return query.callback(data); return query.callback(data);
}); });
}, },
......
...@@ -35,12 +35,9 @@ ...@@ -35,12 +35,9 @@
} }
}); });
}; };
<<<<<<< HEAD
gl.utils.capitalize = function(str) { gl.utils.capitalize = function(str) {
return str[0].toUpperCase() + str.slice(1); return str[0].toUpperCase() + str.slice(1);
}; };
=======
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
gl.utils.getPagePath = function() { gl.utils.getPagePath = function() {
return $('body').data('page').split(':')[0]; return $('body').data('page').split(':')[0];
}; };
......
...@@ -61,7 +61,6 @@ ...@@ -61,7 +61,6 @@
callback = function() { callback = function() {
return merge_request_widget.mergeInProgress(deleteSourceBranch); return merge_request_widget.mergeInProgress(deleteSourceBranch);
}; };
<<<<<<< HEAD
return setTimeout(callback, 1000); return setTimeout(callback, 1000);
} }
}; };
...@@ -80,9 +79,6 @@ ...@@ -80,9 +79,6 @@
return setTimeout(merge_request_widget.rebaseInProgress, 1000); return setTimeout(merge_request_widget.rebaseInProgress, 1000);
} else { } else {
return location.reload(); return location.reload();
=======
return setTimeout(callback, 2000);
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
} }
}; };
})(this), })(this),
......
...@@ -181,11 +181,7 @@ ...@@ -181,11 +181,7 @@
_this.last_fetched_at = data.last_fetched_at; _this.last_fetched_at = data.last_fetched_at;
_this.setPollingInterval(data.notes.length); _this.setPollingInterval(data.notes.length);
return $.each(notes, function(i, note) { return $.each(notes, function(i, note) {
<<<<<<< HEAD
if (note.discussion_with_diff_html != null) { if (note.discussion_with_diff_html != null) {
=======
if (note.discussion_html != null) {
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
return _this.renderDiscussionNote(note); return _this.renderDiscussionNote(note);
} else { } else {
return _this.renderNote(note); return _this.renderNote(note);
...@@ -291,20 +287,12 @@ ...@@ -291,20 +287,12 @@
discussionContainer = $(".notes[data-discussion-id='" + note.original_discussion_id + "']"); discussionContainer = $(".notes[data-discussion-id='" + note.original_discussion_id + "']");
} }
if (discussionContainer.length === 0) { if (discussionContainer.length === 0) {
<<<<<<< HEAD
row.after(note.discussion_html); row.after(note.discussion_html);
=======
row.after(note.diff_discussion_html);
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
row.next().find(".note").remove(); row.next().find(".note").remove();
discussionContainer = $(".notes[data-discussion-id='" + note.discussion_id + "']"); discussionContainer = $(".notes[data-discussion-id='" + note.discussion_id + "']");
discussionContainer.append(note_html); discussionContainer.append(note_html);
if ($('body').attr('data-page').indexOf('projects:merge_request') === 0) { if ($('body').attr('data-page').indexOf('projects:merge_request') === 0) {
<<<<<<< HEAD
$('ul.main-notes-list').append(note.discussion_with_diff_html).syntaxHighlight(); $('ul.main-notes-list').append(note.discussion_with_diff_html).syntaxHighlight();
=======
$('ul.main-notes-list').append(note.discussion_html).syntaxHighlight();
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
} }
} else { } else {
discussionContainer.append(note_html); discussionContainer.append(note_html);
......
...@@ -16,20 +16,12 @@ ...@@ -16,20 +16,12 @@
ProjectNew.prototype.toggleSettings = function() { ProjectNew.prototype.toggleSettings = function() {
this._showOrHide('#project_builds_enabled', '.builds-feature'); this._showOrHide('#project_builds_enabled', '.builds-feature');
<<<<<<< HEAD
this._showOrHide('#project_merge_requests_enabled', '.merge-requests-feature'); this._showOrHide('#project_merge_requests_enabled', '.merge-requests-feature');
return this._showOrHide('#project_issues_enabled', '.issues-feature'); return this._showOrHide('#project_issues_enabled', '.issues-feature');
}; };
ProjectNew.prototype.toggleSettingsOnclick = function() { ProjectNew.prototype.toggleSettingsOnclick = function() {
return $('#project_builds_enabled, #project_merge_requests_enabled, #project_issues_enabled').on('click', this.toggleSettings); return $('#project_builds_enabled, #project_merge_requests_enabled, #project_issues_enabled').on('click', this.toggleSettings);
=======
return this._showOrHide('#project_merge_requests_enabled', '.merge-requests-feature');
};
ProjectNew.prototype.toggleSettingsOnclick = function() {
return $('#project_builds_enabled, #project_merge_requests_enabled').on('click', this.toggleSettings);
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
}; };
ProjectNew.prototype._showOrHide = function(checkElement, container) { ProjectNew.prototype._showOrHide = function(checkElement, container) {
......
...@@ -185,7 +185,6 @@ ...@@ -185,7 +185,6 @@
$('.ajax-users-select').each((function(_this) { $('.ajax-users-select').each((function(_this) {
return function(i, select) { return function(i, select) {
var firstUser, showAnyUser, showEmailUser, showNullUser; var firstUser, showAnyUser, showEmailUser, showNullUser;
<<<<<<< HEAD
_this.skipLdap = $(select).hasClass('skip_ldap'); _this.skipLdap = $(select).hasClass('skip_ldap');
_this.projectId = $(select).data('project-id'); _this.projectId = $(select).data('project-id');
_this.groupId = $(select).data('group-id'); _this.groupId = $(select).data('group-id');
...@@ -193,12 +192,6 @@ ...@@ -193,12 +192,6 @@
_this.pushCodeToProtectedBranches = $(select).data('push-code-to-protected-branches'); _this.pushCodeToProtectedBranches = $(select).data('push-code-to-protected-branches');
_this.authorId = $(select).data('author-id'); _this.authorId = $(select).data('author-id');
_this.skipUsers = $(select).data('skip-users'); _this.skipUsers = $(select).data('skip-users');
=======
_this.projectId = $(select).data('project-id');
_this.groupId = $(select).data('group-id');
_this.showCurrentUser = $(select).data('current-user');
_this.authorId = $(select).data('author-id');
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
showNullUser = $(select).data('null-user'); showNullUser = $(select).data('null-user');
showAnyUser = $(select).data('any-user'); showAnyUser = $(select).data('any-user');
showEmailUser = $(select).data('email-user'); showEmailUser = $(select).data('email-user');
...@@ -329,16 +322,11 @@ ...@@ -329,16 +322,11 @@
active: true, active: true,
project_id: this.projectId, project_id: this.projectId,
group_id: this.groupId, group_id: this.groupId,
<<<<<<< HEAD
skip_ldap: this.skipLdap, skip_ldap: this.skipLdap,
current_user: this.showCurrentUser, current_user: this.showCurrentUser,
push_code_to_protected_branches: this.pushCodeToProtectedBranches, push_code_to_protected_branches: this.pushCodeToProtectedBranches,
author_id: this.authorId, author_id: this.authorId,
skip_users: this.skipUsers skip_users: this.skipUsers
=======
current_user: this.showCurrentUser,
author_id: this.authorId
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a
}, },
dataType: "json" dataType: "json"
}).done(function(users) { }).done(function(users) {
......
...@@ -27,14 +27,9 @@ ...@@ -27,14 +27,9 @@
= sort_title_recently_updated = sort_title_recently_updated
= link_to filter_branches_path(sort: 'last_updated') do = link_to filter_branches_path(sort: 'last_updated') do
= sort_title_oldest_updated = sort_title_oldest_updated
<<<<<<< HEAD
= render 'projects/commits/mirror_status'
=======
= link_to new_namespace_project_branch_path(@project.namespace, @project), class: 'btn btn-create' do = link_to new_namespace_project_branch_path(@project.namespace, @project), class: 'btn btn-create' do
New branch New branch
>>>>>>> 68162ba900f1b9003fa3d07613333f201be8154a = render 'projects/commits/mirror_status'
- if @branches.any? - if @branches.any?
%ul.content-list.all-branches %ul.content-list.all-branches
- @branches.each do |branch| - @branches.each do |branch|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment