summaryrefslogtreecommitdiff
path: root/app/helpers/blob_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Diff design updatesAnnabel Dunstone2016-04-071-3/+3
|
* change the css class has_tooltip to has-tooltip universallychange_css_class_has_tooltip_to_has-tooltipArinde Eniola2016-03-201-3/+3
|
* Use Rails etag/cache_control helperscache-raw-2Jacob Vosmaer2016-03-071-11/+4
|
* Refactor caching codeJacob Vosmaer2016-03-071-7/+10
|
* Tell clients/proxies to cache raw blob requestsJacob Vosmaer2016-03-031-0/+25
|
* Explain why we mangle blob content typessafe-content-typeJacob Vosmaer2016-02-241-0/+18
|
* Add a `Blob` model that wraps `Gitlab::Git::Blob`rs-blobRobert Speicher2016-02-181-4/+0
| | | | | | | | | | | This allows us to take advantage of Rails' `to_partial_path` to render the correct partial based on the Blob type, rather than cluttering the view with conditionals. It also allows (and will allow in the future) better encapsulation for Blob-related logic which makes sense for our Rails app but might not make as much sense for the core `gitlab_git` library, such as detecting if the blob is an SVG.
* Render sanitized SVG imagesStan Hu2016-02-011-0/+12
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9265
* Merge branch 'issue_2406' into 'master' Dmitriy Zaporozhets2016-01-281-4/+2
|\ | | | | | | | | | | | | Show list of forks for a given Project Closes #2406 See merge request !2376
| * Fix broken specs. #2406Rubén Dávila2016-01-201-4/+2
| |
| * Setup new fork link in sidebar and routes. #2406Rubén Dávila2016-01-201-2/+2
| |
* | Fix MR diff 'Edit' buttonfix-mr-diff-edit-buttonDouwe Maan2016-01-211-6/+6
| |
* | Refactor Gitlab::Highlight and fix testsDouwe Maan2016-01-191-2/+6
| |
* | Remove duplication around highlighting.Douwe Maan2016-01-141-15/+1
| |
* | Refactor parallel_diff generation a bit.Douwe Maan2016-01-141-9/+2
| |
* | Small fixes from code review. #3945Rubén Dávila2016-01-121-3/+3
| |
* | New implementation for highlighting diff files. #3945Rubén Dávila2015-12-301-15/+0
| | | | | | | | | | | | * It is more performant given now we process all the diff file instead of processing line by line. * Multiline comments are highlighted correctly.
* | Add syntax highlighting to diff view. #3945Rubén Dávila2015-12-281-4/+25
|/
* Fix specs and behavior for LFS filesDouwe Maan2015-12-181-6/+4
|
* Satisfy RubocopDouwe Maan2015-12-181-2/+2
|
* Automatically fork a project when not allowed to edit a file.Douwe Maan2015-12-181-21/+81
|
* Only show Edit button for text blobs.edit-in-patch-branchDouwe Maan2015-12-081-2/+2
|
* Show tooltip when trying to edit file when not on branchDouwe Maan2015-12-081-20/+18
|
* Rename blob helper, bump version of gitlab_git to 7.2.21.Marin Jankovski2015-12-071-3/+3
|
* Add specs for showing lfs object in UI.Marin Jankovski2015-12-071-1/+13
|
* Capitalize tab titlesDouwe Maan2015-12-021-1/+1
|
* Add HTMLGitlab formatterStefan Tatschner2015-07-291-1/+1
| | | | | | | | | This custom formatter for rouge is needed to generate HTML output specifically for gitlab. Since its usecase is mostly suitable for gitlab it had been rejected upstream: https://github.com/jneen/rouge/pull/268 Thanks a lot to @stanhu, @jneen and @tsigo for review!
* Replace Rugments with RougeStefan Tatschner2015-07-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I have mainly created the rugments fork for the purpose of improving gitlab's highlighting. Nowadays IMO it works way better than the old highlight.js solution. But the development is stuck on my side because of a couple of personal reasons: * I have finished my studies; last months I was writing my master thesis. So there was a huge time problem. I am sorry for that. * I had to move to Munich due to getting a (paid) job. Searching a flat here is horrible... :) * Last but not least, maintaining the same code base in two seperate projects is a mess. I have decided to switch back to rouge due to several reasons: * In the beginning I was quite motivated, but since I start working on my new job next week, the best solution IMO is switching back to upstream rouge. * Rouge is continously improving: https://github.com/jneen/rouge/blob/master/CHANGELOG.md http://rouge.jneen.net/ * There should be absolutely no regressions with this change. Most likely this pull request will almost fix some minor bugs. * One less gem in gitlab is a good thing. since Gitlab is quite a huge bundle of gems. Reducing complexity should be a major milestone. Thanks a lot to @stanhu and @jneen for the review!
* Fix git blame syntax highlighting when different commits break up linesStan Hu2015-05-271-5/+5
| | | | Closes #1521
* workaround for buggy lexersHannes Rosenögger2015-05-201-2/+4
| | | | if something goes wrong, fall back to the plaintext lexer
* Rename MarkdownHelper to MarkupHelperJakub Jirutka2015-05-181-1/+1
|
* Improve file icons rendering on treeSullivan SENECHAL2015-03-281-0/+8
|
* Merge branch 'master' into rails-4.1.9Vinnie Okada2015-02-191-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge branch 'no-highlight-files' into 'master'Sytse Sijbrandij2015-02-181-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | Add "NEWS" to no_highlight_files "NEWS" is used in gnu style opensource projects for the changelog. So let's add it to `no_highlight_files`. See merge request !249
| | * Added "news" to no_highlight_filesStefan Tatschner2014-12-031-1/+1
| | |
* | | Upgrade to Rails 4.1.9Vinnie Okada2015-02-141-2/+6
|/ / | | | | | | | | | | 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.
* | Refactor blob helpersDmitriy Zaporozhets2015-01-261-0/+38
| |
* | Replace highlight.js with rouge-fork rugmentsStefan Tatschner2015-01-151-5/+14
|/ | | | | | | | | | I decided to create a fork of rouge as rouge lacks a HTML formatter with the required options such as wrapping a line with <span> tags. Furthermore I was not really convinced about the clarity of rouge's source code. Rugments 1.0.0beta3 for now only includes some basic linting and a new HTML formatter. Everything else should behave the same.
* revert using the extension of the blob to determine the syntax highlighting ↵Zertrin2014-11-181-8/+3
| | | | | | language nohighlight functionality for a hardcoded set of filenames is kept
* Specify language detection for highlight.jsDmitriy Zaporozhets2014-06-071-0/+18
Because I am tired of CHANGELOG highlighted as sql file :) Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>