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
5b9d2060
Commit
5b9d2060
authored
7 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Only show importend announcements on embed-pages (closes #325)
parent
d9b56d5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/base.html
+1
-1
1 addition, 1 deletion
templates/base.html
templates/embed.html
+1
-0
1 addition, 0 deletions
templates/embed.html
with
2 additions
and
1 deletion
templates/base.html
+
1
−
1
View file @
5b9d2060
{% set page_border = page_border|default(1) %}
{% set page_border = page_border|default(1) %}
{% set global_permissions = [] %}
{% set global_permissions = [] %}
{% set min_announcement_level = min_announcement_level|default(1) %}
{% set min_announcement_level = min_announcement_level|default(1) %}
{% set levels = {0: ('info', 'Nur auf Hauptseite sichtbar'), 1: ('info', '
Überall
sichtbar (Hinweis)'), 2: ('warning', '
Überall
sichtbar (Warnung)'), 3: ('danger', '
Überall
sichtbar (Wichtig)')} %}
{% set levels = {0: ('info', 'Nur auf Hauptseite sichtbar'), 1: ('info', '
Auf allen Unterseiten
sichtbar (Hinweis)'), 2: ('warning', '
Auf allen Unterseiten
sichtbar (Warnung)'), 3: ('danger', '
Auch auf Embed-Page
sichtbar (Wichtig)')} %}
{% from 'macros.html' import moderator_editor, moderator_checkbox, moderator_delete %}
{% from 'macros.html' import moderator_editor, moderator_checkbox, moderator_delete %}
<!DOCTYPE html>
<!DOCTYPE html>
...
...
This diff is collapsed.
Click to expand it.
templates/embed.html
+
1
−
0
View file @
5b9d2060
{% from 'macros.html' import player %}
{% from 'macros.html' import player %}
{% set page_border = 0 -%}
{% set page_border = 0 -%}
{% set min_announcement_level = 3 %}
{% extends "base.html" %}
{% extends "base.html" %}
{% block title %}- {{ course.title }}: {{ lecture.title}}{% endblock %}
{% block title %}- {{ course.title }}: {{ lecture.title}}{% 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