Skip to content

Commit

Permalink
removes frauentag social (#1388)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyranja <[email protected]>
  • Loading branch information
tyranja and Tyranja authored Aug 19, 2024
1 parent 4ecb46a commit ac7076a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,12 @@ class PagesController < ApplicationController
def home
# we take the seven newest profiles and keep one as an empty example
@newest_profiles = last_seven_profiles

select_special_medicine_profiles

@profiles_count = Profile.is_published.count
@tags_count = ActsAsTaggableOn::Tag.count
@categories = Category.sorted_categories
@features = features_and_profiles unless current_region
end

def frauentag_2023
select_special_medicine_profiles
end

def render_footer?
true
end
Expand Down Expand Up @@ -44,14 +37,4 @@ def last_seven_profiles
.main_topic_translated_in(I18n.locale)
.last 7
end

def select_special_medicine_profiles
selected_profile_ids = [9380, 6507, 5290, 4421, 9495, 4943, 4533]
@special_profiles = Profile
.with_attached_image
.includes(:translations)
.is_published
.where(id: selected_profile_ids)
.order(updated_at: :desc)
end
end
1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
get 'code_of_conduct' => 'pages#code_of_conduct'
get 'about_vorarlberg' => 'pages#about_vorarlberg'
get 'about_ooe' => 'pages#about_ooe'
get 'frauentag2023' => 'pages#frauentag_2023'

get '/', to: 'pages#home'

Expand Down

0 comments on commit ac7076a

Please sign in to comment.