diff --git a/Gemfile b/Gemfile index 2d0bc78..32f5349 100644 --- a/Gemfile +++ b/Gemfile @@ -52,3 +52,8 @@ group :test do gem 'rspec-rails', '~> 6.0.2' gem 'shoulda-matchers', '~> 5.3.0' end + +gem "hamlit", "~> 3.0" +gem "hamlit-rails", "~> 0.2.3" + +gem "html2haml", "~> 2.3" diff --git a/Gemfile.lock b/Gemfile.lock index 300361b..9a7a8c0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -130,6 +130,7 @@ GEM dry-schema (>= 1.12, < 2) zeitwerk (~> 2.6) erubi (1.12.0) + erubis (2.7.0) factory_bot (6.2.1) activesupport (>= 5.0.0) factory_bot_rails (6.2.0) @@ -142,6 +143,24 @@ GEM ffaker (2.21.0) globalid (1.1.0) activesupport (>= 5.0) + haml (6.1.2) + temple (>= 0.8.2) + thor + tilt + hamlit (3.0.3) + temple (>= 0.8.2) + thor + tilt + hamlit-rails (0.2.3) + actionpack (>= 4.0.1) + activesupport (>= 4.0.1) + hamlit (>= 1.2.0) + railties (>= 4.0.1) + html2haml (2.3.0) + erubis (~> 2.7.0) + haml (>= 4.0) + nokogiri (>= 1.6.0) + ruby_parser (~> 3.5) i18n (1.14.1) concurrent-ruby (~> 1.0) interactor (3.1.2) @@ -296,6 +315,9 @@ GEM rubocop-factory_bot (~> 2.22) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) + ruby_parser (3.20.3) + sexp_processor (~> 4.16) + sexp_processor (4.17.0) shoulda-matchers (5.3.0) activesupport (>= 5.2.0) sprockets (4.2.0) @@ -308,7 +330,9 @@ GEM stringio (3.0.8) strong_migrations (1.6.1) activerecord (>= 5.2) + temple (0.10.2) thor (1.2.2) + tilt (2.2.0) timeout (0.4.0) traceroute (0.8.1) rails (>= 3.0.0) @@ -343,6 +367,9 @@ DEPENDENCIES factory_bot_rails (~> 6.2.0) faraday (~> 2.7.10) ffaker (~> 2.21.0) + hamlit (~> 3.0) + hamlit-rails (~> 0.2.3) + html2haml (~> 2.3) interactor-rails (~> 2.2.1) jbuilder (~> 2.11.5) jsbundling-rails (~> 1.1.2) diff --git a/app/views/api_wrapper/index.html.erb b/app/views/api_wrapper/index.html.erb deleted file mode 100644 index bf670ad..0000000 --- a/app/views/api_wrapper/index.html.erb +++ /dev/null @@ -1,66 +0,0 @@ -
Activity | -Type | -Participants | -Price | -Link | -
---|---|---|---|---|
<%= @activity["activity"] %> | -<%= @activity["type"] %> | -<%= @activity["participants"] %> | -<%= @activity["price"] %> | -<%= link_to @activity["link"], @activity["link"], target: "_blank" %> | -
Type | -Participants | -Price | -Date | -
---|---|---|---|
<%= activity.activity_type %> | -<%= activity.participants %> | -<%= activity.price %> | -<%= activity.created_at.strftime('%Y-%m-%d %H:%M:%S') %> | -
No activities found.
- <% end %> - - <%= link_to 'Back and find your activity', api_wrapper_path, class: 'btn btn-primary mt-2 mb-2' %> -