Make link styling default for anchor tags

This commit is contained in:
Omar Roth
2018-03-06 22:03:45 -06:00
parent ebe51c91d7
commit 8a3056d0e3
5 changed files with 16 additions and 16 deletions

View File

@@ -216,7 +216,7 @@ def decrypt_signature(a)
a = splice(a, 53)
a = splice(a, 47)
a.delete_at(0..2)
return a.join("")
end
@@ -300,7 +300,7 @@ def template_comments(root)
content = <<-END_HTML
<p>
<a class="link" href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> #{score} <b>#{author}</b>
<a href="javascript:void(0)" onclick="toggle(this)">[ - ]</a> #{score} <b>#{author}</b>
</p>
<div>
#{body_html}
@@ -358,7 +358,7 @@ def add_alt_links(html)
if ["www.youtube.com", "youtu.be", "m.youtube.com"].includes?(url.host) && url.path == "/watch"
alt_link = <<-END_HTML
<a class="link" href="#{url.full_path}">
<a href="#{url.full_path}">
<i class="fa fa-link" aria-hidden="true"></i>
</a>
END_HTML