Sha256: 0dc33139e81c961ac377b0c5c4bf3b092140dda68f995432ce74a76de253637e

Contents?: true

Size: 1.3 KB

Versions: 24

Compression:

Stored size: 1.3 KB

Contents

/ 
  #{__FILE__}
%div.month{attributes}
  %table
    %thead
      %tr
        %td.left
          %a.previous{:href => ''}
            = RubyApp::Language.locale.strftime(self.display << 1, '%b')
        %td.center{:colspan => 5}
          = RubyApp::Language.locale.strftime(self.display, '%B %Y')
        %td.right
          %a.next{:href => ''}
            = RubyApp::Language.locale.strftime(self.display >> 1, '%b')
      - sunday = self.display_first_date
      %tr
        - (0..6).each do |index|
          - date = sunday + index
          %td= RubyApp::Language.locale.strftime(date, '%a')
    %tbody
      - month = self.display.month
      - sunday = self.display_first_date
      - while sunday < self.display_last_date
        %tr
          - (0..6).each do |index|
            - date = sunday + index
            - if date.month == month
              - if date == self.value
                %td.current
                  = date.day
              - elsif date == Date.today
                %td.today
                  %a.day{:href => '', :date => date.strftime}
                    = date.day
              - else
                %td.day
                  %a.day{:href => '', :date => date.strftime}
                    = date.day
            - else
              %td.none
                = date.day
        - sunday += 7

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
RubyApp-0.0.29 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.28 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.27 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.26 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.25 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.24 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.23 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.22 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.21 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.20 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.19 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.18 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.17 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.16 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.15 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.14 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.13 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.12 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.11 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.10 lib/ruby_app/elements/calendars/base/base_month.html.haml