Merge branch 'master' into chennesFixAreaTypo

This commit is contained in:
Stella Rouzi 2025-11-13 13:39:09 +02:00 committed by GitHub
commit 3f6938d0ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 27 additions and 27 deletions

View file

@ -94,7 +94,7 @@ module Admin
elsif user.add_role @role.name, role_resource
flash[:notice] = "Successfully added role #{@role.name} to user #{user.email}"
else
flash[:error] = "Coud not add role #{@role.name} to #{user.email}"
flash[:error] = "Could not add role #{@role.name} to #{user.email}"
end
respond_to do |format|

View file

@ -59,7 +59,7 @@ module Admin
return unless @conference.sponsorship_levels.empty?
redirect_to admin_conference_sponsorship_levels_path(conference_id: @conference.short_title),
alert: 'You need to create atleast one sponsorship level to add a sponsor'
alert: 'You need to create at least one sponsorship level to add a sponsor'
end
end
end

View file

@ -45,7 +45,7 @@ module Admin
end
elsif @version.event == 'create' && @version.item
# if @version represets a create event and is not currently deleted
# if @version represents a create event and is not currently deleted
@version.item.destroy
flash[:notice] = 'The selected change was successfully reverted'

View file

@ -39,7 +39,7 @@ class SchedulesController < ApplicationController
@current_day = @conference.current_conference_day
@day = @current_day.present? ? @current_day : @dates.first
if @current_day
# the schedule takes you to the current time if it is beetween the start and the end time.
# the schedule takes you to the current time if it is between the start and the end time.
@hour_column = @conference.hours_from_start_time(@conf_start, @conference.end_hour)
end
# Ids of the @event_schedules of confrmed self_organized tracks along with the selected_schedule_id

View file

@ -17,7 +17,7 @@ module DateTimeHelper
##
# Gets a datetime object
# ====Returns
# * +String+ -> formated datetime object
# * +String+ -> formatted datetime object
def format_datetime(obj)
return unless obj

View file

@ -422,7 +422,7 @@ class Conference < ApplicationRecord
##
# Returns a hash with affiliation =>
# {value: count of registration whose user has that affilation, color: color}
# {value: count of registration whose user has that affiliation, color: color}
# In case that the affiliation is blank, it groups them in None and
# if the number of persons that have an affiliation are less than the 2% of
# the total number of registered people, they are grouped in others.
@ -696,7 +696,7 @@ class Conference < ApplicationRecord
end
# Returns the number of hours since the conference start hour (9) to the
# current hour, in case that the current hour is beetween the start and the
# current hour, in case that the current hour is between the start and the
# end hour (20). Otherwise, returns 0
def hours_from_start_time(start_hour, end_hour)
current_time = Time.find_zone(timezone).now
@ -744,7 +744,7 @@ class Conference < ApplicationRecord
'#' + next_color_component(:r, i) + next_color_component(:g, i) + next_color_component(:b, i)
end
# Auxiliar function which is used in next_color and returns each component of
# Auxiliary function which is used in next_color and returns each component of
# the color. We make use of big prime numbers to avoid repetition and to make
# consecutive colors clearly different.
def next_color_component(component, i)
@ -787,7 +787,7 @@ class Conference < ApplicationRecord
##
# Checks if start hour of the conference is greater or equal than the end hour
# and that both hours are beetween 0 and 24
# and that both hours are between 0 and 24
#
# Reports an error when such a condition is found
def valid_times_range?
@ -922,7 +922,7 @@ class Conference < ApplicationRecord
#
# ====Returns
# * +True+ -> One difficulty level or more
# * +False+ -> No diffculty level
# * +False+ -> No difficulty level
def difficulty_levels_set?
program.difficulty_levels.any?
end
@ -932,7 +932,7 @@ class Conference < ApplicationRecord
#
# ====Returns
# * +True+ -> One difficulty level or more
# * +False+ -> No diffculty level
# * +False+ -> No difficulty level
def event_types_set?
program.event_types.any?
end

View file

@ -94,7 +94,7 @@ class Event < ApplicationRecord
}.freeze
##
# Checkes if the event has a start_time and a room for the selected schedule if there is any
# Checks if the event has a start_time and a room for the selected schedule if there is any
# ====Returns
# * +true+ or +false+
def scheduled?

View file

@ -133,7 +133,7 @@ class Program < ApplicationRecord
end
##
# Checcks if the program has rating enabled
# Checks if the program has rating enabled
#
# ====Returns
# * +false+ -> If rating is not enabled

View file

@ -13,7 +13,7 @@ class Ticket < ApplicationRecord
scope :for_registration, -> { where(registration_ticket: true) }
# This validation is for the sake of simplicity.
# If we would allow different currencies per conference we also have to handle convertions between currencies!
# If we would allow different currencies per conference we also have to handle conversions between currencies!
validate :tickets_of_conference_have_same_currency
validates :price_cents, :price_currency, :title, presence: true

View file

@ -111,7 +111,7 @@ class User < ApplicationRecord
}.freeze
##
# Checkes if the user attended the event
# Checks if the user attended the event
# This is used for events that require registration
# The user must have registered to attend the event
# Gets an event

View file

@ -1,5 +1,5 @@
%p
Setup the time frame in which people can registrer to your conference
Setup the time frame in which people can register to your conference
= form_for(@registration_period, url: admin_conference_registration_period_path(@conference.short_title)) do |f|
.form-group
= f.label :start_date

View file

@ -2,7 +2,7 @@
.col-md-12
.page-header
%h1
Edit Tack
Edit Track
= @track.name
.row
.col-md-12

View file

@ -18,7 +18,7 @@
%abbr{title: 'This field is required'} *
= f.text_field :submitter_relationship, rows: 5, required: true, class: 'form-control'
%span.help-block
e.g. employee, comunity manager, etc
e.g. employee, community manager, etc
.form-group
= f.label :website_url, 'Website URL'
%abbr{title: 'This field is required'} *

View file

@ -42,7 +42,7 @@
}
});
// hide the right and left controls when neccesary after moving the carousel
// hide the right and left controls when necessary after moving the carousel
$('.carousel').on('slid.bs.carousel', '',
function(){
$(this).children('.left.carousel-control').show();

View file

@ -43,7 +43,7 @@
});
});
// hide the right and left controls when neccesary after moving the carousel
// hide the right and left controls when necessary after moving the carousel
$('.carousel').on('slid.bs.carousel', '',
function(){
$(this).children('.left.carousel-control').show();

View file

@ -12,7 +12,7 @@
%th Updated Attribute
%th{ class: "#{'hidden' if version.event == 'create'}" }
Prevous Value
Previous Value
%th{ class: "#{'hidden' if version.event == 'destroy'}" }
New Value