1a107601fa490ca69215facceebe3d0dc5e7f1f86bcef0037bdb2d139a15065c3f31e872bae79df3
21
################################################################################
21
################################################################################
22
 
22
 
23
<%! 
23
<%! 
24
   from r2.lib.template_helpers import reddit_link, static, join_urls, class_dict, path_info
24
   from r2.lib.template_helpers import add_sr, static, join_urls, class_dict, path_info
25
   from r2.lib.pages import SearchForm
25
   from r2.lib.pages import SearchForm
26
   from pylons import request
26
   from pylons import request
27
%>
27
%>
...
 
...
 
52
  %else:
52
  %else:
53
    <link rel="stylesheet" href="${static(g.stylesheet)}" 
53
    <link rel="stylesheet" href="${static(g.stylesheet)}" 
54
          type="text/css" />
54
          type="text/css" />
55
    %if c.site.stylesheet:
55
    %if (not g.css_killswitch) and c.user.pref_show_stylesheets:
56
    <link rel="stylesheet" href="${static(c.site.stylesheet)}" 
56
      %if c.site.stylesheet:
57
          type="text/css" />
57
      <link rel="stylesheet" href="${static(c.site.stylesheet)}" 
 
 
58
            type="text/css" />
 
 
59
      %endif
 
 
60
      %if c.site.stylesheet_contents:
 
 
61
      <link rel="stylesheet" href="${c.site.path}stylesheet?v=${c.site.stylesheet_hash}"
 
 
62
            title="applied_subreddit_stylesheet"
 
 
63
            type="text/css" />
 
 
64
      %endif
58
    %endif
65
    %endif
59
  %endif
66
  %endif
60
 
67
 
...
 
...
 
62
        type="image/x-icon" />
69
        type="image/x-icon" />
63
  %if thing.extension_handling:
70
  %if thing.extension_handling:
64
    <link rel="alternate" type="application/rss+xml" title="RSS"
71
    <link rel="alternate" type="application/rss+xml" title="RSS"
65
          href="${reddit_link(join_urls(request.path,'.rss'), url=True)}" />
72
          href="${add_sr(join_urls(request.path,'.rss'))}" />
66
  %endif
73
  %endif
67
</%def>
74
</%def>
68
 
75