mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Resize map
This commit is contained in:
parent
e2095bae9c
commit
830da9c900
3 changed files with 3 additions and 3 deletions
2
Makefile
2
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue