Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
c18e277
Fix avatar URLs in JS-lists for relative_url_root
olafmandel May 20, 2014
ac46130
Allow set group avatar when create group. Not only edit page
dzaporozhets May 20, 2014
b08fe47
Update message on the group dashboard page
alankehoe May 20, 2014
d1980ad
typos fixed
May 22, 2014
f514778
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into grammar_…
May 22, 2014
66dfe37
Merge branch 'grammar_fixes' into 'master'
dosire May 22, 2014
b019c06
Required shell version is now 1.9.4.
maxlazio May 22, 2014
dc7158a
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
maxlazio May 22, 2014
38d0e00
Version to 6.9.0
maxlazio May 22, 2014
1ad174f
Improve edit page UI/UX
dzaporozhets May 22, 2014
3296fb9
Add missing lines in update guide.
maxlazio May 22, 2014
74079fe
Fix scroll to highlighted line. Replace scrollTO js file with gem
dzaporozhets May 22, 2014
babfc06
Lets start 7.0 development
dzaporozhets May 22, 2014
de8c43f
Merge branch 'new-group-avatar' into 'master'
dzaporozhets May 22, 2014
05bff8b
Merge branch 'improved-edit-file-ui' into 'master'
dzaporozhets May 22, 2014
8bf7b62
First entries for 7.0 CHANGELOG
dzaporozhets May 22, 2014
94f8e80
Merge pull request #7005 from alankehoe/master
dzaporozhets May 22, 2014
9f2183f
Merge pull request #7002 from olafmandel/user_avatar_in_relative_root
dzaporozhets May 22, 2014
b192aa5
Fix tests
dzaporozhets May 22, 2014
ebe2a34
Add missing feature flag to mr notes spec
dzaporozhets May 22, 2014
eee14a0
Merge branch 'fix-scroll-to' into 'master'
dzaporozhets May 22, 2014
9e6466c
Merge branch 'api-remove-branch' into 'master'
dzaporozhets May 23, 2014
696b990
Fix spinach tests
dzaporozhets May 23, 2014
c417e25
Implements drag and drop upload in creating issues
May 14, 2014
50ec7c1
Reformats alternative.
May 15, 2014
69de530
Generalizes markdown area.
May 15, 2014
451101c
upload files using native uploader
May 19, 2014
58411e1
Removes preview when uploading.
May 19, 2014
82d77fe
Readds favicon.ico
May 19, 2014
2705df0
Implements clipboard feature.
May 19, 2014
46405f1
work in progress.
May 20, 2014
6440f15
fix for focusing textarea
erbunao May 20, 2014
6ef5587
clean version for clipboard.
May 20, 2014
1202211
Removes clipboard feature huhu.
May 20, 2014
6668ce9
Initializes markdown_area in notes.
May 20, 2014
81ec392
Reposition of error message
erbunao May 20, 2014
03336b1
Fix syntax error.
May 20, 2014
3e6baa5
Transfers upload_image to project level.
May 20, 2014
cdc360a
Comments section buttons
erbunao May 20, 2014
d755215
fix notes ui.
May 21, 2014
2fe1a05
Reorganizes the branch according to updated master.
May 22, 2014
1ac553f
Readds env.rb.
May 22, 2014
629905d
Syncing with master.
May 22, 2014
13028b6
For hound ci.
May 22, 2014
22707c4
refactors markdown_area and translate it to coffescript
erbunao May 21, 2014
4131f50
Refactor for removing preview
erbunao May 21, 2014
5be253c
Refactor css for preview
erbunao May 21, 2014
78764fa
WIP preview for comments
erbunao May 21, 2014
3da0c90
Reposition of preview button in comment area and refactor css
erbunao May 22, 2014
d19d346
Minor fix for comments and additional option in js
erbunao May 22, 2014
7d93d49
Starts testing the project controller.
May 22, 2014
10c5caa
WIP
May 23, 2014
0422e94
merge request integration of drag and drop
erbunao May 23, 2014
aeaf7d7
Milestone integration
erbunao May 23, 2014
46fefee
Wiki integration
erbunao May 23, 2014
614a2b7
Fix for error msg
erbunao May 23, 2014
e77a080
Edits test.
May 23, 2014
1f492fc
Clean spec.
May 23, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v 7.0.0
- The CPU no longer overheats when you hold down the spacebar
- Improve edit file UI
- Add ability to upload group avatar when create

