Skip to content

Commit

Permalink
Migrate to haml instead of erb
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Jan 26, 2024
1 parent e6d1b5c commit d65af78
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 10 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gem 'config'
gem 'countries'
gem 'database_cleaner'
gem 'faker'
gem 'haml-rails'
gem 'i18n_data'
gem 'keycloak-api-rails'
gem 'language_list'
Expand Down
12 changes: 12 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ GEM
ffi (1.16.3)
globalid (1.1.0)
activesupport (>= 5.0)
haml (6.3.0)
temple (>= 0.8.2)
thor
tilt
haml-rails (2.1.0)
actionpack (>= 5.1)
activesupport (>= 5.1)
haml (>= 4.0.6)
railties (>= 5.1)
http-accept (1.7.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
Expand Down Expand Up @@ -356,7 +365,9 @@ GEM
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
ssrf_filter (1.1.2)
temple (0.10.3)
thor (1.1.0)
tilt (2.3.0)
timeout (0.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -388,6 +399,7 @@ DEPENDENCIES
countries
database_cleaner
faker
haml-rails
i18n_data
keycloak-api-rails
language_list
Expand Down
3 changes: 0 additions & 3 deletions app/views/people/index.html.erb

This file was deleted.

3 changes: 3 additions & 0 deletions app/views/people/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- @people.each do |person|
%h1
= person.name
7 changes: 0 additions & 7 deletions app/views/people/show.html.erb

This file was deleted.

8 changes: 8 additions & 0 deletions app/views/people/show.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
%div
%h1
= @person.name
's Profile
%div
%h5
That person is from #{@person.location}
= link_to "Person bearbeiten", edit_person_path

0 comments on commit d65af78

Please sign in to comment.