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.0.56 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.55 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.54 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.53 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.52 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.51 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.50 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.49 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.48 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.47 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.46 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.45 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.44 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.43 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.42 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.41 lib/ruby_app/elements/calendars/base/base_month.html.haml
RubyApp-0.0.30 lib/ruby_app/elements/calendars/base/base_month.html.haml