|
Revision 36541, 1.3 kB
(checked in by hsbt, 3 years ago)
|
|
delete executable.
|
| Line | |
|---|
| 1 | # |
|---|
| 2 | # rubykaigi2008.rb: make badge of RubyKaigi2008. |
|---|
| 3 | # |
|---|
| 4 | # usage: <%= rubykaigi2008 'role' %> |
|---|
| 5 | # role: attendee (default), speaker, sponsor, staff |
|---|
| 6 | # |
|---|
| 7 | # Copyright (C) TADA Tadashi <sho@spc.gr.jp> |
|---|
| 8 | # Distributed under GPL. |
|---|
| 9 | # |
|---|
| 10 | |
|---|
| 11 | def rubykaigi2008( role = 'attendee' ) |
|---|
| 12 | img = case role |
|---|
| 13 | when 'speaker' |
|---|
| 14 | 1 |
|---|
| 15 | when 'sponsor' |
|---|
| 16 | 2 |
|---|
| 17 | when 'staff' |
|---|
| 18 | 3 |
|---|
| 19 | else |
|---|
| 20 | role = 'attendee' |
|---|
| 21 | 0 |
|---|
| 22 | end |
|---|
| 23 | %Q|<div style="text-align: center; margin-top: 0.5em; margin-bottom: 0.5em;"><a href="http://jp.rubyist.net/RubyKaigi2008/"><img src="http://rubykaigi.tdiary.net/images/20080617_#{img}.png" width="160" height="79" alt="RubyKaigi2008#{h role.capitalize}" style="border-width: 0px;"></a></div>| |
|---|
| 24 | end |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | def rubykaigi2009( role = 'attendee' ) |
|---|
| 28 | %Q|<div style="text-align: center; margin-top: 0.5em; margin-bottom: 0.5em;"><a href="http://rubykaigi.org/2009/"><img src="http://rubykaigi.org/images/goodies/badges/#{role}.gif" width="160" height="160" alt="RubyKaigi2009#{h role.capitalize}" style="border-width: 0px;"></a></div>| |
|---|
| 29 | end |
|---|
| 30 | |
|---|
| 31 | def sappororubykaigi02( role = 'attendee' ) |
|---|
| 32 | %Q|<div style="text-align: center; margin-top: 0.5em; margin-bottom: 0.5em;"><a href="http://regional.rubykaigi.org/sapporo02/"><img src="http://ruby-sapporo.org/sappororubykaigi02/#{role}.gif" width="160" height="90" alt="SapporoRubyKaigi02#{h role.capitalize}" style="border-width: 0px;"></a></div>| |
|---|
| 33 | end |
|---|