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
Roman Karwacik
website
Commits
abf8acd1
Commit
abf8acd1
authored
8 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Forgot to add feed templates
parent
a0c7fac9
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/feed.atom
+63
-0
63 additions, 0 deletions
templates/feed.atom
templates/feed_courses.atom
+37
-0
37 additions, 0 deletions
templates/feed_courses.atom
with
100 additions
and
0 deletions
templates/feed.atom
0 → 100644
+
63
−
0
View file @
abf8acd1
{% macro summary(entry) %}
{% if not course.handle %}
Veranstaltung: <a href="{{ url_for('course_id', id=entry.course_handle) }}">{{entry.course_title}}</a><br>
{% if entry.course_organizer %}
Veranstalter: {{ entry.course_organizer }}<br>
{% endif %}
{% endif %}
{% if entry.speaker %}
Gehalten von {{ entry.speaker }}<br>
{% endif %}
{{ entry.comment }}
{% endmacro %}
{% macro subtitle() %}
Veranstaltung: <a href="{{ url_for('course_id', id=course.handle) }}">{{course.title}}</a><br>
{% if course.organizer %}
Veranstalter: {{ course.organizer }}<br>
{% endif %}
<p>{{ course.description }}</p>
{% endmacro %}
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ course.atomid }}</id>
<title>{{ course.title }} — Video AG, FSMPI</title>
<author>
<name>Video AG, FSMPI, RWTH Aachen</name>
<email>video@fsmpi.rwth-aachen.de</email>
</author>
{% if not course.handle %}
<link rel="alternate" href="{{ url_for('course', _external=True) }}" />
{% else %}
<link rel="alternate" href="{{ url_for('course_id', id=course.handle, _external=True) }}" />
{% endif %}
<link rel="self" href="{{ request.url }}" />
<icon>{{ url_for('static', filename='favicon.png', _external=True) }}</icon>
<logo>https://videoag.fsmpi.rwth-aachen.de/site/video-logo-150px.png</logo>
<updated>{{ course.updated|rfc3339 }}</updated>
{% if not course.handle %}
<subtitle>Alle neuen Videos der Video AG!</subtitle>
{% else %}
<subtitle type="html">{{ subtitle()|e }}</subtitle>
{% endif %}
{% for entry in entries %}
<entry>
<title>{% if not course.handle %}{{ entry.course_short }} {% if entry.semester %}({{ entry.semester|semester }}){% endif %}, {% endif %}{{ entry.time|date }}: {{ entry.title }}</title>
{% if not course.handle and entry.course_organizer %}
<author>
<name>{{ entry.course_organizer }}</name>
</author>
{% endif %}
{% if entry.speaker %}
<author>
<name>{{ entry.speaker }}</name>
</author>
{% endif %}
<link rel="alternate" href="{{ url_for('play', id=entry.id, _external=True) }}"/>
<link rel="enclosure" href="{{ url_for('files', filename=entry.path, _external=True)}}" length="{{ entry.file_size }}"/>
<id>{{ entry.atomid }}</id>
<updated>{{ entry.updated|rfc3339 }}</updated>
<summary type="html">{{ summary(entry)|e }}</summary>
</entry>
{% endfor %}
</feed>
This diff is collapsed.
Click to expand it.
templates/feed_courses.atom
0 → 100644
+
37
−
0
View file @
abf8acd1
{% macro summary(course) %}
{% if course.organizer %}
Veranstalter: {{ course.organizer }}<br>
{% endif %}
<p>{{ course.description }}</p>
{% endmacro %}
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ atomid }}</id>
<updated>{{ updated|rfc3339 }}</updated>
<title>Neueste Veranstaltungen — Video AG, FSMPI</title>
<author>
<name>Video AG, FSMPI, RWTH Aachen</name>
<email>video@fsmpi.rwth-aachen.de</email>
</author>
<link rel="alternate" href="{{ url_for('course', _external=True) }}"/>
<link rel="self" href="{{ request.url }}"/>
<icon>{{ url_for('static', filename='favicon.png', _external=True) }}</icon>
<logo>https://videoag.fsmpi.rwth-aachen.de/site/video-logo-150px.png</logo>
<subtitle>Alle neuen Veranstaltungen der Video AG!</subtitle>
{% for course in courses %}
<entry>
<id>{{ course.atomid }}</id>
<updated>{{ course.updated|rfc3339 }}</updated>
<title>{{ course.title|e }} {% if course.semester %}({{ course.semester|semester|e }}){% endif %}</title>
{% if course.organizer %}
<author>
<name>{{ course.organizer|e }}</name>
</author>
{% endif %}
<link rel="alternate" href="{{ url_for('course_id', id=course.handle, _external=True) }}"/>
<link rel="alternate" href="{{ url_for('feed', handle=course.handle, _external=True) }}" type="application/atom+xml" title="Feed"/>
<summary type="html">{{ summary(course)|e }}</summary>
</entry>
{% endfor %}
</feed>
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