Commit 545e7168 authored by Tobias Kallauke's avatar Tobias Kallauke
Browse files

Use asset pipeline for images

parent 1e830793
......@@ -24,10 +24,6 @@ import "custom/info.js";
import "bootstrap/scss/bootstrap.scss";
import "styles/application.scss";
const images = require.context('../../assets/images', true)
const imagePath = (name) => images(name, true)
$(() => {
......
......@@ -18,9 +18,9 @@
</div>
<div class="col-10">
<%= image_pack_tag("media/tutorial/0.png", class: "imageTutorial",id:"imageTutorial0") %>
<%= image_tag("tutorial/0.png", class: "imageTutorial",id:"imageTutorial0") %>
<% (1..13).each do |i| %>
<%= image_pack_tag("media/tutorial/#{i}.png", class: "imageTutorial d-none",id:"imageTutorial#{i}") %>
<%= image_tag("tutorial/#{i}.png", class: "imageTutorial d-none",id:"imageTutorial#{i}") %>
<% end %>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment