source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/event/with_open_api.rb | Ruby | mit | 48 | main | 1,340 | module Communication::Website::Agenda::Event::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Agenda::Event",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :string, null... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/event/with_kinds.rb | Ruby | mit | 48 | main | 3,382 | module Communication::Website::Agenda::Event::WithKinds
extend ActiveSupport::Concern
included do
MAX_DURATION = 1.year
KIND_SIMPLE = 'simple'
KIND_RECURRING = 'recurring'
KIND_PARENT = 'parent'
validate :no_child_before?, if: :kind_parent?
validate :no_child_after?, if: :kind_parent?
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/event/time_slot/with_open_api.rb | Ruby | mit | 48 | main | 957 | module Communication::Website::Agenda::Event::TimeSlot::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Agenda::Event::TimeSlot",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: {... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/event/time_slot/localization.rb | Ruby | mit | 48 | main | 3,650 | # == Schema Information
#
# Table name: communication_website_agenda_event_time_slot_localizations
#
# id :uuid not null, primary key
# add_to_calendar_urls :jsonb
# deleted_at :datetime
# migration_identifier :string
# place :string
# slu... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/event/time_slot/localization/with_open_api.rb | Ruby | mit | 48 | main | 982 | module Communication::Website::Agenda::Event::TimeSlot::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Agenda::Event::TimeSlot::Localization",
properties: {
id: { type: :string, format: :uuid },
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/event/localization/with_open_api.rb | Ruby | mit | 48 | main | 2,099 | module Communication::Website::Agenda::Event::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Agenda::Event::Localization",
properties: {
id: { type: :string, format: :uuid },
migration_ident... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/exhibition/with_open_api.rb | Ruby | mit | 48 | main | 1,006 | module Communication::Website::Agenda::Exhibition::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Agenda::Exhibition",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :st... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/exhibition/localization.rb | Ruby | mit | 48 | main | 4,380 | # == Schema Information
#
# Table name: communication_website_agenda_exhibition_localizations
#
# id :uuid not null, primary key
# add_to_calendar_urls :jsonb
# deleted_at :datetime
# featured_image_alt :string
# featured_image_credit :text
# header_cta... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/exhibition/localization/with_open_api.rb | Ruby | mit | 48 | main | 1,773 | module Communication::Website::Agenda::Exhibition::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Agenda::Exhibition::Localization",
properties: {
id: { type: :string, format: :uuid },
migra... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/agenda/exhibition/localization/with_cal.rb | Ruby | mit | 48 | main | 1,356 | module Communication::Website::Agenda::Exhibition::Localization::WithCal
extend ActiveSupport::Concern
included do
before_save :set_add_to_calendar_urls
end
def cal
@cal ||= AddToCalendar::URLs.new(
start_datetime: cal_from_time,
end_datetime: cal_to_time,
timezone: time_zone,
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/alert/localization.rb | Ruby | mit | 48 | main | 3,238 | # == Schema Information
#
# Table name: communication_website_alert_localizations
#
# id :uuid not null, primary key
# cta :boolean default(FALSE)
# cta_label :string
# cta_url :string
# deleted_at :dateti... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/category.rb | Ruby | mit | 48 | main | 2,652 | # == Schema Information
#
# Table name: communication_website_portfolio_categories
#
# id :uuid not null, primary key
# bodyclass :string
# is_programs_root :boolean default(FALSE)
# is_taxonomy :boolean default(FALSE)
# migrat... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/project.rb | Ruby | mit | 48 | main | 3,652 | # == Schema Information
#
# Table name: communication_website_portfolio_projects
#
# id :uuid not null, primary key
# bodyclass :string
# deleted_at :datetime
# full_width :boolean default(TRUE)
# migration_identifier :string... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/category/with_open_api.rb | Ruby | mit | 48 | main | 994 | module Communication::Website::Portfolio::Category::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Portfolio::Category",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/category/localization.rb | Ruby | mit | 48 | main | 2,653 | # == Schema Information
#
# Table name: communication_website_portfolio_category_localizations
#
# id :uuid not null, primary key
# breadcrumb_title :string
# featured_image_alt :text
# featured_image_credit :text
# header_cta :boolean defau... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/category/localization/with_open_api.rb | Ruby | mit | 48 | main | 1,578 | module Communication::Website::Portfolio::Category::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Portfolio::Category::Localization",
properties: {
id: { type: :string, format: :uuid },
mig... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/project/with_open_api.rb | Ruby | mit | 48 | main | 1,025 | module Communication::Website::Portfolio::Project::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Portfolio::Project",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :st... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/project/localization.rb | Ruby | mit | 48 | main | 3,269 | # == Schema Information
#
# Table name: communication_website_portfolio_project_localizations
#
# id :uuid not null, primary key
# deleted_at :datetime
# featured_image_alt :string
# featured_image_credit :text
# header_cta :boolean de... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/portfolio/project/localization/with_open_api.rb | Ruby | mit | 48 | main | 1,688 | module Communication::Website::Portfolio::Project::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Portfolio::Project::Localization",
properties: {
id: { type: :string, format: :uuid },
migra... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/journal.rb | Ruby | mit | 48 | main | 1,468 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/category.rb | Ruby | mit | 48 | main | 1,872 | # Ce modèle concerne les catégories de posts, qui n'ont pas de namespace
# Il pourrait y avoir un namespace, par exemple Blog.
# Si c'était le cas, le modèle devrait être nommé :
# Communication::Website::Permalink::Blog::Category
# Et il faudrait migrer en conséquence
# == Schema Information
#
# Table name: communicat... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/page.rb | Ruby | mit | 48 | main | 1,228 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/laboratory.rb | Ruby | mit | 48 | main | 1,474 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/organization.rb | Ruby | mit | 48 | main | 1,389 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/with_mapping.rb | Ruby | mit | 48 | main | 4,518 | module Communication::Website::Permalink::WithMapping
extend ActiveSupport::Concern
included do
MAPPING = {
"Administration::Location::Localization" => Communication::Website::Permalink::Location,
"Communication::Website::Agenda::Event::Day" => Communication::Website::Permalink::Agenda::Event::Day,... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/person.rb | Ruby | mit | 48 | main | 1,358 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/volume.rb | Ruby | mit | 48 | main | 1,521 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/author.rb | Ruby | mit | 48 | main | 1,570 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/teacher.rb | Ruby | mit | 48 | main | 1,444 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/academic_year.rb | Ruby | mit | 48 | main | 1,465 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/diploma.rb | Ruby | mit | 48 | main | 1,383 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/with_open_api.rb | Ruby | mit | 48 | main | 318 | module Communication::Website::Permalink::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Permalink",
properties: {
id: { type: :string, format: :uuid },
path: { type: :string }
}
}
end
end |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/paper.rb | Ruby | mit | 48 | main | 1,616 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/location.rb | Ruby | mit | 48 | main | 1,395 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/cohort.rb | Ruby | mit | 48 | main | 1,540 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/with_validations.rb | Ruby | mit | 48 | main | 1,449 | module Communication::Website::Permalink::WithValidations
extend ActiveSupport::Concern
included do
before_validation :set_university, on: :create
# Jamais de permalink sans path, quoi qu'il en soit
validates :path, presence: true
# Seule la home peut utiliser /
validate :root_path_is_reserved... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/researcher.rb | Ruby | mit | 48 | main | 1,433 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/program.rb | Ruby | mit | 48 | main | 1,460 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/post.rb | Ruby | mit | 48 | main | 1,718 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/publication.rb | Ruby | mit | 48 | main | 1,509 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/school.rb | Ruby | mit | 48 | main | 1,452 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/administrator.rb | Ruby | mit | 48 | main | 1,464 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/person/category.rb | Ruby | mit | 48 | main | 1,498 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/jobboard/category.rb | Ruby | mit | 48 | main | 1,496 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/jobboard/job.rb | Ruby | mit | 48 | main | 1,493 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/program/category.rb | Ruby | mit | 48 | main | 1,504 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/event.rb | Ruby | mit | 48 | main | 2,161 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/category.rb | Ruby | mit | 48 | main | 1,490 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/exhibition.rb | Ruby | mit | 48 | main | 1,748 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/event/time_slot.rb | Ruby | mit | 48 | main | 1,986 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/event/day.rb | Ruby | mit | 48 | main | 1,513 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/period/month.rb | Ruby | mit | 48 | main | 1,442 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/agenda/period/year.rb | Ruby | mit | 48 | main | 1,404 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/organization/category.rb | Ruby | mit | 48 | main | 1,529 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/portfolio/project.rb | Ruby | mit | 48 | main | 1,516 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/portfolio/category.rb | Ruby | mit | 48 | main | 1,502 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/permalink/page/category.rb | Ruby | mit | 48 | main | 1,408 | # == Schema Information
#
# Table name: communication_website_permalinks
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# is_current :boolean default(TRUE)
# path :string
# target_url :string
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/research_publication.rb | Ruby | mit | 48 | main | 571 | class Communication::Website::Page::ResearchPublication < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.connected_publications.any?
end
def editable_width?
false
end
def full_width_by_default?
true
end
def dependencies
super +... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/research_paper.rb | Ruby | mit | 48 | main | 383 | class Communication::Website::Page::ResearchPaper < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:papers)
end
def dependencies
super +
[website.config_default_languages] +
website.research_papers
e... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/education_academic_year.rb | Ruby | mit | 48 | main | 445 | class Communication::Website::Page::EducationAcademicYear < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_alumni
end
def dependencies
super +
[websi... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/category.rb | Ruby | mit | 48 | main | 2,592 | # == Schema Information
#
# Table name: communication_website_page_categories
#
# id :uuid not null, primary key
# bodyclass :string
# is_programs_root :boolean default(FALSE)
# is_taxonomy :boolean default(FALSE)
# migration_i... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_jobboard.rb | Ruby | mit | 48 | main | 552 | class Communication::Website::Page::CommunicationJobboard < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_jobboard
end
def dependencies
super +
[web... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_agenda_exhibition_archive.rb | Ruby | mit | 48 | main | 713 | class Communication::Website::Page::CommunicationAgendaExhibitionArchive < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_agenda
end
# Not listed in any menu... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/researcher.rb | Ruby | mit | 48 | main | 816 | class Communication::Website::Page::Researcher < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:researchers)
end
def dependencies
super +
[website.config_default_languages] +
dependencies_researchers
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/home.rb | Ruby | mit | 48 | main | 286 | class Communication::Website::Page::Home < Communication::Website::Page
def full_width_by_default?
true
end
def draftable?
false
end
def git_path_relative
'_index.html'
end
def default_parent
nil
end
def hugo_body_class
'page__home'
end
end |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_agenda_exhibition.rb | Ruby | mit | 48 | main | 577 | class Communication::Website::Page::CommunicationAgendaExhibition < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_agenda
end
def dependencies
super +
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_portfolio.rb | Ruby | mit | 48 | main | 567 | class Communication::Website::Page::CommunicationPortfolio < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_portfolio
end
def dependencies
super +
[w... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/with_automatic_menus.rb | Ruby | mit | 48 | main | 325 | module Communication::Website::Page::WithAutomaticMenus
extend ActiveSupport::Concern
included do
after_save :generate_automatic_menus
after_restore :generate_automatic_menus
end
protected
def generate_automatic_menus
website.generate_automatic_menus_for_identifier(default_menu_identifier)
en... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_agenda_archive.rb | Ruby | mit | 48 | main | 679 | class Communication::Website::Page::CommunicationAgendaArchive < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_agenda
end
# Not listed in any menu because i... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/research_laboratory.rb | Ruby | mit | 48 | main | 406 | class Communication::Website::Page::ResearchLaboratory < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:laboratories)
end
def dependencies
super +
[website.config_default_languages] +
website.research... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/localization.rb | Ruby | mit | 48 | main | 5,236 | # == Schema Information
#
# Table name: communication_website_page_localizations
#
# id :uuid not null, primary key
# breadcrumb_title :string
# deleted_at :datetime
# featured_image_alt :string
# featured_image_credit :text
# header_cta ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/sitemap.rb | Ruby | mit | 48 | main | 326 | class Communication::Website::Page::Sitemap < Communication::Website::Page
def editable_width?
false
end
def full_width
false
end
def show_toc?
true
end
def is_listed_among_children?
false
end
def static_layout
'sitemap'
end
def default_menu_identifier
'legal'
end... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/research_journal.rb | Ruby | mit | 48 | main | 508 | class Communication::Website::Page::ResearchJournal < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:journals)
end
def editable_width?
false
end
def full_width_by_default?
true
end
def full_widt... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/with_special_page.rb | Ruby | mit | 48 | main | 3,991 | module Communication::Website::Page::WithSpecialPage
extend ActiveSupport::Concern
included do
# Types are listed in the order we want them to be created
TYPES = [
# Home always first
Communication::Website::Page::Home,
# Global objects
Communication::Website::Page::CommunicationPo... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/education_program.rb | Ruby | mit | 48 | main | 621 | class Communication::Website::Page::EducationProgram < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.has_education_programs?
end
def editable_width?
false
end
def full_width_by_default?
true
end
def full_width
true
end
de... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/author.rb | Ruby | mit | 48 | main | 689 | class Communication::Website::Page::Author < Communication::Website::Page
def is_hugo_index?
true
end
def dependencies
super +
[website.config_default_languages] +
dependencies_authors
end
# Not listed in any menu because it makes "Équipe" unclickable (opens submenu)
def default_menu_iden... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/person.rb | Ruby | mit | 48 | main | 1,099 | class Communication::Website::Page::Person < Communication::Website::Page
def is_hugo_index?
true
end
def dependencies
super +
[website.config_default_languages] +
explicitly_connected_people
end
# https://developers.osuny.org/docs/admin/sites-web/dependencies/iteration-9/
def references
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/accessibility.rb | Ruby | mit | 48 | main | 4,804 | class Communication::Website::Page::Accessibility < Communication::Website::Page
def is_listed_among_children?
false
end
def default_menu_identifier
'legal'
end
TEMPLATE_BLOCKS = [
{
title: 'Déclaration d\'accessibilité',
template_kind: :title
},
{
template_kind: :file... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/administrator.rb | Ruby | mit | 48 | main | 837 | class Communication::Website::Page::Administrator < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:administrators)
end
def dependencies
super +
[website.config_default_languages] +
dependencies_admini... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/privacy_policy.rb | Ruby | mit | 48 | main | 1,312 | class Communication::Website::Page::PrivacyPolicy < Communication::Website::Page
def is_listed_among_children?
false
end
def default_menu_identifier
'legal'
end
TEMPLATE_BLOCKS = [
{
title: 'Mesure d\'audience',
template_kind: :title
},
{
template_kind: :chapter,
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_post.rb | Ruby | mit | 48 | main | 574 | class Communication::Website::Page::CommunicationPost < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_posts
end
def dependencies
super +
[website.co... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/organization.rb | Ruby | mit | 48 | main | 1,116 | class Communication::Website::Page::Organization < Communication::Website::Page
def is_hugo_index?
true
end
def dependencies
super +
[website.config_default_languages] +
explicitly_connected_organizations
end
# https://developers.osuny.org/docs/admin/sites-web/dependencies/iteration-9/
de... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/with_open_api.rb | Ruby | mit | 48 | main | 1,165 | module Communication::Website::Page::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Page",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :string, nullable: true },
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/communication_agenda.rb | Ruby | mit | 48 | main | 552 | class Communication::Website::Page::CommunicationAgenda < Communication::Website::Page
def is_hugo_index?
true
end
def editable_width?
false
end
def full_width_by_default?
true
end
def should_create_special_page?
website.feature_agenda
end
def dependencies
super +
[website... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/teacher.rb | Ruby | mit | 48 | main | 795 | class Communication::Website::Page::Teacher < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:teachers)
end
# Not listed in any menu because it makes "Équipe" unclickable (opens submenu)
def default_menu_identif... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/legal_term.rb | Ruby | mit | 48 | main | 924 | class Communication::Website::Page::LegalTerm < Communication::Website::Page
def is_listed_among_children?
false
end
def default_menu_identifier
'legal'
end
TEMPLATE_BLOCKS = [
{
title: 'Direction de publication',
template_kind: :title
},
{
template_kind: :contact,
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/education_diploma.rb | Ruby | mit | 48 | main | 541 | class Communication::Website::Page::EducationDiploma < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.has_education_diplomas?
end
def editable_width?
false
end
def full_width_by_default?
true
end
def full_width
true
end
de... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/research_volume.rb | Ruby | mit | 48 | main | 387 | class Communication::Website::Page::ResearchVolume < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:volumes)
end
def dependencies
super +
[website.config_default_languages] +
website.research_volumes
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/education_school.rb | Ruby | mit | 48 | main | 535 | class Communication::Website::Page::EducationSchool < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.has_education_schools?
end
def editable_width?
false
end
def full_width_by_default?
true
end
def full_width
true
end
def ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/administration_location.rb | Ruby | mit | 48 | main | 594 | class Communication::Website::Page::AdministrationLocation < Communication::Website::Page
def is_hugo_index?
true
end
def should_create_special_page?
website.about && website.about&.respond_to?(:administration_locations)
end
def editable_width?
false
end
def full_width_by_default?
true... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/category/with_open_api.rb | Ruby | mit | 48 | main | 924 | module Communication::Website::Page::Category::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Page::Category",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :string, nu... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/category/localization.rb | Ruby | mit | 48 | main | 2,645 | # == Schema Information
#
# Table name: communication_website_page_category_localizations
#
# id :uuid not null, primary key
# breadcrumb_title :string
# featured_image_alt :text
# featured_image_credit :text
# header_cta :boolean default(FA... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/category/localization/with_open_api.rb | Ruby | mit | 48 | main | 1,568 | module Communication::Website::Page::Category::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Page::Category::Localization",
properties: {
id: { type: :string, format: :uuid },
migration_ide... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/page/localization/with_open_api.rb | Ruby | mit | 48 | main | 1,826 | module Communication::Website::Page::Localization::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Website::Page::Localization",
properties: {
id: { type: :string, format: :uuid },
migration_identifier: { type: :st... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/menu/with_automatism.rb | Ruby | mit | 48 | main | 1,313 | module Communication::Website::Menu::WithAutomatism
extend ActiveSupport::Concern
included do
scope :automatic, -> { where(automatic: true) }
end
def generate_automatically
Communication::Website::Menu::GenerateJob.perform_later(self)
end
def generate_automatically_safely
transaction do
... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/website/menu/item.rb | Ruby | mit | 48 | main | 5,900 | # == Schema Information
#
# Table name: communication_website_menu_items
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# html_class :string
# kind :integer default("blank")
# position :intege... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/media/context.rb | Ruby | mit | 48 | main | 1,537 | # == Schema Information
#
# Table name: communication_media_contexts
#
# id :uuid not null, primary key
# about_type :string indexed => [about_id]
# created_at :datetime not null
# updated_at :datetime not null
# about_id... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/media/collection.rb | Ruby | mit | 48 | main | 719 | # == Schema Information
#
# Table name: communication_media_collections
#
# id :uuid not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# university_id :uuid not null, indexed
#
# Indexes
#
# index_communication_media_colle... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/media/category.rb | Ruby | mit | 48 | main | 961 | # == Schema Information
#
# Table name: communication_media_categories
#
# id :uuid not null, primary key
# bodyclass :string
# is_taxonomy :boolean default(FALSE)
# position :integer not null
# position_in_tree :integer
# created_at :datetime ... |
github | osunyorg/admin | https://github.com/osunyorg/admin | app/models/communication/media/with_open_api.rb | Ruby | mit | 48 | main | 1,475 | module Communication::Media::WithOpenApi
extend ActiveSupport::Concern
included do
OPENAPI_SCHEMA = {
type: :object,
title: "Communication::Media",
properties: {
id: { type: :string, format: :uuid, nullable: true },
origin: { type: :string, enum: Communication::Media.origins.k... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.