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
92a19d99
Commit
92a19d99
authored
2 years ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
merging local changes
parent
c230a766
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
contracts/models.py
+8
-0
8 additions, 0 deletions
contracts/models.py
contracts/views.py
+2
-0
2 additions, 0 deletions
contracts/views.py
shared/templates/shared/includes/base.html
+1
-1
1 addition, 1 deletion
shared/templates/shared/includes/base.html
with
11 additions
and
1 deletion
contracts/models.py
+
8
−
0
View file @
92a19d99
...
...
@@ -432,6 +432,14 @@ class Contract(models.Model):
help_text
=
"
Obsah není veřejně přístupný.
"
,
)
# WARNING: Dependent on the type!
expected_cost_year
=
models
.
IntegerField
(
blank
=
True
,
null
=
True
,
verbose_name
=
"
Očekávané výdaje (rok)
"
,
)
class
Meta
:
verbose_name
=
"
Smlouva
"
verbose_name_plural
=
"
Smlouvy
"
...
...
This diff is collapsed.
Click to expand it.
contracts/views.py
+
2
−
0
View file @
92a19d99
...
...
@@ -15,6 +15,8 @@ def index(request):
request
.
GET
.
get
(
'
page
'
)
)
print
(
request
.
user
)
return
render
(
request
,
"
contracts/index.html
"
,
...
...
This diff is collapsed.
Click to expand it.
shared/templates/shared/includes/base.html
+
1
−
1
View file @
92a19d99
...
...
@@ -87,7 +87,7 @@
</div>
<div
v-if=
"show || isLgScreenSize"
class=
"navbar__actions navbar__section navbar__section--expandable container-padding--zero lg:container-padding--auto self-start flex flex-col sm:flex-row lg:flex-col sm:space-x-4 space-y-2 sm:space-y-0 lg:space-y-2 xl:flex-row xl:space-x-2 xl:space-y-0"
>
{% if user %}
{% if user
and not user.is_anonymous
%}
<div
class=
"flex items-center space-x-4"
>
<span
class=
"head-heavy-2xs"
>
{{ user.get_username }}
</span>
<div
class=
"avatar avatar--2xs"
>
...
...
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