File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ <h1 class="card-header display-5">{{ question['title'] }}</h1>
3838 < small class ="text-muted d-block ">
3939 Posted by:
4040 {%- if question['users_id'] -%}
41- < td > < a href ="/user/ {{ question['users_id'] }} "> {{ question['username'] }} </ a > </ td >
41+ < td > < a href ="{{ url_for('user_page', user_id= question['users_id']) }} "> {{ question['username'] }} </ a > </ td >
4242 {% else %}
4343 < td > {{ question['username'] }} </ td >
4444 {% endif %}
@@ -81,7 +81,7 @@ <h1 class="card-header display-5">{{ question['title'] }}</h1>
8181 < small class ="text-muted d-block ">
8282 Posted by:
8383 {%- if comment['users_id'] -%}
84- < td > < a href ="/user/ {{ comment['users_id'] }} "> {{ comment['username'] }} </ a > </ td >
84+ < td > < a href ="{{ url_for('user_page', user_id= comment['users_id']) }} "> {{ comment['username'] }} </ a > </ td >
8585 {% else %}
8686 < td > {{ comment['username'] }} </ td >
8787 {% endif %}
@@ -160,7 +160,7 @@ <h5 class="card-title">
160160 Posted on: {{ answer['submission_time'] }}
161161 Posted by:
162162 {%- if answer['users_id'] -%}
163- < td > < a href ="/user/ {{ answer['users_id'] }} "> {{ answer['username'] }} </ a > </ td >
163+ < td > < a href ="{{ url_for('user_page', user_id= answer['users_id']) }} "> {{ answer['username'] }} </ a > </ td >
164164 {% else %}
165165 < td > {{ answer['username'] }} </ td >
166166 {% endif %}
You can’t perform that action at this time.
0 commit comments