mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-20 10:06:04 +10:00
In these particular instances we can just use HAML tags directly. This can shave off some time spent loading issue pages, though this depends on the amount of comments being displayed. When viewing https://gitlab.com/gitlab-org/gitlab-ce/issues/2164 locally these changes reduce loading time by about 400 ms in total.
25 lines
698 B
Plaintext
25 lines
698 B
Plaintext
.md-area
|
|
.md-header.clearfix
|
|
%ul.center-top-menu
|
|
%li.active
|
|
%a.js-md-write-button(href="#md-write-holder" tabindex="-1")
|
|
Write
|
|
%li
|
|
%a.js-md-preview-button(href="md-preview-holder" tabindex="-1")
|
|
Preview
|
|
|
|
- if defined?(referenced_users) && referenced_users
|
|
%span.referenced-users.pull-left.hide
|
|
= icon('exclamation-triangle')
|
|
You are about to add
|
|
%strong
|
|
%span.js-referenced-users-count 0
|
|
people
|
|
to the discussion. Proceed with caution.
|
|
|
|
%div
|
|
.md-write-holder
|
|
= yield
|
|
.md.md-preview-holder.hide
|
|
.js-md-preview{class: (preview_class if defined?(preview_class))}
|