diff --git a/r2/r2/config/rewrites.py b/r2/r2/config/rewrites.py
index 625fbd17c..f545dca1f 100644
--- a/r2/r2/config/rewrites.py
+++ b/r2/r2/config/rewrites.py
@@ -26,6 +26,6 @@ rewrites = (#these first two rules prevent the .embed rewrite from
("^/_(.*)", "/_$1"),
("^/static/(.*\.js)", "/static/$1"),
#This next rewrite makes it so that all the embed stuff works.
- ("^(.*)(?
<%!
from pylons.i18n import _
- from r2.lib.template_helpers import get_domain
+ from r2.lib.template_helpers import get_domain, style_line
+ from r2.models.subreddit import FakeSubreddit, Default
%>
-
' % get_domain()
- label = _("link from %(site)s")
- label = label.replace(" ", " ");
- %>
- ${unsafe(label % dict(site = link))}
-${next.body()}
+
+
+
+
+
+
+ <%
+ style = capture(optionalstyle, "text-decoration:none;color:#336699")
+ link = '%s
' % (style, get_domain(), c.site.name)
+ label = _("links from %(site)s").replace(" ", " ");
+ %>
+ ${unsafe(label % dict(site = link))}
+
+ %if not isinstance(c.site, FakeSubreddit) or c.site != Default:
+
+
+ powered by
+
+ ${Default.name}
+
+
+
+ %endif
+
+ ${next.body()}
+
diff --git a/r2/r2/templates/button.html b/r2/r2/templates/button.html
index 030414707..a0bdb51cc 100644
--- a/r2/r2/templates/button.html
+++ b/r2/r2/templates/button.html
@@ -25,7 +25,7 @@
%>
<%inherit file="reddit.html"/>
<%namespace module="r2.lib.template_helpers" import="generateurl"/>
-<%namespace file="printable.html" import="arrow, score" />
+<%namespace file="buttontypes.html" import="button1, button2, button3, submiturl, submitlink" />
@@ -63,70 +63,4 @@