Sha256: 49280575df0db6a6d742f2e614d1eb23dfbaa4e7c148e2cdf199544111b79a42

Contents?: true

Size: 1.3 KB

Versions: 57

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 == self.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

57 entries across 57 versions & 1 rubygems

Version Path
RubyApp-0.2.7 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.6 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.5 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.4 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.3 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.2 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.1 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.2.0 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.91 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.90 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.89 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.88 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.87 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.86 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.85 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.84 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.83 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.82 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.81 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.80 lib/ruby_app/elements/calendars/base/base_month.html.haml