Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20
Commits
747a878c
Commit
747a878c
authored
4 years ago
by
me5na7qbjqbrp
Browse files
Options
Downloads
Patches
Plain Diff
Do not hover table when not clickable
parent
c612e159
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!104
Beta
,
!98
Morefront
,
!91
Documents
Pipeline
#8433
passed with stages
in 3 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/member/tables.py
+1
-1
1 addition, 1 deletion
apps/member/tables.py
apps/note/tables.py
+3
-5
3 additions, 5 deletions
apps/note/tables.py
with
4 additions
and
6 deletions
apps/member/tables.py
+
1
−
1
View file @
747a878c
...
@@ -128,7 +128,7 @@ class MembershipTable(tables.Table):
...
@@ -128,7 +128,7 @@ class MembershipTable(tables.Table):
class
Meta
:
class
Meta
:
attrs
=
{
attrs
=
{
'
class
'
:
'
table table-condensed table-striped
table-hover
'
,
'
class
'
:
'
table table-condensed table-striped
'
,
'
style
'
:
'
table-layout: fixed;
'
'
style
'
:
'
table-layout: fixed;
'
}
}
template_name
=
'
django_tables2/bootstrap4.html
'
template_name
=
'
django_tables2/bootstrap4.html
'
...
...
This diff is collapsed.
Click to expand it.
apps/note/tables.py
+
3
−
5
View file @
747a878c
...
@@ -19,8 +19,7 @@ from .templatetags.pretty_money import pretty_money
...
@@ -19,8 +19,7 @@ from .templatetags.pretty_money import pretty_money
class
HistoryTable
(
tables
.
Table
):
class
HistoryTable
(
tables
.
Table
):
class
Meta
:
class
Meta
:
attrs
=
{
attrs
=
{
'
class
'
:
'
class
'
:
'
table table-condensed table-striped
'
'
table table-condensed table-striped table-hover
'
}
}
model
=
Transaction
model
=
Transaction
exclude
=
(
"
id
"
,
"
polymorphic_ctype
"
,
"
invalidity_reason
"
,
"
source_alias
"
,
"
destination_alias
"
,)
exclude
=
(
"
id
"
,
"
polymorphic_ctype
"
,
"
invalidity_reason
"
,
"
source_alias
"
,
"
destination_alias
"
,)
...
@@ -123,7 +122,7 @@ DELETE_TEMPLATE = """
...
@@ -123,7 +122,7 @@ DELETE_TEMPLATE = """
class
AliasTable
(
tables
.
Table
):
class
AliasTable
(
tables
.
Table
):
class
Meta
:
class
Meta
:
attrs
=
{
attrs
=
{
'
class
'
:
'
table table condensed table-striped
table-hover
'
,
'
class
'
:
'
table table condensed table-striped
'
,
'
id
'
:
"
alias_table
"
'
id
'
:
"
alias_table
"
}
}
model
=
Alias
model
=
Alias
...
@@ -142,8 +141,7 @@ class AliasTable(tables.Table):
...
@@ -142,8 +141,7 @@ class AliasTable(tables.Table):
class
ButtonTable
(
tables
.
Table
):
class
ButtonTable
(
tables
.
Table
):
class
Meta
:
class
Meta
:
attrs
=
{
attrs
=
{
'
class
'
:
'
class
'
:
'
table table-bordered condensed
'
'
table table-bordered condensed table-hover
'
}
}
row_attrs
=
{
row_attrs
=
{
'
class
'
:
lambda
record
:
'
table-row
'
+
(
'
table-success
'
if
record
.
display
else
'
table-danger
'
),
'
class
'
:
lambda
record
:
'
table-row
'
+
(
'
table-success
'
if
record
.
display
else
'
table-danger
'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment