Display asciicast example on homepage
parent
97fe0cb3ff
commit
81b06178fd
@ -0,0 +1,9 @@
|
||||
// Place all the styles related to the home controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
.hero-unit {
|
||||
.asciicast {
|
||||
margin-top: 40px;
|
||||
}
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
class HomeController < ApplicationController
|
||||
def show
|
||||
@asciicasts = Asciicast.order("created_at DESC").limit(10)
|
||||
@asciicast = @asciicasts.first
|
||||
end
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
<ul class="nav">
|
||||
<li><%= link_to "About", "#" %></li>
|
||||
<li><%= link_to "Use it!", installation_path %></li>
|
||||
<li><%= link_to "Browse", browse_path %></li>
|
||||
<li><%= link_to "Record", installation_path %></li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue