Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bsa_miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nazarf
bsa_miner
Commits
599df6f1
Commit
599df6f1
authored
Mar 16, 2023
by
nazarf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add btn check activity
parent
ed46bdc2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
miners_controller.rb
app/controllers/miners_controller.rb
+8
-0
index.html.haml
app/views/miners/index.html.haml
+5
-1
routes.rb
config/routes.rb
+1
-0
No files found.
app/controllers/miners_controller.rb
View file @
599df6f1
...
...
@@ -70,6 +70,14 @@ class MinersController < AdminController
end
end
def
check_activity
`rake "miners:check_active_list"`
respond_to
do
|
format
|
format
.
html
{
redirect_to
miners_url
,
notice:
'Miners was update'
}
format
.
json
{
head
:no_content
}
end
end
private
# Use callbacks to share common setup or constraints between actions.
...
...
app/views/miners/index.html.haml
View file @
599df6f1
-
model_class
=
Miner
.page-header.refresh_pagination
=
link_to
"update miner from exel"
,
update_miner_from_exel_path
,
class:
'btn btn-default btn-xs'
%table
.table.table-striped.filtered_table
%thead
%tr
...
...
@@ -36,3 +35,8 @@
%i
.fa.fa-trash
=
link_to
t
(
'helpers.links.new'
),
new_miner_path
,
class:
'btn btn-primary'
%br
%br
%br
=
link_to
"update miner from exel"
,
update_miner_from_exel_path
,
class:
'btn btn-default btn-xs'
=
link_to
"check activity"
,
check_activity_path
,
class:
'btn btn-default btn-xs'
config/routes.rb
View file @
599df6f1
...
...
@@ -35,6 +35,7 @@ Rails.application.routes.draw do
get
'/miners_activity/:name'
,
to:
'front#miners_activity'
,
as:
'miners_activity'
get
'/update_miner_activity/:name'
,
to:
'front#update_miner_activity'
,
as:
'update_miner_activity'
get
'/update_miner_from_exel'
,
to:
'miners#update_miner_from_exel'
,
as:
'update_miner_from_exel'
get
'/check_activity'
,
to:
'miners#check_activity'
,
as:
'check_activity'
root
'front#index'
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment