Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
proto3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
protokollsystem
proto3
Merge requests
!10
Resolve "Protokolle Übersichtseite umbauen"
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Resolve "Protokolle Übersichtseite umbauen"
156-protokolle-ubersichtseite-umbauen
into
master
Overview
2
Commits
8
Pipelines
0
Changes
4
Merged
Marco Nuechel
requested to merge
156-protokolle-ubersichtseite-umbauen
into
master
7 years ago
Overview
2
Commits
8
Pipelines
0
Changes
4
Expand
Closes
#156 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
29f9b254
8 commits,
7 years ago
4 files
+
67
−
29
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
models/database.py
+
18
−
0
Options
@@ -236,6 +236,24 @@ class Protocol(DatabaseModel):
@@ -236,6 +236,24 @@ class Protocol(DatabaseModel):
def
is_done
(
self
):
def
is_done
(
self
):
return
self
.
done
return
self
.
done
def
get_state_glyph
(
self
):
if
self
.
is_done
():
state
=
"
unchecked
"
#"Fertig"
if
self
.
public
:
state
=
"
check
"
#"Veröffentlicht"
else
:
state
=
"
pencil
"
#"Geplant"
return
state
def
get_state_name
(
self
):
if
self
.
is_done
():
state
=
"
Fertig
"
if
self
.
public
:
state
=
"
Veröffentlicht
"
else
:
state
=
"
Geplant
"
return
state
def
get_identifier
(
self
):
def
get_identifier
(
self
):
if
self
.
pad_identifier
is
not
None
:
if
self
.
pad_identifier
is
not
None
:
return
self
.
pad_identifier
return
self
.
pad_identifier
Loading