Of course, you need a CSS style sheet for the home page, as shown in Listing 10-5.
Listing 10-5. Home Page CSS Style Sheet (public/stylesheets/apachetracker.css)
body { font-family: franklin gothic book,
helvetica,
verdana,
sans-serif;
padding-left:1em;
}
h1, h2 { font-family: franklin gothic heavy,
arial black, sans-serif;
font-weight: normal; }
h3 { font-family: franklin gothic medium;
font-weight: normal; }
a:visited { color:black }
a:hover { text-decoration: none; }
a { }
h3 { padding-left:2em;}
form {
padding-left: 4em;
}
#flash_notice, #flash_error {
padding:1em; margin:1em;
border: 3px dashed #cecece;
}
CHAPTER 10 n CALCULATING COSTS BY ANALYZING APACHE WEB LOGS 199
Save this as public/stylesheets/apachetracker.css.
Next, let??™s take a look at the views. The first is the main home page view from which
the various actions can be accessed, shown in Listing 10-6.
Listing 10-6. Home Page RHTML View (app/views/home/index.html.erb)
Apache Log Analyzer
Would you like to...