File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ <h3>CommitFests</h3>
95
95
</ p >
96
96
97
97
< hr >
98
- < h3 > Your Dashboard</ h3 >
98
+ < h3 id =" dashboard " > Your Dashboard</ h3 >
99
99
100
100
{% if not user.is_authenticated %}
101
101
< div class ="my-4 ">
Original file line number Diff line number Diff line change @@ -146,6 +146,13 @@ def home(request):
146
146
return render (request , "home.html" , context )
147
147
148
148
149
+ @login_required
150
+ def me_legacy_redirect (request ):
151
+ # Previously we would have a dedicated dashboard page, now this
152
+ # is on the homepage.
153
+ return HttpResponseRedirect ("/#dashboard" )
154
+
155
+
149
156
def commitfest_history (request ):
150
157
cfs = list (CommitFest .objects .order_by ("-enddate" ))
151
158
Original file line number Diff line number Diff line change 19
19
re_path (r"^api/v1/commitfests/needs_ci$" , apiv1 .commitfestst_that_need_ci ),
20
20
re_path (r"^help/$" , views .help ),
21
21
re_path (r"^commitfest_history/$" , views .commitfest_history ),
22
+ re_path (r"^me/$" , views .me_legacy_redirect ),
22
23
re_path (r"^archive/$" , views .archive ),
23
24
re_path (r"^activity(?P<rss>\.rss)?/" , views .activity ),
24
25
re_path (r"^(\d+)/$" , views .commitfest ),
You can’t perform that action at this time.
0 commit comments