Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
altlinux-packages-bot
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Unitsaev
altlinux-packages-bot
Commits
bc9c37a6
Verified
Commit
bc9c37a6
authored
Mar 10, 2026
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changelog: highlight package name and nick with code formatting
parent
e8bd667b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
changelog.py
src/handlers/changelog.py
+3
-2
No files found.
src/handlers/changelog.py
View file @
bc9c37a6
...
...
@@ -6,6 +6,7 @@ from altrepo.api.errors import DataNotFoundError, RequestValidationError
from
database.models
import
User
from
data.keyboards
import
changelog_keyboards
from
telegrinder.tools.formatting
import
HTMLFormatter
,
code_inline
from
services.utils
import
_bold
PER_PAGE
=
5
...
...
@@ -14,11 +15,11 @@ dp = Dispatch()
def
format_changelog_page
(
name
:
str
,
branch
:
str
,
changelog
,
offset
:
int
,
total
:
int
):
message
=
_bold
(
f
"Changelog: {name} ({branch})
\n\n
"
)
message
=
_bold
(
"Changelog: "
)
+
HTMLFormatter
(
code_inline
(
name
))
+
f
" ({branch})
\n\n
"
for
entry
in
changelog
:
date
=
entry
.
date
[:
10
]
message
+=
f
"{entry.evr} | {date} |
{entry.nick}
\n
"
message
+=
f
"{entry.evr} | {date} |
"
+
HTMLFormatter
(
code_inline
(
entry
.
nick
))
+
"
\n
"
message
+=
f
"{entry.message}
\n\n
"
message
+=
f
"Записи {offset + 1}–{offset + len(changelog)} из {total}"
...
...
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