v 6.9.0
- Store Rails cache data in the Redis `cache:gitlab` namespace
- Adjust MySQL limits for existing installations
Expand All @@ -18,6 +23,7 @@ v 6.9.0
- Accept merge request via API (sponsored by O'Reilly Media)
- Add more access checks during API calls
- Block SSH access for 'disabled' Active Directory users
- Labels for merge requests (Drew Blessing)

v 6.8.0
- Ability to at mention users that are participating in issue and merge req. discussion
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ gem "haml-rails"
# Files attachments
gem "carrierwave"

# Drag and Drop UI
gem 'dropzonejs-rails'

# for aws storage
gem "fog", "~> 1.14", group: :aws
gem "unf", group: :aws
Expand Down Expand Up @@ -163,6 +166,7 @@ gem 'select2-rails'
gem 'jquery-atwho-rails', "~> 0.3.3"
gem "jquery-rails"
gem "jquery-ui-rails"
gem "jquery-scrollto-rails"
gem "raphael-rails", "~> 2.1.2"
gem 'bootstrap-sass', '~> 3.0'
gem "font-awesome-rails", '~> 3.2'
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ GEM
diffy (3.0.3)
docile (1.1.1)
dotenv (0.9.0)
dropzonejs-rails (0.4.14)
rails (> 3.1)
email_spec (1.5.0)
launchy (~> 2.1)
mail (~> 2.2)
Expand Down Expand Up @@ -250,6 +252,8 @@ GEM
jquery-rails (3.1.0)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-scrollto-rails (1.4.3)
railties (> 3.1, < 5.0)
jquery-turbolinks (2.0.1)
railties (>= 3.1.0)
turbolinks
Expand Down Expand Up @@ -577,6 +581,7 @@ DEPENDENCIES
devise (= 3.0.4)
devise-async (= 0.8.0)
diffy (~> 3.0.3)
dropzonejs-rails
email_spec
email_validator (~> 1.4.0)
enumerize
Expand Down Expand Up @@ -607,6 +612,7 @@ DEPENDENCIES
jasmine (= 2.0.0.rc5)
jquery-atwho-rails (~> 0.3.3)
jquery-rails
jquery-scrollto-rails
jquery-turbolinks
jquery-ui-rails
kaminari (~> 0.15.1)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.9.0.rc1
7.0.0.pre
3 changes: 2 additions & 1 deletion app/assets/javascripts/application.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#= require jquery.history
#= require jquery.waitforimages
#= require jquery.atwho
#= require jquery.scrollto
#= require jquery.scrollTo
#= require jquery.blockUI
#= require turbolinks
#= require jquery.turbolinks
Expand All @@ -29,6 +29,7 @@
#= require underscore
#= require nprogress
#= require nprogress-turbolinks
#= require dropzone
#= require_tree .

window.slugify = (text) ->
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/behaviors/toggler_behavior.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ ->
$("body").on "click", ".js-toggler-target", ->
container = $(@).closest(".js-toggler-container")
container = $(".notes-container")
container.toggleClass("on")

# Toggle button. Show/hide content inside parent container.
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/blob.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BlobView
unless isNaN first_line
$("#tree-content-holder .highlight .line").removeClass("hll")
$("#LC#{line}").addClass("hll") for line in [first_line..last_line]
$("#L#{first_line}").ScrollTo() unless e?
$.scrollTo("#L#{first_line}") unless e?

# parse selected lines from hash
# always return first and last line (initialized to NaN)
Expand Down
85 changes: 85 additions & 0 deletions app/assets/javascripts/markdown_area.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
formatLink = (str) ->
"![" + str.alt + "](" + str.url + ")"

$(document).ready ->
alertClass = "alert alert-danger alert-dismissable div-dropzone-alert"
alertAttr = "class=\"close\" data-dismiss=\"alert\"" + "aria-hidden=\"true\""
divHover = "<div class=\"div-dropzone-hover\"></div>"
divSpinner = "<div class=\"div-dropzone-spinner\"></div>"
divAlert = "<div class=\"" + alertClass + "\"></div>"
iconPicture = "<i class=\"icon-picture div-dropzone-icon\"></i>"
iconSpinner = "<i class=\"icon-spinner icon-spin div-dropzone-icon\"></i>"
btnAlert = "<button type=\"button\"" + alertAttr + ">&times;</button>"
project_image_path_upload = window.project_image_path_upload or null

$("textarea.markdown-area").wrap "<div class=\"div-dropzone\"></div>"

$(".div-dropzone").parent().addClass "div-dropzone-wrapper"

$(".div-dropzone").append divHover
$(".div-dropzone-hover").append iconPicture
$(".div-dropzone").append divSpinner
$(".div-dropzone-spinner").append iconSpinner


dropzone = $(".div-dropzone").dropzone(
url: project_image_path_upload
dictDefaultMessage: ""
clickable: true
paramName: "markdown_img"
maxFilesize: 10
uploadMultiple: false
acceptedFiles: "image/jpg,image/jpeg,image/gif,image/png"
headers:
"X-CSRF-Token": $("meta[name=\"csrf-token\"]").attr("content")

previewContainer: false

processing: ->
$(".div-dropzone-alert").alert "close"

dragover: ->
$(".div-dropzone > textarea").addClass "div-dropzone-focus"
$(".div-dropzone-hover").css "opacity", 0.7
return

dragleave: ->
$(".div-dropzone > textarea").removeClass "div-dropzone-focus"
$(".div-dropzone-hover").css "opacity", 0
return

drop: ->
$(".div-dropzone > textarea").removeClass "div-dropzone-focus"
$(".div-dropzone-hover").css "opacity", 0
$(".div-dropzone > textarea").focus()
return

success: (header, response) ->
child = $(dropzone[0]).children("textarea")
$(child).val $(child).val() + formatLink(response.link) + "\n"
return

error: (temp, errorMessage) ->
checkIfMsgExists = $(".error-alert").children().length
if checkIfMsgExists is 0
$(".error-alert").append divAlert
$(".div-dropzone-alert").append btnAlert + errorMessage
return

sending: ->
$(".div-dropzone-spinner").css "opacity", 0.7
return

complete: ->
$(".dz-preview").remove()
$(".markdown-area").trigger "input"
$(".div-dropzone-spinner").css "opacity", 0
return
)

$(".markdown-selector").click (e) ->
e.preventDefault()
$(".div-dropzone").click()
return

return
2 changes: 1 addition & 1 deletion app/assets/javascripts/project_users_select.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

projectUserFormatResult: (user) ->
if user.avatar_url
avatar = user.avatar_url
avatar = gon.relative_url_root + user.avatar_url
else if gon.gravatar_enabled
avatar = gon.gravatar_url
avatar = avatar.replace('%{hash}', md5(user.email))
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/users_select.js.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ ->
userFormatResult = (user) ->
if user.avatar_url
avatar = user.avatar_url
avatar = gon.relative_url_root + user.avatar_url
else if gon.gravatar_enabled
avatar = gon.gravatar_url
avatar = avatar.replace('%{hash}', md5(user.email))
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*= require_self
*= require nprogress
*= require nprogress-bootstrap
*= require dropzone/basic
*/

@import "main/*";
Expand Down
13 changes: 11 additions & 2 deletions app/assets/stylesheets/behaviors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@
.js-details-container.open .content { display: block; }
.js-details-container.open .content.hide { display: none; }


// Toggler
//--------
.js-toggler-container .turn-on { display: inherit; }
.write-preview-btn .turn-on { display: inherit; }
.write-preview-btn .turn-off { display: none; }

.js-toggler-container .turn-off { display: none; }
.js-toggler-container.on .turn-on { display: none; }
.js-toggler-container.on .turn-off { display: inherit; }

.js-toggler-container.on ~ .note-form-actions {
.write-preview-btn .turn-on { display: none; }
}

.js-toggler-container.on ~ .note-form-actions {
.write-preview-btn .turn-off { display: inherit; }
}
58 changes: 58 additions & 0 deletions app/assets/stylesheets/generic/markdown_area.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.div-dropzone-wrapper {
.div-dropzone {
position: relative;
padding: 0;
border: 0;
margin-bottom: 5px;

.div-dropzone-focus {
border-color: #66afe9 !important;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6) !important;
outline: 0 !important;
}

.div-dropzone-hover {
position: absolute;
top: 50%;
left: 50%;
margin-top: -0.5em;
margin-left: -0.6em;
opacity: 0;
font-size: 50px;
transition: opacity 200ms ease-in-out;
}

.div-dropzone-spinner {
position: absolute;
top: 100%;
left: 100%;
margin-top: -1.1em;
margin-left: -1.1em;
opacity: 0;
font-size: 30px;
transition: opacity 200ms ease-in-out;
}

.div-dropzone-icon {
display: block;
text-align: center;
font-size: inherit;
}

.dz-preview {
display: none;
}
}

.hint {
float: left;
padding: 0;
margin: 0;
}
}

.div-dropzone-alert {
margin-top: 5px;
margin-bottom: 0;
transition: opacity 200ms ease-in-out;
}
5 changes: 5 additions & 0 deletions app/assets/stylesheets/sections/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,8 @@
}
}
}

