diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-06-12 18:31:22 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-06-12 18:31:22 +0300 |
commit | 9f832e59ab659d27865704f9f0b43f81f6f2aa8a (patch) | |
tree | 75c2ca9bc4827a07e78c641937c2712f408bac32 /lib/gitlab/ci/ansi2html.rb | |
parent | 4e249e542cdf9f515c01346a9c9ace10e414644c (diff) |
Adds margins to the section lines
Diffstat (limited to 'lib/gitlab/ci/ansi2html.rb')
-rw-r--r-- | lib/gitlab/ci/ansi2html.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/ci/ansi2html.rb b/lib/gitlab/ci/ansi2html.rb index 70c8c099e55..7f98cfa4f79 100644 --- a/lib/gitlab/ci/ansi2html.rb +++ b/lib/gitlab/ci/ansi2html.rb @@ -193,7 +193,7 @@ module Gitlab if @sections.any? css_classes << "section" css_classes += sections.map { |section| "s_#{section}" } - css_classes << "prepend-left-default line" + css_classes << "line" end write_in_tag %{<br/>} @@ -222,7 +222,7 @@ module Gitlab return if @sections.include?(section) @sections << section - write_raw %{<div class="section-start js-section-start fa fa-caret-down js-open append-right-8 cursor-pointer" id="id_#{section}" data-action="start" data-timestamp="#{timestamp}" data-section="#{data_section_names}" role="button"></div>} + write_raw %{<div class="js-section-start fa fa-caret-down append-right-8 cursor-pointer" data-timestamp="#{timestamp}" data-section="#{data_section_names}" role="button"></div>} @lineno_in_section = 0 end @@ -231,7 +231,7 @@ module Gitlab # close all sections up to section until @sections.empty? - write_raw %{<div class="section-end js-section-end" data-action="end" data-timestamp="#{timestamp}" data-section="#{data_section_names}"></div>} + write_raw %{<div class="section-end" data-section="#{data_section_names}"></div>} last_section = @sections.pop break if section == last_section @@ -309,7 +309,7 @@ module Gitlab if @sections.any? css_classes << "section" css_classes << "js-section-header" if @lineno_in_section == 0 - css_classes += sections.map { |section| "s_#{section}" } + css_classes += sections.map { |section| "js-s_#{section}" } end @out << %{<span class="#{css_classes.join(' ')}">} |