Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Public contract registry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
TO
Public contract registry
Commits
041368a6
Commit
041368a6
authored
1 year ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
add result count
parent
f7fed4ec
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#13505
passed
1 year ago
Stage: build
Stage: test_deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
contracts/templates/contracts/search.html
+5
-1
5 additions, 1 deletion
contracts/templates/contracts/search.html
contracts/templatetags/add.py
+3
-0
3 additions, 0 deletions
contracts/templatetags/add.py
contracts/views.py
+0
-2
0 additions, 2 deletions
contracts/views.py
with
8 additions
and
3 deletions
contracts/templates/contracts/search.html
+
5
−
1
View file @
041368a6
...
@@ -2,7 +2,11 @@
...
@@ -2,7 +2,11 @@
{% load add %}
{% load add %}
{% block content %}
{% block content %}
{% include "contracts/includes/double_heading.html" with icon="ico--search" heading="Vyhledávání" %}
{% if any_query_is_set %}
{% include "contracts/includes/double_heading.html" with icon="ico--search" heading="Vyhledávání" subheading=page|length|add:" výsledků" %}
{% else %}
{% include "contracts/includes/double_heading.html" with icon="ico--search" heading="Vyhledávání" %}
{% endif %}
<form
method=
"get"
class=
"mb-10"
>
<form
method=
"get"
class=
"mb-10"
>
<div
class=
"flex flex-col gap-2"
>
<div
class=
"flex flex-col gap-2"
>
...
...
This diff is collapsed.
Click to expand it.
contracts/templatetags/add.py
+
3
−
0
View file @
041368a6
...
@@ -5,4 +5,7 @@ register = template.Library()
...
@@ -5,4 +5,7 @@ register = template.Library()
@register.filter
@register.filter
def
add
(
value
,
arg
):
def
add
(
value
,
arg
):
if
isinstance
(
arg
,
str
):
value
=
str
(
value
)
return
value
+
arg
return
value
+
arg
This diff is collapsed.
Click to expand it.
contracts/views.py
+
0
−
2
View file @
041368a6
...
@@ -243,8 +243,6 @@ def search(request):
...
@@ -243,8 +243,6 @@ def search(request):
annotations
,
annotations
,
)
)
print
(
filter
)
return
render
(
return
render
(
request
,
request
,
"
contracts/search.html
"
,
"
contracts/search.html
"
,
...
...
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