CSS
The CSS file that controls how your links look lives in slashlinks/public/stylesheets/frontend.css
Templates
The templates that determine how your links will be displayed are locaed in the SlashLinks program directory.
slashlinks/app/views/link
Here HTML, CSS, and some Ruby code determine how the data will be rendered when viewed by a web browser. There's plenty of room for reconfiguration and design here. The template basics are outlined below.
List Template (list.rhtml)
This template handles the display of the root link directory.
Tag Template (tag_list.rhtml)
This template handles the display of the tags/ directory.
Archive Template (archive_list.rhtml)
This template handles the display of the archive/ directory.
_links.rhtml partial template
All the pages that display individual links are rendered according to this template.
Template variables
Objects
link - individual link object that contains the info listed below
links - an array of link objects which is looped over for rendering each link
list, archive_list templates
link.time.month.name_of_month – month name
link.time.month – month number
link.time.year – year
link.time.day – number day of month
link.time.to_datetime.cwday.name_of_day – day of week name
link.href – link URL
link.description – link description
link.extended – link extended description
link.tag_array – array of link’s tags
tag_list template
tag.tag_name – a tag in the tag array
variables set by controllers
@tag_name (available when browsing by tag)
@date (available when browsing by date)



