From 830da9c9007d7e4cd89dd2f405bc539f67114e23 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 16 Mar 2024 00:28:49 +0100 Subject: [PATCH] Resize map --- Makefile | 2 +- app/controllers/points_controller.rb | 2 +- app/views/points/index.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8e005264..b0885ec2 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,6 @@ production_migrate: ssh dokku_frey 'dokku run dawarich bundle exec rails db:migrate' build_and_push: - docker build . -t dawarich --platform=linux/amd64 --no-cache + docker build . -t dawarich --platform=linux/amd64 docker tag dawarich registry.chibi.rodeo/dawarich docker push registry.chibi.rodeo/dawarich diff --git a/app/controllers/points_controller.rb b/app/controllers/points_controller.rb index c473f5f5..c89ff14b 100644 --- a/app/controllers/points_controller.rb +++ b/app/controllers/points_controller.rb @@ -2,7 +2,7 @@ class PointsController < ApplicationController before_action :authenticate_user! def index - @points = current_user.points + @points = Point.all @coordinates = @points.as_json(only: [:latitude, :longitude]) end diff --git a/app/views/points/index.html.erb b/app/views/points/index.html.erb index 160d4cbd..61e8136c 100644 --- a/app/views/points/index.html.erb +++ b/app/views/points/index.html.erb @@ -1,3 +1,3 @@ -<%= js_map(@coordinates, style: "mapbox://styles/mapbox/outdoors-v12", trail: true) %> +<%= js_map(@coordinates, style: "mapbox://styles/mapbox/outdoors-v12", trail: true, width: '100%', height: '800px') %> <%#= render 'points/table', points: @points %>