Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
caf0498f
Commit
caf0498f
authored
4 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
CellLink: Přidán html_suffix pro zobrazování `*` flagů
parent
cfd9e1eb
Branches
Branches containing commit
No related tags found
1 merge request
!82
Označení neaktivovaných účtů -- vytvoření user_html_flags
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/table.py
+4
-2
4 additions, 2 deletions
mo/web/table.py
with
4 additions
and
2 deletions
mo/web/table.py
+
4
−
2
View file @
caf0498f
...
...
@@ -55,17 +55,19 @@ class Row:
class
CellLink
(
Cell
):
url
:
str
hint
:
Optional
[
str
]
html_suffix
:
Markup
def
__init__
(
self
,
text
:
str
,
url
:
str
,
hint
:
Optional
[
str
]
=
None
):
def
__init__
(
self
,
text
:
str
,
url
:
str
,
hint
:
Optional
[
str
]
=
None
,
html_suffix
:
Markup
=
Markup
(
""
)
):
Cell
.
__init__
(
self
,
text
)
self
.
url
=
url
self
.
hint
=
hint
self
.
html_suffix
=
html_suffix
def
to_html
(
self
)
->
str
:
a
=
'
<td><a href=
"'
+
escape
(
self
.
url
)
+
'"'
if
self
.
hint
:
a
+=
'
title=
"'
+
escape
(
self
.
hint
)
+
'"'
return
a
+
'
>
'
+
escape
(
self
.
text
)
+
'
</a>
'
return
a
+
'
>
'
+
escape
(
self
.
text
)
+
'
</a>
'
+
str
(
self
.
html_suffix
)
class
CellCheckbox
(
Cell
):
...
...
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