Drew Blessing
03b1bcbb68
Truncate tree to max 1,000 items and display notice to users
...
Rendering ten thousands of tree items consumes a lot of server
time and can cause timeouts in extreme cases. Realistically,
displaying more than 1,000 files is probably not useful so
truncate and show the user a notice instead. 'Find files' can be
used to locate specific files beyond the 1,000 limit.
2017-11-15 08:28:33 -06:00
Rémy Coutable
09d323dece
Fix a "Wrong number of arguments" error in TreeHelper#flatten_tree
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-09-07 19:31:40 +02:00
Alejandro Rodríguez
c2e99b40f7
Implement fix for n+1 issue on `flatten_tree` helper
2017-09-06 17:47:25 -03:00
zzjin
2e62ec86e5
update yield to return string path
2017-05-10 14:05:03 +08:00
zzjin
e9ba667282
Update tree_helper.rb to fix #31784 , which broken file browse where paths deeper than 6:'/'.
2017-05-09 03:57:15 +00:00
Douwe Maan
df36f1f47b
Add breadcrumb, build header and pipelines submenu to artifacts browser
2017-05-03 16:32:36 -05:00
Toon Claes
05e0f50453
Cache the rendered README, but post-process on show
...
Because the post-processing of the rendered README is dependent on the
context (i.e. the current user), do the post-processing when the
README is being displayed.
2017-04-27 13:22:17 +02:00
Douwe Maan
d170133bde
Refactor changing files in web UI
2017-04-20 00:37:44 +00:00
Adam Buckland
8abc757539
Update tree view to sort folders with submodules
...
Currently trees are sorted in the fashion:
- folders
- files
- submodules
with each section sorted alphabetically
This changes to this system:
- folders and submodules (sorted together)
- files
2016-08-09 14:08:47 +01:00
P.S.V.R
3d6ba3b107
Add support to cherry-pick any commit
...
Issue: https://gitlab.com/gitlab-org/gitlab-ce/issues/12785
Merge Request: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3514
2016-04-18 15:39:07 +08:00
Rubén Dávila
328b52d58a
Some updates after last code review.
2016-02-19 13:14:52 -05:00
Douwe Maan
d9c82d679f
Automatically fork a project when not allowed to edit a file.
2015-12-18 10:03:34 +01:00
Gabriel Mazetto
b5291f9599
Fixed Rubocop offenses
2015-12-15 00:53:52 -02:00
Douwe Maan
82ddd738b6
Show tooltip when trying to edit file when not on branch
2015-12-08 17:10:07 +01:00
Douwe Maan
df6750d3d6
Default target branch to patch-n when editing file in protected branch
2015-12-08 16:42:10 +01:00
Marin Jankovski
e53b350cb6
Add specs for showing lfs object in UI.
2015-12-07 15:03:50 +01:00
Jakub Jirutka
b0659c1b07
Simplify and unify helpers for rendering markup
2015-05-18 22:52:13 +02:00
Jakub Jirutka
8dbc4746fe
Handle AsciiDoc better, reuse HTML pipeline filters ( fixes #9263 )
2015-05-18 20:48:03 +02:00
Sullivan SENECHAL
8ef7220c23
Improve file icons rendering on tree
2015-03-28 16:49:05 +01:00
Douwe Maan
4830b2be5e
Refactor GitAccess to use instance variables.
2015-03-24 14:11:48 +01:00
Robert Speicher
4e7a4cd956
Use `icon` helper method in helper modules
2015-01-28 03:48:18 -05:00
Dmitriy Zaporozhets
21297e78af
Refactor blob helpers
2015-01-26 15:03:14 -08:00
Dmitriy Zaporozhets
2b10520b30
Merge pull request #7999 from cirosantilli/append-inplace
...
Append in place for strings and arrays [failure unrelated]
2015-01-21 23:07:15 -08:00
Dmitriy Zaporozhets
7d1e6f1546
Merge pull request #8607 from skburgart/fix-typos
...
Fix various typos
2015-01-21 23:02:48 -08:00
Valery Sizov
ab7a79bf3b
developer can push to protected branches
2015-01-20 17:34:23 -08:00
Steven Burgart
5c80160218
Fix various typos
...
signe-in -> signed-in
go_to_gihub_for_permissions -> go_to_github_for_permissions
descendand -> descendant
behavour -> behaviour
recepient_email -> recipient_email
generate_fingerpint -> generate_fingerprint
dependes -> depends
Cant't -> Can't
wisit -> visit
notifcation -> notification
sufficent_scope -> sufficient_scope?
levet -> level
2015-01-18 10:29:37 -05:00
Dmitriy Zaporozhets
11591573e1
Merge pull request #7925 from cirosantilli/unused-arguments
...
Remove or prepend underscore _ to unused method arguments
2015-01-15 14:42:03 -08:00
Ciro Santilli
33c9f05c6b
Append in place for strings and arrays
2015-01-01 21:12:00 +01:00
marmis85
021cff67f3
Flatten the directory hierarchy while there is only one directory descendant
2014-12-31 03:15:04 +01:00
Ciro Santilli
6c65b91d8c
Remove or prepend _ to unused method arguments
2014-12-27 22:38:25 +01:00
Dmitriy Zaporozhets
90ed76ac3c
Prevent 500 after merge MR if you check remove source branch
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-12-23 11:22:12 +02:00
Dmitriy Zaporozhets
e007d810c9
Merge pull request #7886 from cirosantilli/disable-blob-edit-mr
...
Disable / hide MR edit blob button if cannot edit.
2014-12-20 20:19:38 +02:00
Ciro Santilli
a56d0d47db
Remove unneeded backslash: "\/" == "/"
2014-11-04 11:16:53 +01:00
Ciro Santilli
07e9cb6b77
Factor markup? || gitlab_markdown? into new method
2014-10-04 17:56:12 +02:00
Sullivan SENECHAL
5d8be4438a
Upgrade to Font Awesome v4.2
2014-10-03 12:19:24 +02:00
Ciro Santilli
2e9f5de868
Add parenthesis to function def with arguments.
2014-10-03 09:18:46 +02:00
Ciro Santilli
81eacd1b2a
Disable / hide MR edit blob button if cannot edit.
2014-10-02 12:12:51 +02:00
Robert Schilling
d7701a263f
Move calls to Gitlab::MarkdownHelper to application_helper
2014-08-11 11:59:36 +02:00
Robert Schilling
99eb283101
Use readme we support to render if there are multiple readmes
2014-08-11 08:50:56 +02:00
Robert Schilling
0e3f8ea2ef
Use simple_format if we don't have a proper renderer
2014-08-10 14:33:22 +02:00
Robert Schilling
ceabda743a
Improve markup gems
2014-07-28 11:47:27 +02:00
Dmitriy Zaporozhets
4656ef957a
Replace files icons with fontawesome
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-03 13:40:07 +03:00
skv-headless
d859d08094
Editing preview
2014-04-15 19:02:02 +04:00
Dan Allen
4239e457ac
Add .adoc file extension for AsciiDoc
...
Add .adoc file extension for AsciiDoc as it's a very popular extension to use and the one recommended by the Asciidoctor project.
2014-03-04 16:08:48 -07:00
Dmitriy Zaporozhets
ae9dd62762
Update code to work with gitlab_git 3
2013-10-01 17:00:28 +03:00
Dmitriy Zaporozhets
b99f357e96
Dont allow file edit for non-branches ref
2013-08-04 17:18:49 +03:00
Robert Schilling
9efdebaf12
Improve markup detection, fixes #4695
2013-08-03 14:40:43 +02:00
Dmitriy Zaporozhets
2ed7cbfba4
Move projects controllers/views in Projects module
2013-06-23 19:47:22 +03:00
Dmitriy Zaporozhets
ef935aba4f
Fix README.txt rendering. Solution by @dfyx
2013-06-11 12:31:05 +03:00
Dmitriy Zaporozhets
246989bcca
more descriptive confirmation messages
2013-05-27 15:43:44 +03:00
Dmitriy Zaporozhets
56d15660b8
gitlab_git to 1.0.6, return submodule rendering in tree
2013-05-01 13:39:37 +03:00
Dmitriy Zaporozhets
94390fc7b4
Proper routing. blobs for blobs, raw for send_data
2013-04-03 09:26:38 +03:00
Dmitriy Zaporozhets
03f41e2820
Gitlab::Git::Tree & Blob added
2013-04-02 22:37:20 +03:00
Dmitriy Zaporozhets
da5b0c91dc
Move some decorator logic to helpers
2013-03-31 23:46:54 +03:00
Dmitriy Zaporozhets
a99ad3d355
tree_heleper: concat html only if present. Avoid nil exception
2013-03-05 17:15:20 +02:00
Robert Speicher
e60185699b
Add 'breadcrumbs' helper for Commit breadcrumb links
...
Closes #1731
2012-11-01 17:58:13 -04:00
randx
0189ee97ed
Security for online editor. Replace dev_access?, master_access? with can? method usage
2012-10-21 12:12:14 +03:00
randx
453b2ae68b
Fix plain text readme
2012-10-16 09:43:22 +03:00
Robert Speicher
388d72e6bf
Add render_tree helper; simplify (speed up) tree_icon
2012-10-03 19:39:27 -04:00
Robert Speicher
79a02df92e
Update usages of tree_file_project_ref_path to project_tree_path
2012-09-26 16:32:21 -04:00
Dmitriy Zaporozhets
0e524aaea1
Added workaround for github-markup issue with rendering markdown
2012-09-20 13:00:18 +03:00
Saito
96d4f22e53
tree view need use ascii-8bit, file name need be utf8.
2012-09-11 19:18:14 +08:00
Robert Speicher
52c521ffe8
Use GitHub::Markup to parse markup files
...
Closes #1382
2012-09-05 16:52:49 -04:00
Dmitriy Zaporozhets
f88a2617e6
Tree ajax log. progress bar & refactoring
2012-07-10 23:12:38 +03:00