about summary refs log tree commit diff stats
path: root/app/views/layouts/application.html.haml
blob: f889127b32ef8bdc5419ad2a8875106a4b4a0bd6 (plain) (blame)
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
53
54
55
56
57
58
!!! 5
%html
  %head
    %title= content_for?(:title) ? "Four Island - #{yield(:title)}" : "Four Island"
    = csrf_meta_tags
    = stylesheet_link_tag    'main', media: 'all', 'data-turbolinks-track': 'reload'
    = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
    = display_meta_tags og: { site_name: "Four Island" }
  %body#main-body
    - if flash[:alert]
      %div#flash.flash-alert= flash[:alert]
    - if flash[:notice]
      %div#flash.flash-notice= flash[:notice]
    #container
      #page-header
        %header#banner
          %h1= link_to "Four Island", root_url
      #page-body
        #sidebar
          .sidebar-module
            %blockquote.pimped.bubble.rounded.bottom
              %h2 I'm Hatkirby.
              %p Coding is what I do. I make a lot of things, including Twitter bots. I really like Pokémon, and I write about it a lot.
              %p B.S. in CS, Carnegie Mellon 2017
            %cite.bubble
              <strong>Hatkirby</strong> on Four Island
          .sidebar-module.fun-links
            .bubble.rounded
              %h2 My stuff
              %ul
                - links_sidebar().each do |link|
                  %li
                    = image_tag "tag_#{cycle("blue", "green", "orange", "pink", "purple", "red", "yellow")}.png"
                    = link_to link[:title], link[:url], link.include?(:extra) ? link[:extra] : {}
          .sidebar-module.fun-links
            .bubble.rounded
              %h2 Blog links
              %ul
                %li
                  = image_tag "book_open.png"
                  = link_to "Archive", blogs_url
                %li
                  = image_tag "tag_blue.png"
                  = link_to "Tag cloud", tags_url
                %li
                  = image_tag "feed.png"
                  = link_to "Atom feed", blogs_url(format: :atom)
          .sidebar-module
            .bubble.rounded
              %h2 Meta
              %ul
                - if not user_signed_in?
                  %li= link_to "Log in", new_user_session_path
                - if user_signed_in?
                  %li= link_to "Admin", admin_url
                  %li= link_to "Log out", destroy_user_session_path, method: :delete
        #main
          #content= yield