Commit graph

8 commits

Author SHA1 Message Date
Kushal Pandya
fb3e365412 HAMLLint: Fix SpaceInsideHashAttributes offences 2016-12-31 11:58:36 +05:30
Nick Thomas
9920551536 Enable CacheMarkdownField for the remaining models
This commit alters views for the following models to use the markdown cache if
present:

* AbuseReport
* Appearance
* ApplicationSetting
* BroadcastMessage
* Group
* Issue
* Label
* MergeRequest
* Milestone
* Project

At the same time, calls to `escape_once` have been moved into the `single_line`
Banzai pipeline, so they can't be missed out by accident and the work is done
at save, rather than render, time.
2016-10-07 02:54:26 +01:00
Phil Hughes
704f468376 Replaced hidden div for textarea off-the screen
Element with the content being copied cant be hidden so instead i\'ve moved it off the screen
2016-03-10 13:34:31 +00:00
Phil Hughes
a0c4f3dfa9 Fixes issue with markdown snippet not being copyable
On markdown snippets this adds a hidden div with the raw markdown content so that it can be copied

Closes #13882
2016-03-10 12:15:00 +00:00
Douwe Maan
40d2daed89 Highlight note code and edit preview 2016-01-25 11:42:47 +01:00
Jakub Jirutka
b0659c1b07 Simplify and unify helpers for rendering markup 2015-05-18 22:52:13 +02:00
Stefan Tatschner
bf079c24af Replace highlight.js with rouge-fork rugments
I decided to create a fork of rouge as rouge lacks a HTML formatter with
the required options such as wrapping a line with <span> tags.
Furthermore I was not really convinced about the clarity of rouge's
source code.

Rugments 1.0.0beta3 for now only includes some basic linting and a new
HTML formatter. Everything else should behave the same.
2015-01-15 13:41:11 +01:00
Dmitriy Zaporozhets
9be5425a88
Refactor snippets views
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-14 12:36:46 +03:00
Renamed from app/views/snippets/_blob_content.html.haml (Browse further)