Skip to content
This repository
tree: b3da6f6254
Fetching contributors…

Cannot retrieve contributors at this time

file 52 lines (52 sloc) 1.829 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
!!!
%html
  %head
    %meta{ :charset => 'utf-8' }
    %title
      &= @title || settings.pagetitle
    %link{ :rel => 'stylesheet', :href => '/stylesheet.css' }
    %link{ :rel => 'stylesheet', :href => '/css/ui-lightness/jquery-ui-1.8.21.custom.css' }
    %link{ :rel => 'shortcut icon', :href => '/images/favicon.png' }
    %link{ :rel => 'alternate', :href => '/feed', :type => 'application/rss+xml', :title => "#{settings.pagetitle} New items" }
    %link{ :rel => 'alternate', :href => '/feed/nsfw', :type => 'application/rss+xml', :title => "#{settings.pagetitle} New items (NSFW!)" }
    %script{ :src => '/js/jquery-1.7.2.js' }
    %script{ :src => '/js/ui/jquery-ui-1.8.21.custom.js' }
    %script{ :src => '/js/livequery.js' }
    %script{ :src => '/js/form.js' }
    %script{ :src => '/js/expander.js' }
    %script{ :src => '/js/fancybox.js' }
    %script{ :src => '/js/easing.js' }
    %script{ :src => '/js/mousewheel.js' }
    %script{ :src => '/js/zeitgeist.js' }
    - if @autoload
      :javascript
        jQuery(function() {
          $('a.fancy:#{@autoload}').trigger('click');
        });
  %body
    - if flash[:error]
      %div{ :class => 'error message' }
        %p
          = h flash[:error]
    - if flash[:notice]
      %div{ :class => 'success message' }
        %p
          = h flash[:notice]
        %div#dump
    #sitenav
      %a{ :href => '/new', :class => 'fancynav' } Add
      |
      %a{ :href => '/search', :class => 'fancynav' } Search
      |
      - if logged_in?
        %a{ :href => '/logout' } Logout
        |
        %a{ :href => '/users/%d/edit' % current_user.id } Edit Profile
      - else
        %a{ :href => '/login', :class => 'fancynav' } Login
    = partial(:_header)
    #wrapper
      = partial(:_navigation)
      = yield
      %div.clear
      = partial(:_footer)
Something went wrong with that request. Please try again.