
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
= CalendarHelper
{}[http://travis-ci.org/topfunky/calendar_helper]
== DESCRIPTION:
A simple helper for creating an HTML calendar. The "calendar" method will be automatically available to your Rails view templates, or can be used with Sinatra or other webapps.
Some example stylesheets are provided via the Rails asset pipeline. Add to your main stylesheet with one of the following:
/* *= require 'calendar_styles/grey'
== SYNOPSIS:
calendar(:year => 2005, :month => 6)
calendar({:year => 2005, :month => 6, :table_class => "calendar_helper"})
calendar(:year => 2005, :month => 5) do |d| # This generates a simple calendar, but gives special days if listOfSpecialDays.include?(d) # (days that are in the array listOfSpecialDays) one CSS class, [d.mday, {:class => "specialDay"}] # "specialDay", and gives the rest of the days another CSS class, else # "normalDay". You can also use this highlight today differently [d.mday, {:class => "normalDay"}] # from the rest of the days, etc. end end
If using with ERb (Rails), put in a printing tag.
<%= calendar(:year => @year, :month => @month, :first_day_of_week => 1) do |d| render_calendar_cell(d) end %>
With Haml, use a helper to set options for each cell.
= calendar(:year => @year, :month => @month, :first_day_of_week => 1) do |d| - render_calendar_cell(d)
In Sinatra, include the CalendarHelper module in your helpers:
helpers do include CalendarHelper end
== Accessibility & 508 Compliance:
== AUTHORS:
Jeremy Voorhis -- http://jvoorhis.com Original implementation
Geoffrey Grosenbach -- http://nubyonrails.com Test suite and conversion to a Rails plugin
== Contributors:
== USAGE:
See the RDoc (or use "rake rdoc").
To copy the CSS files, use
./script/generate calendar_styles
CSS will be copied to subdirectories of public/stylesheets/calendar.
FAQs
Unknown package
We found that calendar_helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.