.file-content .diff-file {
margin: 0;
border: none;
}
32 changes: 21 additions & 11 deletions app/assets/stylesheets/sections/notes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,16 @@ ul.notes {
margin-bottom: 0;
}
.note_text_and_preview {
// makes the "absolute" position for links relative to this
position: relative;

// preview/edit buttons
> a {
position: absolute;
right: 5px;
bottom: -60px;
}
.note_preview {
background: #f5f5f5;
border: 1px solid #ddd;
@include border-radius(4px);
min-height: 80px;
padding: 4px 6px;

> p {
overflow-x: auto;
}
}
.note_text {
border: 1px solid #DDD;
Expand All @@ -310,15 +305,13 @@ ul.notes {
float: none;
}


.common-note-form {
margin: 0;
background: #F9F9F9;
padding: 3px;
border: 1px solid #DDD;
}


.note-form-actions {
background: #F9F9F9;
height: 45px;
Expand All @@ -333,6 +326,18 @@ ul.notes {
.js-notify-commit-author {
float: left;
}

.write-preview-btn {
// makes the "absolute" position for links relative to this
position: relative;

// preview/edit buttons
> a {
position: absolute;
right: 5px;
top: 8px;
}
}
}

.note-edit-form {
Expand Down Expand Up @@ -367,3 +372,8 @@ ul.notes {
.parallel-comment {
padding: 6px;
}

.error-alert > .alert {
margin-top: 5px;
margin-bottom: 5px;
}
1 change: 0 additions & 1 deletion app/controllers/files_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ def download
end
end
end

4 changes: 3 additions & 1 deletion app/controllers/projects/issues_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def create
render :new
end
end
format.js
format.js do |format|
@link = @issue.attachment.url.to_js
end
end
end

Expand Down
Loading