summaryrefslogtreecommitdiff
path: root/app/views/projects/diffs/_file.html.haml
Commit message (Collapse)AuthorAgeFilesLines
* [skip ci] Replace hidden-xsClement Ho2018-04-091-1/+1
|
* refactor code based on feedbackJames Lopez2018-02-231-1/+1
|
* some initial refactoringJames Lopez2018-02-231-1/+1
|
* Fix 500 when visiting a commit where blobs do not exist (nil blobs)41491-fix-nil-blob-name-errorEric Eastwood2018-01-091-1/+1
| | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/41491
* Add view replaced file link for image diffsadd-view-replaced-file-linkClement Ho2017-09-201-0/+6
|
* Pass fallback_diff_refs to Diff::File instead of using view helpersDouwe Maan2017-05-231-7/+6
|
* Clean up diff renderingDouwe Maan2017-05-231-4/+7
|
* Use Blob methods instead of BlobHelper helpersDouwe Maan2017-04-271-1/+1
|
* Fix diffs with edit-forking needs31276-fix-diffs-with-edit-forking-needsEric Eastwood2017-04-241-0/+2
| | | | Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/31276
* Align file header items while keeping collapse functionalityAnnabel Dunstone Gray2017-02-081-1/+2
|
* Use a new class to keep old behaviorFilipa Lacerda2017-02-081-1/+1
|
* Revert "Merge branch 'revert-a91ff32b' into 'master'"Filipa Lacerda2017-02-081-1/+1
| | | This reverts merge request !8688
* Address feedbackDouwe Maan2017-02-061-2/+2
|
* Add 'View on [env]' link to blobs and individual files in diffsDouwe Maan2017-02-061-0/+2
|
* unifies mr diff file button styleNur Rony2017-01-301-1/+1
|
* Revert "Merge branch '25709-diff-file-overflow' into 'master'"Jacob Schatz2017-01-211-1/+1
| | | This reverts merge request !8475
* Remove fixed class from file actions25709-diff-file-overflowAnnabel Dunstone Gray2017-01-191-1/+1
|
* Use flexbox instead of media queriesFilipa Lacerda2017-01-191-2/+2
| | | | Move CSS to correct file
* fixed commit diff linking and added specsfix/diff-titleLuke "Jared" Bennett2017-01-141-1/+1
|
* HAMLLint: Fix `SpaceInsideHashAttributes` offencesKushal Pandya2016-12-311-2/+2
|
* Merge branch 'jej-22869' into 'security'Douwe Maan2016-11-281-1/+1
| | | | | | | | | | | | | | | | | | Fix information disclosure in `Projects::BlobController#update` It was possible to discover private project names by modifying `from_merge_request`parameter in `Projects::BlobController#update`. This fixes that. - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) https://gitlab.com/gitlab-org/gitlab-ce/issues/22869 See merge request !2023
* Unify anchor link format for MR diff files !7298Yar2016-11-151-2/+2
| | | | | | | | Right now, the following naming scheme for diff files is used: diff-1, diff-2, ... and also we have "internal" format which is file-path-HASH, where HASH is sha1 of file path. Besides, we have HASH_lineA_lineB format to link exact line number in MR diff. It makes sence to unify the way we link diff from outside, while leave "file-path-HASH" format for internal (js) usage. Changes in this commit allow to link diff just by HASH, if we don't want specify exact lines, also it changes "file-path-HASH" and "diff-NUMBER" links in code to this unified format. Inspired by #24010 and !7298
* Updated positioning of copy file path button in diffsmr-copy-filename-btn-updatePhil Hughes2016-10-311-1/+0
| | | | Closes #23591
* Added copy file path button to diffsmr-file-path-copy-btnPhil Hughes2016-10-101-1/+1
| | | | Closes #23108
* fix typo "this files" -> "this file"Mike Greiling2016-09-291-1/+1
|
* Style merge request diff dropdowns & disable comments.Bryce Johnson2016-09-141-1/+1
|
* edit_blob_link can receive the blob to avoid access to the repository20454-edit-button-mrPaco Guzman2016-08-181-4/+3
|
* Avoid commit lookup on diff_helperexplicit-arguments-on-diff_file_html_dataPaco Guzman2016-08-101-1/+1
|
* Fix Mystery GuestHerminio Torres2016-08-041-2/+2
| | | | | | Magic Variable - Change the name of the variable to assign the local variable for partial, rather than `i` use the `index`. Don't pass a local variable called `i` to a partial.
* Cache highlighted diff lines for merge requestsPaco Guzman2016-08-031-2/+2
| | | | Introducing the concept of SafeDiffs which relates diffs with UI highlighting.
* Improve diff performance by eliminating redundant checks for text blobsremove-redundant-blob-text-callsStan Hu2016-07-291-4/+5
| | | | | | | On a merge request with over 1000 changed files, there were redundant calls to blob_text_viewable?, which incurred about 7% of the time. Improves #14775
* Ensure only renderable text diffs are collapsedSean McGivern2016-07-081-6/+1
| | | | | Other diffs (those that are too large to render anyway, image diffs, diffs suppressed by .gitattributes) should be rendered immediately.
* Collapse large diffs by defaultSean McGivern2016-07-081-25/+6
| | | | | When rendering a list of diff files, skip those where the diff is over 10 KB and provide an endpoint to render individually instead.
* Style diff and blob file headers the same wayDouwe Maan2016-07-061-30/+15
|
* Add DiffFile#blob and #old_blobDouwe Maan2016-07-061-3/+3
|
* Fix Error 500 when viewing a blob with binary characters after the 1024-byte ↵Stan Hu2016-06-121-0/+2
| | | | | | | | | | | | | | | | mark Here was the problem: 1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file. 2. If the blob is text, GitLab will attempt to display it. 3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters. 4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT. To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires an update to gitlab_git: gitlab-org/gitlab_git!86 Closes #13826
* Merge branch 'adambutler/gitlab-ce-feature/support-diff-of-issue-title-rename'Douwe Maan2016-05-201-4/+2
|\ | | | | | | | | # Conflicts: # app/services/system_note_service.rb
| * Create DiffFilter and change SystemNoteService#change_title to use ↵Adam Butler2016-05-181-4/+2
| | | | | | | | Gitlab::Diff::InlineDiff
* | Syntax-highlight diffs in push emails17464-backport-email-syntax-highlightingSean McGivern2016-05-171-1/+1
|/ | | | | Based on: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/151
* Support supressing text file diffs on the default branch with .gitattributesMatt Oakes2016-04-291-13/+13
| | | | | | | | This is a combination of 3 commits. - Update the bare repositories info/attributes if the default branch is updated - Check the diff attributes of a file before showing a diff - Update CHANGELOG
* Diff design updatesAnnabel Dunstone2016-04-071-5/+5
|
* Update diff colors and iconsAnnabel Dunstone2016-04-071-1/+1
|
* change the css class has_tooltip to has-tooltip universallychange_css_class_has_tooltip_to_has-tooltipArinde Eniola2016-03-201-1/+1
|
* Fix bug where wrong commit ID was being used in a merge request diff to show ↵Stan Hu2016-03-191-1/+1
| | | | | | | | old image Closes #3769 Closes #14327
* Show a notice for diffs that are too largehide-large-diffsYorick Peterse2016-03-181-9/+13
| | | | | | | This builds on the changes introduced in https://gitlab.com/gitlab-org/gitlab_git/merge_requests/72 and results in merge requests with large diffs (e.g. due to them containing minified CSS) loading much faster.
* Mark inline difference between old and new paths when a file is renamedDouwe Maan2016-01-291-9/+13
|
* Fix MR diff 'Edit' buttonfix-mr-diff-edit-buttonDouwe Maan2016-01-211-21/+19
|
* Fix specs and behavior for LFS filesDouwe Maan2015-12-181-2/+2
|
* Automatically fork a project when not allowed to edit a file.Douwe Maan2015-12-181-1/+2
|
* Merge branch 'serve_lfs_object' into 'master' Douwe Maan2015-12-081-2/+2
|\ | | | | | | | | | | | | Serve LFS object Depends on gitlab-org/gitlab_git!57 See merge request !1976