mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Fix name of background job to calculate visits
This commit is contained in:
parent
1e3d9f358d
commit
7a100f7e2a
6 changed files with 67 additions and 46 deletions
|
|
@ -1 +1 @@
|
||||||
0.9.6
|
0.9.7
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
|
||||||
|
## [0.9.7] — 2024-07-27
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Name of backgroun job to calculate visits
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [0.9.6] — 2024-07-27
|
## [0.9.6] — 2024-07-27
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class VisitsController < ApplicationController
|
class VisitsController < ApplicationController
|
||||||
before_action
|
before_action :authenticate_user!
|
||||||
before_action :set_visit, only: %i[update]
|
before_action :set_visit, only: %i[update]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,6 @@ class AreaVisitsCalculatingJob < ApplicationJob
|
||||||
user = User.find(user_id)
|
user = User.find(user_id)
|
||||||
areas = user.areas
|
areas = user.areas
|
||||||
|
|
||||||
Visits::Areas::Calculate(user, areas).call
|
Areas::Visits::Create(user, areas).call
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="max-w-md">
|
<div class="max-w-md">
|
||||||
<h1 class="text-5xl font-bold">Hello there!</h1>
|
<h1 class="text-5xl font-bold">Hello there!</h1>
|
||||||
<p class="py-6">
|
<p class="py-6">
|
||||||
Here you'll find your imports, But now there are none. Let's <%= link_to 'create one', new_import_path, class: 'link' %>!
|
Here you'll find your imports, but now there are none. Let's <%= link_to 'create one', new_import_path, class: 'link' %>!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,18 @@
|
||||||
<h1 class="font-bold text-4xl">Visits</h1>
|
<h1 class="font-bold text-4xl">Visits</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% if @visits.empty? %>
|
||||||
|
<div class="hero min-h-80 bg-base-200">
|
||||||
|
<div class="hero-content text-center">
|
||||||
|
<div class="max-w-md">
|
||||||
|
<h1 class="text-5xl font-bold">Hello there!</h1>
|
||||||
|
<p class="py-6">
|
||||||
|
Here you'll find your visits, but now there are none. Create some areas on your map and pretty soon you'll see visit suggestions on this page!
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% else %>
|
||||||
<div class="flex justify-center my-5">
|
<div class="flex justify-center my-5">
|
||||||
<div class='flex'>
|
<div class='flex'>
|
||||||
<%= paginate @visits %>
|
<%= paginate @visits %>
|
||||||
|
|
@ -53,4 +65,5 @@
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue