mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-03 11:15:06 -05:00
Patch from chromakode to add <a id=...> to links to authors and subreddits on listings for easier DOM parsing of these values
http://code.reddit.com/ticket/53
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
</%def>
|
||||
|
||||
<%def name="subreddit()" buffered="True">
|
||||
<a href="${thing.subreddit.path}" class="hover">
|
||||
<a id="subreddit_${thing._fullname}" href="${thing.subreddit.path}" class="hover">
|
||||
${thing.subreddit.name}
|
||||
</a>
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -151,7 +151,7 @@ ${self.RenderPrintable()}
|
||||
href = unsafe('href="/user/%s/"' % name)
|
||||
if c.user_is_admin: name += " (%d)" % (author.link_karma)
|
||||
%>
|
||||
<a class="${author_cls}" ${href}>${name}</a>
|
||||
<a id="author_${thing._fullname}" class="${author_cls}" ${href}>${name}</a>
|
||||
%endif
|
||||
%endif
|
||||
</%def>
|
||||
|
||||
Reference in New Issue
Block a user