diff --git a/r2/r2/templates/base.htmllite b/r2/r2/templates/base.htmllite index 788fff671..5e95a5caf 100644 --- a/r2/r2/templates/base.htmllite +++ b/r2/r2/templates/base.htmllite @@ -22,14 +22,15 @@ <%! from pylons.i18n import _ + from r2.lib.template_helpers import get_domain %> -

+

<% - link = 'reddit

' % c.domain - label = _("link from %(site)s") - label = label.replace(" ", " "); + link = 'reddit

' % get_domain() + label = _("link from %(site)s") + label = label.replace(" ", " "); %> ${unsafe(label % dict(site = link))} diff --git a/r2/r2/templates/comment.htmllite b/r2/r2/templates/comment.htmllite index 191c7302b..f8d53ea30 100644 --- a/r2/r2/templates/comment.htmllite +++ b/r2/r2/templates/comment.htmllite @@ -23,6 +23,7 @@ <%! from pylons.i18n import _, ungettext from r2.lib.filters import safemarkdown + from r2.lib.template_helpers import get_domain %> <%inherit file="printable.htmllite" /> @@ -35,7 +36,7 @@ <%def name="entry()"> - + ${thing.author.name} ${thing.score} ${ungettext("point", "points", thing.score)} ${thing.timesince} diff --git a/r2/r2/templates/link.htmllite b/r2/r2/templates/link.htmllite index 0bbd7d633..71c6661c1 100644 --- a/r2/r2/templates/link.htmllite +++ b/r2/r2/templates/link.htmllite @@ -22,6 +22,7 @@ <%! from pylons.i18n import _, ungettext + from r2.lib.template_helpers import get_domain %> <%inherit file="printable.htmllite" /> @@ -37,10 +38,10 @@ com_label = _("comment") %> \ - + ${thing.title}
${thing.score} ${ungettext("point", "points", thing.score)} | -  ${com_label} +  ${com_label} diff --git a/r2/r2/templates/link.wired b/r2/r2/templates/link.wired index d1a1e0809..e7e81fd4e 100644 --- a/r2/r2/templates/link.wired +++ b/r2/r2/templates/link.wired @@ -22,24 +22,19 @@ <%! from pylons.i18n import _, ungettext + from r2.lib.template_helpers import get_domain %> <%inherit file="printable.htmllite" /> <%def name="entry()"> $num - <% - if thing.is_self and not thing.url.startswith("http://"): - url = "http://%s%s" % ( g.domain, thing.url ) - else: - url = thing.url - %> - ${thing.title} + ${thing.title}  (${thing.domain}) ${thing.score} ${ungettext("point", "points", thing.score)} - by   ${thing.author.name} -   [ + by   ${thing.author.name} +   [ ${thing.num_comments} ${ungettext("comment", "comments", thing.num_comments or 0)}] diff --git a/r2/r2/templates/sharelink.wired b/r2/r2/templates/sharelink.wired new file mode 100644 index 000000000..e69de29bb