Sha256: 8db5018246fcd5ee7f5e69f0a0e545f1720bf89f194d73b53eb5227a9f60d30e

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

%h3 Pick a Template
%hr
.row
  - @templates.each do |template|
    .col-sm-3
      .panel.panel-default
        .panel-body
          - if template['title'] == 'Jekyll Default'
            = image_tag('statixite/jekyll.png', class: 'img-responsive')
          - else
            = image_tag("https://raw.githubusercontent.com/mattvh/jekyllthemes/master/thumbnails/#{template['thumbnail']}", class: 'img-responsive')
          .caption
            %h3= template['title']
        %table.table{:style => "padding: 0; margin: 0;"}
          %tbody
            %tr
              - author_link_array = template['homepage'].split("/")
              - author_link_array.pop
              %td Author 
              %td= link_to template['author'], author_link_array.join("/") 
            %tr
              %td Demo
              %td= link_to "<i class='glyphicon glyphicon-new-window'></i>".html_safe, template['demo'], target: '_blank'
            %tr
              %td Select
              %td= radio_button_tag 'site[template]', template['title'], label: "Select"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statixite-1.0.2 app/views/statixite/sites/_templates.html.haml
statixite-1.0.1 app/views/statixite/sites/_templates.html.haml
statixite-1.0.0 app/views/statixite/sites/_templates.html.haml