Skip to content
Browse files

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

…edditheader.html
  • Loading branch information...
1 parent 062eb17 commit 1898b3ed4b25272aef139740b0775a1cde44138e @jmuhlfel committed
Showing with 9 additions and 1 deletion.
  1. +1 −1 r2/r2/templates/createsubreddit.html
  2. +8 −0 r2/r2/templates/redditheader.html
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'}">

0 comments on commit 1898b3e

Please sign in to comment.
Something went wrong with that request. Please try again.