1a107601fa490ca69215facceebe3d0dc5e7f1f8 | 6bcef0037bdb2d139a15065c3f31e872bae79df3 | ||
---|---|---|---|
17 | ## the Original Code is CondeNet, Inc. | 17 | ## the Original Code is CondeNet, Inc. |
18 | ## | 18 | ## |
19 | ## All portions of the code written by CondeNet are Copyright (c) 2006-2008 | 19 | ## All portions of the code written by CondeNet are Copyright (c) 2006-2008 |
20 | ## CondeNet, Inc. All Rights Reserved. | 20 | ## CondeNet, Inc. All Rights Reserved." |
21 | ################################################################################ | 21 | ################################################################################ |
22 | 22 | ||
23 | <% from r2.lib.template_helpers import replace_render, reddit_link %> | 23 | <% from r2.lib.template_helpers import replace_render, add_sr %> |
24 | <%namespace file="utils.html" import="plain_link" /> | ||
24 | 25 | ||
25 | <% | 26 | <% |
26 | _id = ("_%s" % thing.parent_name) if hasattr(thing, 'parent_name') else '' | 27 | _id = ("_%s" % thing.parent_name) if hasattr(thing, 'parent_name') else '' |
... | ... | ||
37 | %if thing.nextprev and (thing.prev or thing.next): | 38 | %if thing.nextprev and (thing.prev or thing.next): |
38 | <p class="nextprev"> ${_("view more:")}  | 39 | <p class="nextprev"> ${_("view more:")}  |
39 | %if thing.prev: | 40 | %if thing.prev: |
40 | <a rel="nofollow,prev" href="${reddit_link(thing.prev, url = True)}">${_("prev")}</a> | 41 | ${plain_link(_("prev"), thing.prev, rel="nofollow,prev")} |
41 | %endif | 42 | %endif |
42 | %if thing.prev and thing.next: | 43 | %if thing.prev and thing.next: |
43 |  |  | 44 |  |  |
44 | %endif | 45 | %endif |
45 | %if thing.next: | 46 | %if thing.next: |
46 | <a rel="nofollow,next" href="${reddit_link(thing.next, url = True)}">${_("next")}</a> | 47 | ${plain_link(_("next"), thing.next, rel="nofollow,prev")} |
47 | %endif | 48 | %endif |
48 | </p> | 49 | </p> |
49 | %endif | 50 | %endif |