gitlab-org--gitlab-foss/app/views/projects
Yorick Peterse d470f3d195
Support for rendering/redacting multiple documents
This commit changes the way certain documents are rendered (currently
only Notes) and how documents are redacted. Previously both rendering
and redacting would run on a per document basis. The result of this was
that for every document we'd have to run countless queries just to
figure out if we could display a set of links or not.

This commit changes things around so that redacting Markdown documents
is no longer tied into the html-pipeline Gem. This in turn allows it to
redact multiple documents in a single pass, thus reducing the number of
queries needed.

In turn rendering issue/merge request notes has been adjusted to take
advantage of this new setup. Instead of rendering Markdown somewhere
deep down in a view the Markdown is rendered and redacted in the
controller (taking the current user and all that into account). This has
been done in such a way that the "markdown()" helper method can still be
used on its own.

This particular commit also paves the way for caching rendered HTML on
object level. Right now there's an accessor method Note#note_html which
is used for setting/getting the rendered HTML. Once we cache HTML on row
level we can simply change this field to be a column and call a "save"
whenever needed and we're pretty much done.
2016-06-24 11:46:39 +02:00
..
artifacts CI build page UI update 2016-06-10 12:07:51 +01:00
badges Tests fix for ref switcher 2016-06-18 21:49:20 +01:00
blame Remove header title from project pages 2016-05-26 17:58:44 +02:00
blob Add GitLab CI Yml dropdown selector 2016-06-20 14:48:28 -05:00
branches Fixed size of buttons in branches list 2016-06-17 10:37:31 +01:00
builds Merge branch 'build-scroll-controls-on-complete' into 'master' 2016-06-16 16:52:23 +00:00
buttons Merge master into issue_12758 2016-06-17 14:29:11 -03:00
ci Rename commit_data in Pipeline to commit 2016-06-21 14:43:37 +02:00
commit Fixed issue with dropdown buttons 2016-06-17 09:49:50 +01:00
commits Fix positioning of Repository sub nav scrolling 2016-06-23 17:45:22 -04:00
compare Update gray block under subnav to match other pages 2016-06-21 13:16:28 -05:00
container_registry Show proper image ID on registry page 2016-06-21 13:08:10 +02:00
deploy_keys Fixed project settings alert colors 2016-05-16 15:40:44 +01:00
deployments Create_deployment ability is need to create retry or rollback deployment 2016-06-15 12:56:02 +02:00
diffs Merge branch 'toggle-whitespace-button-for-compare-page' into 'master' 2016-06-15 22:48:39 +00:00
environments Tests update 2016-06-21 11:52:51 +01:00
find_file Remove header title from project pages 2016-05-26 17:58:44 +02:00
forks Moved private forks notice to projects-list so its above the pagination and inline with list 2016-06-10 16:55:13 +01:00
generic_commit_statuses Merge branch 'improve-pipeline-design' into 'master' 2016-05-25 20:50:26 +00:00
graphs Add new style for sub header block info 2016-06-21 12:15:49 -04:00
group_links
hooks Backported from EE shared form for web hooks 2016-06-03 11:04:27 +01:00
imports lots of refactoring again based on feedback. Changed the UI slightly and also fixed a small bug 2016-06-15 17:31:00 +02:00
issues Made markdown buttons work on all markdown textareas 2016-06-17 11:52:22 +01:00
labels Add handler icon to prioritized labels 2016-06-15 10:35:58 -05:00
merge_requests Fixed placement of close button on merge requests 2016-06-18 21:40:59 +01:00
milestones Merge branch 'milestone-date-clear' into 'master' 2016-06-15 20:52:09 +00:00
network Remove unnecessary string interpolation. 2016-06-21 12:35:55 -06:00
notes Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
pipelines Merge branch 'list-items' into 'master' 2016-06-15 13:53:10 +00:00
project_members Display group/project access requesters separately in admin 2016-06-20 16:12:46 +02:00
protected_branches Fixed project settings alert colors 2016-05-16 15:40:44 +01:00
refs
releases Remove header title from project pages 2016-05-26 17:58:44 +02:00
repositories Added author to various Markdown calls in views 2016-05-26 17:14:06 +02:00
runners Update wordings according to: 2016-06-21 16:32:50 +08:00
services Hide description on mobile 2016-05-26 09:15:56 +01:00
snippets Remove header title from project pages 2016-05-26 17:58:44 +02:00
tags Merge branch 'tags-edit-tooltip-placement' into 'master' 2016-06-18 16:35:51 +00:00
tree Added title attribute to enties in tree view 2016-06-16 13:58:00 +01:00
triggers Resolve some issues Jacob brought up. 2016-05-24 09:04:43 -06:00
variables Changed table border color 2016-05-16 10:26:11 +01:00
wikis Put wiki page history content into container 2016-06-21 23:54:00 +03:00
_activity.html.haml
_bitbucket_import_modal.html.haml
_builds_settings.html.haml Project settings UI update 2016-05-20 08:49:31 +01:00
_commit_button.html.haml
_errors.html.haml
_files.html.haml
_find_file_link.html.haml
_github_import_modal.html.haml
_gitlab_import_modal.html.haml
_home_panel.html.haml Merge branch 'star-fork-mobile' into 'master' 2016-06-18 17:12:38 +00:00
_last_commit.html.haml
_last_push.html.haml Fixed last push event banner not being in container 2016-06-14 13:18:19 +01:00
_md_preview.html.haml Updated design of markdown buttons 2016-06-17 11:52:22 +01:00
_merge_request_settings.html.haml Fix merge requests project settings help link anchor. 2016-06-23 16:49:58 +01:00
_readme.html.haml
_zen.html.haml
activity.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
edit.html.haml a few changes based on MR feedback 2016-06-17 15:47:00 +02:00
empty.html.haml Backend for a gitignores dropdown 2016-05-20 15:58:36 -05:00
new.html.haml a few changes based on MR feedback 2016-06-17 15:47:00 +02:00
no_repo.html.haml
remove_fork.js.haml
show.atom.builder Remove event_to_atom helper 2016-05-23 12:37:40 -04:00
show.html.haml Capitalize button text 2016-06-21 11:02:53 -05:00
transfer.js.haml
update.js.haml