Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jannik Hellenkamp
website
Commits
a83d4165
Commit
a83d4165
authored
Jan 03, 2018
by
Julian Rother
Browse files
Renamed rss feeds and made them the default feed on course pages
parent
901e77ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
feeds.py
View file @
a83d4165
...
...
@@ -40,7 +40,7 @@ def feed(handle=None):
course
[
'updated'
]
=
updated
return
Response
(
render_template
(
'feed.atom'
,
course
=
course
,
entries
=
entries
),
200
,
{
'Content-Type'
:
'application/atom+xml'
})
@
app
.
route
(
'/<handle>/rss
feed
'
)
@
app
.
route
(
'/<handle>/rss'
)
def
rss_feed
(
handle
):
course
=
query
(
'SELECT * FROM courses WHERE handle = ? AND visible'
,
handle
)[
0
]
formats
=
query
(
'''SELECT formats.* FROM formats
...
...
templates/course.html
View file @
a83d4165
...
...
@@ -91,7 +91,7 @@
{% endif %}
<ul
class=
"list-inline pull-right"
>
<li>
<a
class=
"fa fa-rss-square"
aria-hidden=
"true"
href=
"{{url_for('feed', handle=course.handle)}}"
style=
"text-decoration: none"
></a>
<a
class=
"fa fa-rss-square"
aria-hidden=
"true"
href=
"{{url_for('
rss_
feed', handle=course.handle)}}"
style=
"text-decoration: none"
></a>
</li>
{% if ismod() %}
<li>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment