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:
ketralnis
2008-06-27 16:51:31 -07:00
parent 1c3cde4598
commit 78ad7eb9a8
2 changed files with 2 additions and 2 deletions

View File

@@ -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">

View File

@@ -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>