Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

we can put a static link on each subreddit page! look at line 61 of r…

…edditheader.html
  • Loading branch information...
commit 1898b3ed4b25272aef139740b0775a1cde44138e 1 parent 062eb17
@jmuhlfel authored
View
2  r2/r2/templates/createsubreddit.html
@@ -250,7 +250,7 @@
var list = document.getElementById("menu-links");
- li.innerHTML = "<input type=\"text\" id=\"link-url-"+i+"\" value=\"${thing.site.link_urls}\" />";
+ li.innerHTML = "<input type=\"text\" id=\"link-url-"+i+"\" value=\"${thing.site.link_urls_0}\" />";
list.appendChild(li);
if(i >= 1){
View
8 r2/r2/templates/redditheader.html
@@ -56,6 +56,14 @@
%for toolbar in thing.toolbars:
${toolbar}
%endfor
+
+ <%
+ if not isinstance(c.site, FakeSubreddit):
+ link_url_1 = 'http://google.com'
+ else: link_url_1 = 'http://bing.com'
+ %>
+ ${plain_link('TEST LINK', link_url_1)}
+
</div>
<div id="header-bottom-${'left' if c.lang_rtl else 'right'}">
Please sign in to comment.
Something went wrong with that request. Please try again.