GitLab Bot
9865665cb1
Add latest changes from gitlab-org/gitlab@master
2019-10-08 12:06:01 +00:00
Mark Chao
39ae9a59a5
Make Highlight accept language param
...
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.
2018-10-30 15:44:55 +08:00
Robert Speicher
72a7b30c9f
Change all :empty_project
to :project
2017-08-02 17:47:31 -04:00
Keifer Furzland
7e113b6824
Remove superfluous type defs in specs
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:52 +02:00
Douwe Maan
aed0387f97
Consistent diff and blob size limit names
2017-05-29 17:02:02 -05:00
Douwe Maan
b0a163208c
Rename BlobViewer max_size to overridable_max_size and absolute_max_size to max_size
2017-05-15 10:03:34 -05:00
Douwe Maan
acffc06213
Specify explicitly whether a blob viewer should be loaded asynchronously
2017-05-13 11:46:10 -05:00
Douwe Maan
08706f6837
Implement auxiliary blob viewers
2017-05-10 20:07:04 -05:00
Douwe Maan
60ebd101d0
Use blob viewers for snippets
2017-04-30 11:21:20 -05:00
Douwe Maan
dc4726f0a7
Satisfy Rubocop
2017-04-27 12:23:27 -05:00
Douwe Maan
964e7d206b
Add specs
2017-04-27 12:23:26 -05:00
Douwe Maan
a7fd95cd22
Render viewer error synchronously so that 'view the source' link will work
2017-04-27 12:23:26 -05:00
Douwe Maan
fed9dcd9ed
Add test stubs
2017-04-27 12:23:26 -05:00