This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 0b661516 authored by Douwe Maan's avatar Douwe Maan
Browse files

Remove icon from milestone reference.

parent 49c380761322
......@@ -76,7 +76,7 @@ def to_reference(from_project = nil)
end
def reference_link_text(from_project = nil)
%Q{<i class="fa fa-clock-o"></i> }.html_safe + self.title
self.title
end
def expired?
......
......@@ -28,7 +28,8 @@
%span.back-to-milestone
= link_to namespace_project_milestone_path(@project.namespace, @project, issuable.milestone) do
%strong
= issuable.milestone.reference_link_text
= icon('clock-o')
= issuable.milestone.title
- else
.light None
.selectbox
......
......@@ -3,8 +3,6 @@
module Banzai
module Filter
# HTML filter that replaces milestone references with links.
#
# This filter supports cross-project references.
class MilestoneReferenceFilter < AbstractReferenceFilter
def self.object_class
Milestone
......
......@@ -29,7 +29,7 @@
it 'links with adjacent text' do
doc = reference_filter("milestone (#{reference}.)")
expect(doc.to_html).to match(/\(<a.+><i.+><\/i> #{Regexp.escape(milestone.title)}<\/a>\.\)/)
expect(doc.to_html).to match(/\(<a.+>#{Regexp.escape(milestone.title)}<\/a>\.\)/)
end
it 'includes a title attribute' do
......@@ -41,7 +41,7 @@
milestone.update_attribute(:title, %{"></a>whatever<a title="})
doc = reference_filter("milestone #{reference}")
expect(doc.text).to eq "milestone #{milestone.title}"
expect(doc.text).to eq "milestone #{milestone.title}"
end
it 'includes default classes' do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment