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
9f755537
Commit
9f755537
authored
1 year ago
by
Tomáš Valenta
Browse files
Options
Downloads
Patches
Plain Diff
2 contract grid, admin SSO login
parent
58d5c631
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#13360
passed
1 year ago
Stage: build
Stage: test_deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contracts/templates/contracts/includes/contract_list.html
+6
-6
6 additions, 6 deletions
contracts/templates/contracts/includes/contract_list.html
registry/templates/admin/login.html
+50
-0
50 additions, 0 deletions
registry/templates/admin/login.html
with
56 additions
and
6 deletions
contracts/templates/contracts/includes/contract_list.html
+
6
−
6
View file @
9f755537
<ul
class=
"
flex
-col gap-4 flex"
>
<ul
class=
"
grid grid
-col
s-2
gap-4 flex"
>
{% for contract in page %}
{% for contract in page %}
<li
class=
"card elevation-10{% if not contract.is_public %} bg-red-100{% endif %}"
>
<li
class=
"card elevation-10{% if not contract.is_public %} bg-red-100{% endif %}"
>
<div
class=
"card__body p-5"
>
<div
class=
"card__body p-5"
>
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</a>
</a>
<table
class=
"table-auto border-separate border-spacing-1.5"
>
<table
class=
"table-auto border-separate border-spacing-1.5"
>
<tbody>
<tbody>
<tr>
<tr
class=
"flex gap-2 justify-between items-center"
>
<td>
Typy:
</td>
<td>
Typy:
</td>
<td>
<td>
<ul
class=
"flex flex-wrap gap-1.5"
>
<ul
class=
"flex flex-wrap gap-1.5"
>
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</ul>
</ul>
</td>
</td>
</tr>
</tr>
<tr>
<tr
class=
"flex gap-2 justify-between items-center"
>
<td
class=
"pt-1.5"
>
Účinná od:
</td>
<td
class=
"pt-1.5"
>
Účinná od:
</td>
<td
class=
"pt-1.5"
>
<td
class=
"pt-1.5"
>
{% if contract.valid_start_date %}
{% if contract.valid_start_date %}
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
{% endif %}
{% endif %}
</td>
</td>
</tr>
</tr>
<tr>
<tr
class=
"flex gap-2 justify-between items-center"
>
<td
class=
"py-1.5"
>
Účinná do:
</td>
<td
class=
"py-1.5"
>
Účinná do:
</td>
<td
class=
"py-1.5"
>
<td
class=
"py-1.5"
>
{% if contract.valid_end_date %}
{% if contract.valid_end_date %}
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
{% endif %}
{% endif %}
</td>
</td>
</tr>
</tr>
<tr>
<tr
class=
"flex gap-2 justify-between items-center"
>
<td>
Platná:
</td>
<td>
Platná:
</td>
<td>
<td>
<i
<i
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
></i>
></i>
</td>
</td>
</tr>
</tr>
<tr>
<tr
class=
"flex gap-2 justify-between items-center"
>
<td>
Podpis s:
</td>
<td>
Podpis s:
</td>
<td>
<td>
<ul
class=
"flex flex-wrap gap-1.5"
>
<ul
class=
"flex flex-wrap gap-1.5"
>
...
...
This diff is collapsed.
Click to expand it.
registry/templates/admin/login.html
0 → 100644
+
50
−
0
View file @
9f755537
{% extends "admin/base_site.html" %}
{% load i18n static %}
{% block extrastyle %}{{ block.super }}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static "
admin
/
css
/
login.css
"
%}"
>
{{ form.media }}
{% endblock %}
{% block bodyclass %}{{ block.super }} login{% endblock %}
{% block usertools %}{% endblock %}
{% block nav-global %}{% endblock %}
{% block nav-sidebar %}{% endblock %}
{% block content_title %}{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %}
{% if form.errors and not form.non_field_errors %}
<p
class=
"errornote"
>
{% if form.errors.items|length == 1 %}{% translate "Please correct the error below." %}{% else %}{% translate "Please correct the errors below." %}{% endif %}
</p>
{% endif %}
{% if form.non_field_errors %}
{% for error in form.non_field_errors %}
<p
class=
"errornote"
>
{{ error }}
</p>
{% endfor %}
{% endif %}
<div
id=
"content-main"
>
{% if user.is_authenticated %}
<p
class=
"errornote"
style=
"font-weight: normal"
>
Jste přihlášeni jako "{{ username }}", ale nemáte dostatečná oprávnění.
</p>
{% endif %}
<p
style=
"text-align: center; padding-top: 10px;"
>
<a
class=
"button"
style=
"padding: 10px 15px;"
href=
"{% url 'oidc_authentication_init' %}?next={{ request.GET.next }}"
>
Přihlásit se Pirátskou identitou
</a>
</p>
</div>
{% endblock %}
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