|
1 | | -.span-9 |
2 | | - %a{:href => "/"} |
3 | | - %img{:height => "64", :src => "/images/logo.png", :style => "float:left"}/ |
4 | | - %p.body{:style => "padding-top:20px;padding-left:80px"} Hackety Hack |
5 | | -- if logged_in? |
6 | | - .span-6.prepend-3.last |
7 | | - %ul |
8 | | - %li{:style => "display:inline"} |
9 | | - %a{:href => "/download"} Download |
10 | | - | |
11 | | - %li{:style => "display:inline"} |
12 | | - %a{:href => "/hackers/#{current_user.username.to_slug}"} My Page |
13 | | - | |
14 | | - %li{:style => "display:inline"} |
15 | | - %a{:href => "/logout"} Log out |
16 | | -- else |
17 | | - .span-4.prepend-5.last |
18 | | - %ul |
19 | | - %li{:style => "display:inline"} |
20 | | - %a{:href => "/download"} Download |
21 | | - | |
22 | | - %li{:style => "display:inline"} |
23 | | - %a{:href => "/login"} Log in |
24 | | -.span-18.last |
25 | | - %h1 A new program |
26 | | - %form{:action => "/programs", :method => "POST"} |
27 | | - %label{:for => "program_title"} Title |
28 | | - %br/ |
29 | | - %input{:type => "text", :id => "program_title", :name => "program[title]"} |
30 | | - %br/ |
31 | | - %label{:for => "program_body"} Body |
32 | | - %br/ |
33 | | - %textarea{:id => "program_body", :name => "program[code]"} |
34 | | - %br/ |
35 | | - %input{:type => "submit", :value => "Create", :class => "button"} |
36 | | - |
| 1 | +%h1 A new program |
| 2 | +%form{:action => "/programs", :method => "POST"} |
| 3 | + %label{:for => "program_title"} Title |
| 4 | + %br/ |
| 5 | + %input{:type => "text", :id => "program_title", :name => "program[title]"} |
37 | 6 | %br/ |
| 7 | + %label{:for => "program_body"} Body |
38 | 8 | %br/ |
| 9 | + %textarea{:id => "program_body", :name => "program[code]"} |
| 10 | + %br/ |
| 11 | + %input{:type => "submit", :value => "Create", :class => "button"} |
| 12 | + |
| 13 | +%br/ |
| 14 | +%br/ |
0 commit comments