summaryrefslogtreecommitdiff
path: root/app/helpers/blob_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move :plain option to Highlight classMark Chao2018-10-301-1/+0
| | | | | | This is to DRY the repeated file size check. Move spec and constants to Highlight
* Make Highlight accept language paramMark Chao2018-10-301-3/+3
| | | | | | | | | | This replaces the repository param. This allows more flexiblity as sometimes we have highlight content not related to repository. Sometimes we know ahead of time the language of the content. Lastly language determination seems better fit as a logic in the Blob class. `repository` param is only used to determine the language, which seems to be the responsiblity of Blob.
* Stop using ivars in BlobHelper template methodsNick Thomas2018-10-191-5/+5
|
* Fixed bug with the content disposition with wiki attachmentsFrancisco Javier López2018-10-171-1/+9
|
* Remove dependencies on LinguistZeger-Jan van de Weg2018-10-121-1/+1
| | | | | | | | | | | | | | | | This saves about 128 MB of baseline RAM usage per Unicorn and Sidekiq process (!). Linguist wasn't detecting languages anymore from CE/EE since 9ae8b57467ac8b38f1fa9020a466d94a93cbb9dd. However, Linguist::BlobHelper was still being depended on by BlobLike and others. This removes the Linguist gem, given it isn't required anymore. EscapeUtils were pulled in as dependency, but given Banzai depends on it, it is now added explicitly. Previously, Linguist was used to detect the best ACE mode. Instead, we rely on ACE to guess the best mode based on the file extension.
* Backport project template API to CENick Thomas2018-10-051-13/+14
|
* Enable frozen string for app/helpers/**/*.rbgfyoung2018-09-061-0/+2
| | | | Partially addresses #47424.
* Rename BlobsHelper#dropdown_namesNick Thomas2018-09-051-6/+6
|
* Convert global templates to vendored templates via a ::TemplateFinderNick Thomas2018-09-051-13/+16
|
* Fixed project logo when it is LFS trackedFrancisco Javier López2018-08-301-22/+0
|
* Convert BlobHelper#licenses_for_select to use the new LicenseTemplateFinderNick Thomas2018-08-151-5/+7
|
* Refactor code for single file download in repositoryKia Mei Somabes2018-07-181-1/+1
|
* Refactor code for single file download in repositoryKia Mei Somabes2018-07-181-0/+2
|
* Refactor code for single file download in repositoryKia Mei Somabes2018-07-131-12/+11
|
* Set content-disposition header for single file download in repositoryKia Mei Somabes2018-07-121-8/+8
|
* Add single file download in repositoryKia Mei Somabes2018-07-091-9/+9
|
* Resolve "Web IDE doesn't work for branches with slashes"Tim Zallmann2018-05-231-2/+3
|
* Fixed web IDE not working with relative URLsPhil Hughes2018-04-241-1/+1
| | | | Closes #45649
* Merge branch 'blackst0ne-rails5-add-safe-params-helper' into 'master'Sean McGivern2018-04-181-1/+1
|\ | | | | | | | | [Rails5] Add `safe_params` helper See merge request gitlab-org/gitlab-ce!18241
| * [Rails5] Add `safe_params` helperblackst0ne2018-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | Rails 5.0 requires to explicitly permit attributes when building a URL using current `params` object. The `safe_params` helper allows developers to just call `safe_params.merge(...)` instead of manually adding `permit` to every call. https://github.com/rails/rails/pull/20868
* | Hide file/directory creation buttonsBob Van Landuyt2018-04-111-2/+2
| |
* | Rename `create_merge_request` permissionsBob Van Landuyt2018-04-111-3/+3
| | | | | | | | | | | | | | | | | | | | So we can distinguish between the permissions on the source and the target project. - `create_merge_request_from` indicates a user can create a merge request with the project as a source_project - `create_merge_request_in` indicates a user can create a merge request with the project as a target_project
* | Prevent new merge requests for archived projectsBob Van Landuyt2018-04-111-2/+2
|/ | | | | | | This prevents creating merge requests targeting archived projects. This could happen when a project was already forked, but then the source was archived.
* fixed ide_edit_button not existingmake-ide-cePhil Hughes2018-03-201-0/+11
|
* removed helper methodsPhil Hughes2018-03-021-14/+0
|
* refactor methods inline41255-refactoring-of-blob-link-methods-in-blob_helperJames Lopez2018-02-231-6/+6
|
* inline methodsJames Lopez2018-02-231-23/+7
|
* fix fork button issueJames Lopez2018-02-231-1/+1
|
* refactor code based on feedbackJames Lopez2018-02-231-25/+26
|
* refactor code based on feedbackJames Lopez2018-02-231-11/+11
|
* refactor blob link methodsJames Lopez2018-02-231-10/+11
|
* fix static analysisJames Lopez2018-02-231-1/+1
|
* fix specsJames Lopez2018-02-231-3/+7
|
* fix specsJames Lopez2018-02-231-5/+6
|
* fix specsJames Lopez2018-02-231-1/+1
|
* more refactoringJames Lopez2018-02-231-17/+15
|
* some initial refactoringJames Lopez2018-02-231-9/+17
|
* refactor modify_file_linkJames Lopez2018-02-231-5/+18
|
* fix specJames Lopez2018-02-231-3/+3
|
* fix specsJames Lopez2018-02-231-1/+1
|
* some more refactoringJames Lopez2018-02-231-6/+6
|
* fix specsJames Lopez2018-02-231-4/+4
|
* refactor methods further (in helper)James Lopez2018-02-231-7/+20
|
* a bit more refactoringJames Lopez2018-02-231-25/+3
|
* initial refactorJames Lopez2018-02-231-14/+22
|
* Only highlight search results under the highlighting size limit41666-cannot-search-with-keyword-mergeSean McGivern2018-01-161-0/+2
| | | | | | We should use this limit everywhere, but especially in project search results, where we could be highlighting very long single lines. (Typical examples: minified JavaScript, and JSON data files.)
* Fix up Web IDE user preference copy and buttonsJose Ivan Vargas2018-01-111-1/+1
|
* Merge branch 'jivl-general-icons-2' into 'master'Tim Zallmann2017-12-221-1/+1
|\ | | | | | | | | Replace the download, fork and resolve discussion in a new issue icons See merge request gitlab-org/gitlab-ce!15436
| * replaced download icon for the sprite based oneJose Ivan Vargas2017-12-191-1/+1
| |
* | Resolve "Decouple multi-file editor from file list"Tim Zallmann2017-12-211-3/+40
|/