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
a83d4165
Commit
a83d4165
authored
7 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Renamed rss feeds and made them the default feed on course pages
parent
901e77ba
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
feeds.py
+1
-1
1 addition, 1 deletion
feeds.py
templates/course.html
+1
-1
1 addition, 1 deletion
templates/course.html
with
2 additions
and
2 deletions
feeds.py
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
templates/course.html
+
1
−
1
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>
...
...
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