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
733c2bc4
Commit
733c2bc4
authored
Mar 16, 2023
by
nazarf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work out on table
parent
3176e044
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
16 deletions
+85
-16
_form.html.haml
app/views/miners/_form.html.haml
+27
-12
index.html.haml
app/views/miners/index.html.haml
+5
-1
show.html.haml
app/views/miners/show.html.haml
+53
-3
No files found.
app/views/miners/_form.html.haml
View file @
733c2bc4
=
simple_form_for
@miner
,
:html
=>
{
:class
=>
'form-horizontal'
}
do
|
f
|
=
simple_form_for
@miner
,
:html
=>
{
:class
=>
'form-horizontal'
}
do
|
f
|
=
f
.
input
:name
.row
=
f
.
input
:status
.col-sm-2
=
f
.
input
:ip_address
=
f
.
input
:name
=
f
.
input
:port
.col-sm-2
=
f
.
input
:wallet_address
=
f
.
input
:status
=
f
.
input
:pass
.row
=
f
.
input
:algorithm
.col-sm-2
=
f
.
input
:ip_address_2
=
f
.
input
:ip_address
=
f
.
input
:port_2
.col-sm-2
=
f
.
input
:wallet_address_2
=
f
.
input
:port
=
f
.
input
:pass_2
.col-sm-2
=
f
.
input
:algorithm_2
=
f
.
input
:wallet_address
.col-sm-2
=
f
.
input
:pass
.col-sm-2
=
f
.
input
:algorithm
.row
.col-sm-2
=
f
.
input
:ip_address_2
.col-sm-2
=
f
.
input
:port_2
.col-sm-2
=
f
.
input
:wallet_address_2
.col-sm-2
=
f
.
input
:pass_2
.col-sm-2
=
f
.
input
:algorithm_2
=
f
.
button
:submit
,
:class
=>
'btn-primary'
=
f
.
button
:submit
,
:class
=>
'btn-primary'
...
...
app/views/miners/index.html.haml
View file @
733c2bc4
...
@@ -7,10 +7,12 @@
...
@@ -7,10 +7,12 @@
%th
=
model_class
.
human_attribute_name
(
:status
)
%th
=
model_class
.
human_attribute_name
(
:status
)
%th
=
model_class
.
human_attribute_name
(
:ip_address
)
%th
=
model_class
.
human_attribute_name
(
:ip_address
)
%th
=
model_class
.
human_attribute_name
(
:port
)
%th
=
model_class
.
human_attribute_name
(
:port
)
%th
=
model_class
.
human_attribute_name
(
:ip_address_2
)
%th
=
model_class
.
human_attribute_name
(
:port_2
)
%th
=
model_class
.
human_attribute_name
(
:hash_rate
)
%th
=
model_class
.
human_attribute_name
(
:hash_rate
)
%th
=
model_class
.
human_attribute_name
(
:last_activity
)
%th
=
model_class
.
human_attribute_name
(
:last_activity
)
%th
=
t
'helpers.actions'
%th
=
t
'helpers.actions'
=
tabular_filter
.
row_helper
[
'name'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
]
do
=
tabular_filter
.
row_helper
[
'name'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
,
'-'
]
do
-
link_to
'?'
,
class:
'btn btn-default btn-xs'
do
-
link_to
'?'
,
class:
'btn btn-default btn-xs'
do
%i
.fa.fa-close
%i
.fa.fa-close
%tbody
%tbody
...
@@ -20,6 +22,8 @@
...
@@ -20,6 +22,8 @@
%td
=
miner
.
status
%td
=
miner
.
status
%td
=
miner
.
ip_address
%td
=
miner
.
ip_address
%td
=
miner
.
port
%td
=
miner
.
port
%td
=
miner
.
ip_address_2
%td
=
miner
.
port_2
%td
=
miner
.
hash_rate
%td
=
miner
.
hash_rate
%td
=
miner
.
last_activity
%td
=
miner
.
last_activity
%td
.actions
%td
.actions
...
...
app/views/miners/show.html.haml
View file @
733c2bc4
...
@@ -2,10 +2,60 @@
...
@@ -2,10 +2,60 @@
.page-header
.page-header
%h1
=
model_class
.
model_name
.
human
.
titleize
%h1
=
model_class
.
model_name
.
human
.
titleize
%p
.row
%strong
=
model_class
.
human_attribute_name
(
:email
)
+
':'
.col-sm-2
=
@miner
.
name
%p
%strong
=
model_class
.
human_attribute_name
(
:name
)
+
':'
=
@miner
.
name
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:status
)
+
':'
=
@miner
.
status
.row
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:ip_address
)
+
':'
=
@miner
.
ip_address
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:port
)
+
':'
=
@miner
.
port
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:wallet_address
)
+
':'
=
@miner
.
wallet_address
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:pass
)
+
':'
=
@miner
.
pass
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:algorithm
)
+
':'
=
@miner
.
algorithm
.row
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:ip_address_2
)
+
':'
=
@miner
.
ip_address_2
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:port_2
)
+
':'
=
@miner
.
port_2
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:wallet_address_2
)
+
':'
=
@miner
.
wallet_address_2
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:pass_2
)
+
':'
=
@miner
.
pass_2
.col-sm-2
%p
%strong
=
model_class
.
human_attribute_name
(
:algorithm_2
)
+
':'
=
@miner
.
algorithm_2
%br
%br
=
link_to
t
(
'.back'
,
:default
=>
t
(
"helpers.links.back"
)),
miners_path
,
:class
=>
'btn btn-default'
=
link_to
t
(
'.back'
,
:default
=>
t
(
"helpers.links.back"
)),
miners_path
,
:class
=>
'btn btn-default'
=
link_to
t
(
'.edit'
,
:default
=>
t
(
"helpers.links.edit"
)),
edit_miner_path
(
@miner
),
:class
=>
'btn btn-default'
=
link_to
t
(
'.edit'
,
:default
=>
t
(
"helpers.links.edit"
)),
edit_miner_path
(
@miner
),
:class
=>
'btn btn-default'
...
...
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