Skip to content

Commit

Permalink
Move submission to user tab
Browse files Browse the repository at this point in the history
  • Loading branch information
cuom1999 committed Apr 12, 2024
1 parent 2f64c87 commit 5147980
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 0 additions & 6 deletions templates/user/user-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@
</button>
</form>
{% endif %}
<br>
<div>
<a href="{{ url('all_user_submissions', user.username) }}" class="button small" style="width:145px">
{{ _('View submissions') }}
</a>
</div>
{% if request.user.is_authenticated %}
<br>
<button class="small btn-midnightblue" style="width:145px" id="message-button">
Expand Down
1 change: 1 addition & 0 deletions templates/user/user-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% block tabs %}
{{ make_tab('about', 'fa-info-circle', url('user_page', user.user.username), _('About')) }}
{{ make_tab('problems', 'fa-puzzle-piece', url('user_problems', user.user.username), _('Problems')) }}
{{ make_tab('submissions', 'fa-code', url('all_user_submissions', user.username), _('Submissions')) }}
{% if request.user.is_superuser and user.user != request.user and not user.user.is_superuser %}
{{ make_tab('impersonate', 'fa-eye', url('impersonate-start', user.user.id), _('Impersonate')) }}
{% endif %}
Expand Down

0 comments on commit 5147980

Please sign in to comment.