Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Jannik Hellenkamp
website
Commits
9b87d1ff
Commit
9b87d1ff
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Change psa publish button to reflect the current psa state
parent
8abdc85b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/base.html
+11
-1
11 additions, 1 deletion
templates/base.html
with
11 additions
and
1 deletion
templates/base.html
+
11
−
1
View file @
9b87d1ff
...
@@ -109,7 +109,17 @@
...
@@ -109,7 +109,17 @@
<li>
{{ valueeditor(('announcements',msg.id,'text'), msg.text|safe) }}
</li>
<li>
{{ valueeditor(('announcements',msg.id,'text'), msg.text|safe) }}
</li>
{% if ismod() %}
{% if ismod() %}
<li
class=
"pull-right"
>
{{ valuedeletebtn(('announcements',msg.id,'deleted')) }}
</li>
<li
class=
"pull-right"
>
{{ valuedeletebtn(('announcements',msg.id,'deleted')) }}
</li>
<li
class=
"pull-right"
style=
"padding-right: 5px;"
><a
href=
"{{ url_for('edit', ref=request.url) }}&announcements.{{ msg.id }}.visible=1"
class=
"btn btn-primary {% if msg.visible %}disabled{% endif %}"
>
Veröffentlichen
</a></li>
<li
class=
"pull-right"
style=
"padding-right: 5px;"
>
{% if not msg.visible %}
<a
href=
"{{ url_for('edit', ref=request.url) }}&announcements.{{ msg.id }}.visible=1"
class=
"btn btn-primary"
>
Veröffentlichen
</a>
{% elif msg.time_expire and msg.time_expire
<
datetime.now
()
%}
<
a
href=
"#"
class=
"btn btn-danger disabled"
>
Abgelaufen
</a>
{% elif msg.time_publish and msg.time_publish > datetime.now() %}
<a
href=
"#"
class=
"btn btn-default disabled"
>
Geplant
</a>
{% else %}
<a
href=
"#"
class=
"btn btn-success disabled"
>
Öffentlich
</a>
{% endif %}
</li>
<li
class=
"dropdown pull-right"
style=
"padding-right: 5px;"
>
<li
class=
"dropdown pull-right"
style=
"padding-right: 5px;"
>
<span
class=
"btn btn-default dropdown-toggle"
type=
"button"
data-toggle=
"dropdown"
>
{{levels.get(msg.level, ('', 'Unbekannt'))[1]}}
<span
class=
"caret"
></span></span>
<span
class=
"btn btn-default dropdown-toggle"
type=
"button"
data-toggle=
"dropdown"
>
{{levels.get(msg.level, ('', 'Unbekannt'))[1]}}
<span
class=
"caret"
></span></span>
<ul
class=
"dropdown-menu"
>
<ul
class=
"dropdown-menu"
>
...
...
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