change image with role page ships

main
Daniel Serdoura ago%!(EXTRA string=10 months)
parent fc2d56897d
commit 7fdf6c1b75
  1. 0
      assets/spaceships/COMMAND.png
  2. 3
      js/controllers/ships.js

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

@ -14,13 +14,14 @@ export default (temp_engine) => {
Ship.list((ships) => {
ships.forEach(ship => {
console.log(ship)
$(".block-ships").prepend(
`
<div class="ships-list" data-id="${ship.symbol}">
<h5>${ship.symbol}</h5>
<img
class="imgShip"
src="/assets/spaceships/b_spaceships.png"
src="/assets/spaceships/${ship.registration.role}.png"
alt="" />
<div class="buttonShip">
<button id="" class="reg btn-ships" data-symbol="${ship.symbol}">Name</button>

Loading…
Cancel
Save