Douwe Maan
f4f4a6b530
Fix specs and behavior for LFS files
2015-12-18 16:14:12 +01:00
Douwe Maan
d9c82d679f
Automatically fork a project when not allowed to edit a file.
2015-12-18 10:03:34 +01:00
Douwe Maan
51ed5225ad
Merge branch 'serve_lfs_object' into 'master'
...
Serve LFS object
Depends on gitlab-org/gitlab_git!57
See merge request !1976
2015-12-08 14:19:52 +00:00
Marin Jankovski
bf17609e2a
Rename blob helper, bump version of gitlab_git to 7.2.21.
2015-12-07 15:56:38 +01:00
Marin Jankovski
e53b350cb6
Add specs for showing lfs object in UI.
2015-12-07 15:03:50 +01:00
Douglas Barbosa Alexandre
12fdc13ad3
Fix 500 error when creating a merge request that removes a submodule
2015-12-04 17:35:14 -02:00
Marin Jankovski
b9a0f96d42
Don't show diffs for lfs pointers.
2015-12-04 12:01:08 +01:00
Dmitriy Zaporozhets
ca7e31c48f
Merge branch 'ui/consistency' into 'master'
...
UI: Improve consistency across the board
Depends on !1953
See the commits for more details, the messages mostly speak for themselves.
Fixes https://dev.gitlab.org/gitlab/gitlabhq/issues/2577
See merge request !1954
2015-12-02 22:17:48 +00:00
Douwe Maan
59c3ec4e67
Use file-type specific file icon in blame view and diff item
2015-12-02 14:55:36 +01:00
Douwe Maan
3ad1d320ef
Remove duplicated styling for center top menus
2015-12-02 14:49:12 +01:00
Douwe Maan
e49190cad9
Don't use params[:view] directly.
2015-11-17 16:33:38 +01:00
Dmitriy Zaporozhets
c5ec2a23a4
Small UI improvements to merge request page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-11-06 16:27:18 +01:00
Douwe Maan
8710739e4e
Correctly find last known blob for file deleted in MR.
2015-10-20 14:24:02 +02:00
Stan Hu
b5d9a613d9
Make diff file view easier to use on mobile screens
2015-10-09 05:01:27 -07:00
Dmitriy Zaporozhets
e2576d588f
Avoid unnecessary usage of local vars
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-01 15:51:28 +02:00
Dmitriy Zaporozhets
0d967bce57
Show additions/deletions stats on merge request diff
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-01 13:52:08 +02:00
Dmitriy Zaporozhets
fe7e97320c
Fix bug when removed file was not appearing in merge request diff
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-30 12:31:23 +02:00
Dmitriy Zaporozhets
86556a079e
Improve diff UI and mr compare page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-08 17:22:26 +02:00
Dmitriy Zaporozhets
0276e9032a
Limit content width for big screens except certain pages
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-26 11:51:28 +02:00
Stan Hu
3bee4a6712
Fix "Reload with full diff" URL button in compare branch view
...
This button worked when viewing merge requests because the JavaScript
stripped the .html in the Ajax request. However, it left the .html suffix
in the compare branch view.
2015-08-24 23:35:26 -07:00
Stan Hu
4a76cbe219
Merge branch 'fix-reload-with-full-diff-url' into 'master'
...
Fix the "Reload with full diff" URL button
On the first load, the merge request tabs would be requested in JSON format to render
the HTML. This would cause the "Reload with full diff" button to create a link to `diff.json`. Instead, generate the path in HTML mode.
Closes #2041
See merge request !1019
2015-07-25 15:38:23 +00:00
Robert Speicher
cad0e848b0
Fix and style the "Changes suppressed" link.
2015-07-23 16:07:45 -04:00
Stan Hu
ae3f869fd1
Fix the "Reload with full diff" URL button
...
On the first load, the merge request tabs would be requested in JSON format to render
the HTML. This would cause the "Reload with full diff" button to create a link to diff.json.
Closes #2041
2015-07-23 12:53:54 -07:00
Sytse Sijbrandij
5ee8ae4894
Detail too many warning to explain that merge will still work.
2015-07-06 22:03:36 +02:00
Dmitriy Zaporozhets
9860ab0f22
Remove sticky-diff functionality
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-07-06 11:34:37 +02:00
Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:55:56 +02:00
Stan Hu
a7932fe2fd
Support commenting on a diff in side-by-side view
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9283
2015-06-16 06:11:59 -07:00
Dmitriy Zaporozhets
e11e042d89
Fix diff header with submodule change
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-05-29 11:01:40 +02:00
Alex Connor and Jeroen van Baarsen
3c892f3554
Disabled expansion of top/bottom blobs for new file diffs
2015-05-21 09:25:07 +02:00
Alex Lossent
affd049dc4
Improve handling of large diffs
...
Diffs with a large number of changed lines time out (504 HTTP error) or
generate a HTML page that's so heavy web browsers struggle with it.
https://github.com/gitlabhq/gitlabhq/pull/5014 introduced limits on
commit line count so that only a safe portion is rendered. This was
later undone by code refactoring in be5b6db8 , e0eb4803 and c741fcab .
This patch re-introduces a safe limit on number of lines.
2015-05-05 18:51:12 +02:00
Stan Hu
72a7febead
Fix "Revspec not found" errors when viewing diffs in a forked project with submodules
...
Closes #1413
2015-04-27 20:42:38 -07:00
Dominik Sander
d4fec49abc
Fix merge request comments on files with multiple commits
...
Having a merge request with a comments on a line which is then changed
in a later commit prevented new comments from properly showing up in the
merge request show page.
* `Note#set_diff` do not use stored the diff when creating a new note
in merge requests (we can not be sure the diff did not changed since
the last comment on that line)
* Do not rely just on `outdated?` of the first note when displaying
comments of a MR in the discussion tab, but partition the
active/outdated notes and display them all
* In the inline changes tab just select the active notes, so an
outdated note does not prevent an active one from being rendered
* Just show active comments in the side-by-side changes tab
2015-04-15 18:23:57 +02:00
Dmitriy Zaporozhets
c543cd1ed3
Fix performance issue when browse big diffs
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-04-13 15:51:28 +03:00
Dmitriy Zaporozhets
f2ea9d9f3f
Improve sticky headers in diffs
...
* disable sticky headers in discussion
* enable sticky header on mr page with you click changes tab
2015-03-24 19:00:00 -07:00
Dmitriy Zaporozhets
2cd6cc7fed
Merge branch 'improve-diff-header' into 'master'
...
Fix file mode going to next line in diff header
See merge request !432
2015-03-24 00:09:40 +00:00
Dmitriy Zaporozhets
61700f619c
Fix file mode going to next line in diff header
2015-03-23 09:38:52 -07:00
Douwe Maan
a30645c68f
Don't show commit comment button when user is not signed in.
2015-03-23 16:17:10 +01:00
Dmitriy Zaporozhets
1cf138170c
Add tooltip for comment toggle in diff. Add changelog item and fix tests
2015-03-18 20:12:19 -07:00
Dmitriy Zaporozhets
e07d32eb41
Add some space aroung diff stats block
2015-03-18 19:21:24 -07:00
Dmitriy Zaporozhets
22038106b4
Replace show diff button with link
2015-03-18 19:11:27 -07:00
Dmitriy Zaporozhets
e0f8e022f7
Improve comment toggle button in diff
2015-03-18 17:53:43 -07:00
Hannes Rosenögger
120f032b1a
enable line wrapping by default and remove the checkbox to change it
2015-03-18 08:46:53 +01:00
Dmitriy Zaporozhets
30ca451fd4
Refactor buttons
2015-03-14 00:29:32 -07:00
Dmitriy Zaporozhets
8b551ee318
Merge branch 'emails-on-push'
...
Conflicts:
app/controllers/projects/services_controller.rb
app/models/project_services/emails_on_push_service.rb
2015-03-08 16:49:11 -07:00
Dmitriy Zaporozhets
3bfd53149c
Replace bs-callout with alert
2015-03-06 18:36:22 -08:00
Dmitriy Zaporozhets
1da71cc520
Introduce shortcuts for routing helpers
2015-02-25 19:34:16 -08:00
Douwe Maan
7b34c9dc59
Add list of changed files to EmailsOnPush.
...
See #1906 .
2015-02-25 13:40:05 +01:00
Vinnie Okada
9e9ce95d62
Merge branch 'master' into rails-4.1.9
...
Conflicts:
app/views/dashboard/_project.html.haml
app/views/events/event/_common.html.haml
app/views/explore/projects/_project.html.haml
app/views/groups/_projects.html.haml
app/views/projects/_home_panel.html.haml
app/views/projects/_issues_nav.html.haml
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_issues.html.haml
app/views/projects/issues/show.html.haml
app/views/projects/merge_requests/_discussion.html.haml
app/views/projects/merge_requests/_show.html.haml
app/views/projects/milestones/index.html.haml
app/views/projects/notes/_edit_form.html.haml
app/views/shared/_issuable_filter.html.haml
2015-02-19 20:53:05 -07:00
Sytse Sijbrandij
ee804e2d94
Better English in the performance diff message.
2015-02-14 12:13:31 -08:00
Vinnie Okada
76aad9b76e
Upgrade to Rails 4.1.9
...
Make the following changes to deal with new behavior in Rails 4.1.2:
* Use nested resources to avoid slashes in arguments to path helpers.
2015-02-14 11:09:23 -07:00