All these pieces were made between october and december, 2019
Date as MMDD
- 1127 REPORTAJE/LONG FORM: Los coletazos econòmicos de la crisis Reportaje
| /* Media Queries | |
| -------------------------------------------------------------- */ | |
| @media only screen and (min-width: 1930px) { | |
| } | |
| /* Smaller than standard 1200 */ | |
| @media only screen and (max-width: 1199px) { | |
| } | |
| /* Smaller than standard 980 */ |
| es: | |
| date: | |
| abbr_day_names: | |
| - dom | |
| - lun | |
| - mar | |
| - mié | |
| - jue | |
| - vie | |
| - sáb |
| .row.register-box | |
| .signup.col-md-12 | |
| .row | |
| .col-md-12 | |
| %h1 Sign up | |
| .row | |
| .col-md-12 | |
| %h4 | |
| Already have an account? | |
| =link_to 'Log in', new_user_session_path |
| class ServiceSchedule < ActiveRecord::Base | |
| belongs_to :service_activity, polymorphic: true | |
| end | |
| class AcademicService < ActiveRecord::Base | |
| has_many :service_schedules, as: :service_activity | |
| end | |
| class PartnerService < ActiveRecord::Base | |
| has_many :service_schedules, as: :service_activity |
| WEEK={"Lunes"=> 1,"Martes" => 2, "Miércoles" => 3, "Jueves" => 4, "Viernes" => 5} | |
| def repeating_events(day) | |
| start_date = self.start_time.to_date # your start | |
| end_date = self.end_time.to_date # your end | |
| my_days = [WEEK[day]] # day of the week in 0-6. Sunday is day-of-week 0; Saturday is day-of-week 6. | |
| return (start_date..end_date).to_a.select {|k| my_days.include?(k.wday)} | |
| end |