Commit graph

25 commits

Author SHA1 Message Date
Robert Speicher
8c454b3624 Add a Blob model that wraps Gitlab::Git::Blob
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.
2016-02-18 22:45:30 -05:00
Jacob Vosmaer
016367c640 No use to sanitize partial blob data 2016-02-17 11:08:10 +01:00
Stan Hu
f86ddfd365 Render sanitized SVG images
Closes https://github.com/gitlabhq/gitlabhq/issues/9265
2016-02-01 18:25:32 +01:00
Dmitriy Zaporozhets
bb5213588b
Update files/diffs to match new layout
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-01-14 12:31:31 +01:00
Marin Jankovski
e53b350cb6 Add specs for showing lfs object in UI. 2015-12-07 15:03:50 +01:00
Marin Jankovski
ea52a81da4 Move the file serving to Raw controller, add a few ifs to view. 2015-12-03 17:08:09 +01:00
Douwe Maan
afb33acae6 Put grey block around blob ref switcher and breadcrumb. 2015-10-17 19:18:57 +02:00
Dmitriy Zaporozhets
a0a488ed13
Apply new design to files page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-13 16:41:48 +02:00
Dmitriy Zaporozhets
b08c5521f5
Style blob show page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-09-10 13:25:09 +02:00
Sullivan SENECHAL
8ef7220c23 Improve file icons rendering on tree 2015-03-28 16:49:05 +01:00
Dmitriy Zaporozhets
2da2720584 Improve css for file actions 2015-03-13 19:20:25 -07:00
Dmitriy Zaporozhets
e2b8025abe Increase input padding and fit issue form in laptop screen 2015-03-07 01:06:16 -08:00
Dmitriy Zaporozhets
3bfd53149c Replace bs-callout with alert 2015-03-06 18:36:22 -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
Dmitriy Zaporozhets
dc0879ac9e Merge pull request #7882 from cirosantilli/blob-instance-to-local
Use blob local instead of instance.
2014-12-20 20:19:59 +02:00
Sullivan SENECHAL
5d8be4438a Upgrade to Font Awesome v4.2 2014-10-03 12:19:24 +02:00
Ciro Santilli
e2e4dc5942 Use blob local instead of instance. 2014-10-01 09:04:25 +02:00
Dmitriy Zaporozhets
91c38a199f
Add some semantic to our html
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-17 17:13:30 +03:00
Dmitriy Zaporozhets
72f0a6b286
Fix blob breadcrumb
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-14 20:01:56 +03:00
Dmitriy Zaporozhets
55ab7a2a95
Remove color-named css classes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-03 14:49:50 +03:00
Dmitriy Zaporozhets
0505a88299
Hide control elements and last login for xs display
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-05-15 16:30:21 +03:00
Dmitriy Zaporozhets
9a3d665919
Show last commit for Blob#show
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-10 21:46:46 +02:00
Dmitriy Zaporozhets
0392669cbc
Fix some css after bootstrap 3
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-31 03:15:58 +02:00
Dmitriy Zaporozhets
3805797cae scss: rename file_content to file-content etc 2013-07-13 09:52:47 +03:00
Dmitriy Zaporozhets
2ed7cbfba4 Move projects controllers/views in Projects module 2013-06-23 19:47:22 +03:00
Renamed from app/views/blob/_blob.html.haml (Browse further)