1a107601fa490ca69215facceebe3d0dc5e7f1f8 | 6bcef0037bdb2d139a15065c3f31e872bae79df3 | ||
---|---|---|---|
1 | ## "The contents of this file are subject to the Common Public Attribution | 1 | ## The contents of this file are subject to the Common Public Attribution |
2 | ## License Version 1.0. (the "License"); you may not use this file except in | 2 | ## License Version 1.0. (the "License"); you may not use this file except in |
3 | ## compliance with the License. You may obtain a copy of the License at | 3 | ## compliance with the License. You may obtain a copy of the License at |
4 | ## http://code.reddit.com/LICENSE. The License is based on the Mozilla Public | 4 | ## http://code.reddit.com/LICENSE. The License is based on the Mozilla Public |
... | ... | ||
23 | <%! | 23 | <%! |
24 | from r2.lib.template_helpers import static | 24 | from r2.lib.template_helpers import static |
25 | from r2.models import Sub, FakeSubreddit | 25 | from r2.models import Sub, FakeSubreddit |
26 | from r2.models.subreddit import DefaultSR | ||
26 | from r2.lib.pages import SearchForm | 27 | from r2.lib.pages import SearchForm |
27 | %> | 28 | %> |
28 | <%namespace file="utils.html" import="plain_link, text_with_js, img_link, separator"/> | 29 | <%namespace file="utils.html" import="plain_link, text_with_js, img_link, separator"/> |
... | ... | ||
60 | </div> | 61 | </div> |
61 | 62 | ||
62 | <div id="header-bottom-${'right' if c.lang_rtl else 'left'}"> | 63 | <div id="header-bottom-${'right' if c.lang_rtl else 'left'}"> |
63 | <a href="/"> | 64 | <% |
64 | <img id="header-img" src="${c.site.header}" alt="${c.site.name}" /> | 65 | if g.css_killswitch or not c.site.header: |
65 | </a> | 66 | header_img = DefaultSR.header |
67 | else: | ||
68 | header_img = c.site.header | ||
69 | %> | ||
70 | ${img_link(c.site.name, header_img, '/', _id = "header-img-a", img_id = 'header-img')} | ||
66 | 71 | ||
67 | ##keeps the height of the header from varying when there isnt any content | 72 | ##keeps the height of the header from varying when there isnt any content |
68 | | 73 | |