mirror of https://github.com/freeCodeCamp/devdocs
parent
3fc89f307a
commit
92d8a8ec47
@ -1,19 +0,0 @@
|
||||
module Docs
|
||||
class Mdn
|
||||
class ContributeLinkFilter < Filter
|
||||
def call
|
||||
return html if current_url.host != 'developer.mozilla.org'
|
||||
|
||||
html << <<-HTML.strip_heredoc
|
||||
<div class="_attribution">
|
||||
<p class="_attribution-p">
|
||||
<a href="#{current_url}$edit" class="_attribution-link">Edit this page on MDN</a>
|
||||
</p>
|
||||
</div>
|
||||
HTML
|
||||
|
||||
html
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue