Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync up with the downstream changes #35

Merged
merged 2 commits into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .haml-lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
inherits_from: .haml-lint_todo.yml

linters:
LineLength:
max: 120
Expand Down
14 changes: 14 additions & 0 deletions .haml-lint_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2024-06-23 11:39:09 +0000 using Haml-Lint version 0.53.0.
# The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of Haml-Lint, may require this file to be generated again.

linters:

# Offense count: 1
RuboCop:
exclude:
- "app/views/main/index.html.haml"
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

source 'https://rubygems.org'

ruby '3.2.3'

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem 'rails', '~> 7.1.3'

Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,5 @@ DEPENDENCIES
tzinfo-data
web-console

RUBY VERSION
ruby 3.2.2p53

BUNDLED WITH
2.4.10
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def range_display(from, to)
date += ' - '

date += if from.to_date == to.to_date
local_time(to, '%H:%M')
local_time(to, '%H:%M %Z')
else
local_time(to, :short)
local_time(to, '%d %b %H:%M %Z')
end

date
Expand Down
4 changes: 2 additions & 2 deletions app/views/events/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
.col-auto
%i.fas.fa-fw.fa-clock
.col
%div= local_time(@event.starts_at, :long)
%div= local_time(@event.ends_at, :long)
%div= local_time(@event.starts_at, '%B %d, %Y %H:%M %Z')
%div= local_time(@event.ends_at, '%B %d, %Y %H:%M %Z')
- if @event.schedule_recurrences.present?
.row.g-2.mb-2
.col-auto
Expand Down
4 changes: 2 additions & 2 deletions app/views/main/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
%ul
- tday_zero = index.beginning_of_day
- tmrw_zero = (index + 1.day).beginning_of_day
- @event_occurrences.where('starts_at >= ?', tday_zero).where('starts_at < ?', tmrw_zero).find_each do |e|
- @event_occurrences.where('starts_at >= ?', tday_zero).where('starts_at < ?', tmrw_zero).each do |e|
%li.p-0
- badge_cls = "badge text-bg-#{e.event.team.color} text-truncate w-100 text-decoration-none text-start"
= link_to(team_event_path(e.event.team, e.event),
class: badge_cls, title: e.event.name) do
= local_time(e.starts_at, :time)
%span.hidden-info
\-
= local_time(e.ends_at, :time)
= local_time(e.ends_at, '%H:%M %Z')
= e.event.name
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ en:
close: 'Close'
sign_up: 'Sign up'
sign_up_to: "Sign up to %{provider}"
sign_in_to: "Log in with %{provider}"
sign_in_with: "Log in with %{provider}"
or: 'or'
username: 'Username'
password: 'Password'
Expand Down
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
resources :users, only: %i[index update], param: :username

devise_for :users, controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }

devise_scope :user do
delete '/users/sign_out' => 'devise/sessions#destroy', as: :destroy_user_session
end
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html

# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
Expand Down
Loading