Browse Source

Correcting page titles

jeremiewcz 2 years ago
parent
commit
ac229cb67c
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      app/main/views.py

+ 9
- 5
app/main/views.py View File

@@ -70,7 +70,8 @@ def about():
70 70
     page = Page.query.get_or_404(1)
71 71
     return [ 'displayMain',
72 72
            { "content": render_template("main_pages/about.html",
73
-                                        page=page) } ]
73
+                                        page=page),
74
+             "title": "À propos"} ]
74 75
 
75 76
 @main.route('/contrib')
76 77
 @partial_content
@@ -79,7 +80,8 @@ def contribute():
79 80
     page = Page.query.get_or_404(2)
80 81
     return [ 'displayMain',
81 82
              { "content": render_template("main_pages/contribute.html",
82
-                                          page=page) } ]
83
+                                          page=page),
84
+               "title": "Contribuer"} ]
83 85
 
84 86
 #########################
85 87
 #  Podcasts             #
@@ -97,7 +99,8 @@ def podcasts():
97 99
     return [ 'displayMain',
98 100
              { "content": render_template("main_pages/podcasts.html",
99 101
                                           podcasts=podcasts,
100
-                                          pagination=pagination) } ]
102
+                                          pagination=pagination),
103
+               "title": "Podcasts" } ]
101 104
 
102 105
 @main.route('/podcasts/<id>')
103 106
 @partial_content
@@ -115,7 +118,8 @@ def play(id):
115 118
     podcast = Podcast.query.get_or_404(id)
116 119
     return [ "player.load.bind(player)",
117 120
              { "link" : podcast.link,
118
-               "title" : podcast.name } ]
121
+               "title" : podcast.name,
122
+               "channel": podcast.channel_id } ]
119 123
 
120 124
 ##############################
121 125
 #  Contributors/Collectives  #
@@ -192,7 +196,7 @@ def agenda(id):
192 196
     event = Event.query.get_or_404(id)
193 197
     return [ 'displayMain',
194 198
              { "content": render_template("notimplemented.html"),
195
-               "title": ""} ]
199
+               "title": event.name} ]
196 200
 
197 201
 #########################
198 202
 #  Static stuff         #

Loading…
Cancel
Save