gitlab-org--gitlab-foss/app/views
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
..
abuse_report_mailer
abuse_reports Standardize the way we check for and display form errors 2016-04-04 21:37:07 -04:00
admin Merge branch '18871-check-improve-how-we-display-access-requesters-in-admin-area' into 'master' 2016-06-22 01:17:08 +00:00
award_emoji Move award_menu_url variable into gon object. 2016-06-09 03:37:40 +03:00
ci Redirect to root path when visiting `/ci` 2016-03-29 08:04:17 +02:00
dashboard using request dot path instead 2016-06-17 18:17:06 +01:00
devise Customize the Devise `unlock_instructions` email 2016-06-16 20:10:52 -04:00
doorkeeper Fix grammar and wording in text on various pages. 2016-05-22 10:41:30 -06:00
email_rejection_mailer
emojis Create table for award emoji 2016-05-06 10:47:11 +02:00
errors
events Fixed issue with activity links not being consistent 2016-06-02 09:11:44 +01:00
explore Start builds redesign 2016-05-04 16:45:37 -05:00
groups Merge branch '18871-check-improve-how-we-display-access-requesters-in-admin-area' into 'master' 2016-06-22 01:17:08 +00:00
help Added shortcut to help shortcuts view 2016-06-17 18:07:09 +01:00
import Warn about admin privilege to disable GitHub Webhooks 2016-06-17 18:18:52 -03:00
invites
issues Add more information into RSS fead for issues 2016-06-13 09:41:34 -07:00
kaminari/gitlab Upgrade Kaminari from 0.16.3 to 0.17.0. 2016-05-31 14:14:16 -06:00
layouts Move fade divs out of every scrolling container; remove unneeded scrolling CSS 2016-06-23 17:45:22 -04:00
notify refactor to use haml instead 2016-06-22 08:48:18 +02:00
profiles Updated tests to not look for flash message 2016-06-21 11:20:06 +01:00
projects Support for rendering/redacting multiple documents 2016-06-24 11:46:39 +02:00
repository_check_mailer Improve 'auto fsck' admin emails 2016-04-18 10:58:40 +02:00
search renamed path to link 2016-06-23 12:44:50 +01:00
shared renamed path to link 2016-06-23 12:44:50 +01:00
sherlock Use better_errors editor links in sherlock 2016-06-06 18:27:26 -04:00
snippets Updated snippets UI 2016-05-18 14:11:06 +01:00
u2f Don't allow clicking on "Setup New U2F Device" unless an authenticator app has been set up. 2016-06-15 08:16:11 +05:30
users Add tests for dates on tooltips 2016-06-09 14:38:24 -05:00