|
2 | 2 | #infobox{:style => "border:black 1px solid;padding:10px;margin:10px;"} |
3 | 3 | Hello there! This is the website for Hackety Hack. You can ask a question, share programs that you've made, or just tell everyone something. Don't forget, you should <a href="http://hackety-hack.com/download">download Hackety Hack</a>, it will teach you everything you need to get started with programming! This is just a place to participate in the Hackety Hack community. |
4 | 4 | .span-18.last |
5 | | - #infobox{:style => "border:red 1px solid;padding:10px;margin:10px;"} |
6 | | - Check it out! The newest feature: You can visit a list of the most recent updated programs, and check out some really cool featured ones. I've added a <a href="/programs">programs page</a> to show them off! |
7 | | -.span-18.last |
8 | | - %ul#input_list |
9 | | - %li{:style => "display:inline"} |
10 | | - %a#question_button.button{:href => "#"} Ask a question |
11 | | - %li{:style => "display:inline"} |
12 | | - %a#link_button.button{:href => "#"} Share a link |
13 | | - %li{:style => "display:inline"} |
14 | | - %a#post_button.button{:href => "#"} Tell everyone something |
15 | | - %form#link_form{:action => "/content", :style => "display:none", :method => "POST"} |
16 | | - %label{:for => "link"} Share a link |
17 | | - %a.cancel{:href => "#"} x |
18 | | - %br/ |
19 | | - %input#link{ :name => "content[body]", :size => "76", :type => "textbox"}/ |
20 | | - %input{ :name => "content[type]", :type => "hidden", :value => "link"}/ |
21 | | - %br/ |
22 | | - %input.button{:type => "submit"} |
23 | | - %form#post_form{:action => "/content", :style => "display:none", :method => "POST"} |
24 | | - %label{:for => "post"} Tell everyone something |
25 | | - %a.cancel{:href => "#"} x |
26 | | - %br/ |
27 | | - %textarea#post{ :name => "content[body]" } |
28 | | - %input{ :name => "content[type]", :type => "hidden", :value => "post"}/ |
29 | | - %br/ |
30 | | - Comments are formatted via |
31 | | - %a{:href => "http://daringfireball.net/projects/markdown/syntax"} Markdown |
32 | | - %br/ |
33 | | - %input.button{:type => "submit"} |
34 | | - %form#question_form{:action => "/content", :style => "display:none", :method => "POST"} |
35 | | - %label{:for => "question"} Ask a question |
36 | | - %a.cancel{:href => "#"} x |
37 | | - %br/ |
38 | | - %textarea#question{:name => "content[body]"} |
39 | | - %input{ :name => "content[type]", :type => "hidden", :value => "question"}/ |
40 | | - %br/ |
41 | | - Comments are formatted via |
42 | | - %a{:href => "http://daringfireball.net/projects/markdown/syntax"} Markdown |
43 | | - %br/ |
44 | | - %input.button{:type => "submit"} |
| 5 | + - if logged_in? |
| 6 | + %ul#input_list |
| 7 | + %li{:style => "display:inline"} |
| 8 | + %a#question_button.button{:href => "#"} Ask a question |
| 9 | + %li{:style => "display:inline"} |
| 10 | + %a#link_button.button{:href => "#"} Share a link |
| 11 | + %li{:style => "display:inline"} |
| 12 | + %a#post_button.button{:href => "#"} Tell everyone something |
| 13 | + %form#link_form{:action => "/content", :style => "display:none", :method => "POST"} |
| 14 | + %label{:for => "link"} Share a link |
| 15 | + %a.cancel{:href => "#"} x |
| 16 | + %br/ |
| 17 | + %input#link{ :name => "content[body]", :size => "76", :type => "textbox"}/ |
| 18 | + %input{ :name => "content[type]", :type => "hidden", :value => "link"}/ |
| 19 | + %br/ |
| 20 | + %input.button{:type => "submit"} |
| 21 | + %form#post_form{:action => "/content", :style => "display:none", :method => "POST"} |
| 22 | + %label{:for => "post"} Tell everyone something |
| 23 | + %a.cancel{:href => "#"} x |
| 24 | + %br/ |
| 25 | + %textarea#post{ :name => "content[body]" } |
| 26 | + %input{ :name => "content[type]", :type => "hidden", :value => "post"}/ |
| 27 | + %br/ |
| 28 | + Comments are formatted via |
| 29 | + %a{:href => "http://daringfireball.net/projects/markdown/syntax"} Markdown |
| 30 | + %br/ |
| 31 | + %input.button{:type => "submit"} |
| 32 | + %form#question_form{:action => "/content", :style => "display:none", :method => "POST"} |
| 33 | + %label{:for => "question"} Ask a question |
| 34 | + %a.cancel{:href => "#"} x |
| 35 | + %br/ |
| 36 | + %textarea#question{:name => "content[body]"} |
| 37 | + %input{ :name => "content[type]", :type => "hidden", :value => "question"}/ |
| 38 | + %br/ |
| 39 | + Comments are formatted via |
| 40 | + %a{:href => "http://daringfireball.net/projects/markdown/syntax"} Markdown |
| 41 | + %br/ |
| 42 | + %input.button{:type => "submit"} |
| 43 | + - else |
| 44 | + %a{:href => "/login"} Please log in to post something. |
45 | 45 | .span-18 |
46 | 46 | %h2 Here's what everyone else is up to! |
47 | 47 | %ul{:style => "list-style:none"} |
|
0 commit comments