Skip to content

Commit

Permalink
Fix some organization bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
cuom1999 committed Jun 25, 2024
1 parent a711fb9 commit 3c99a2c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion judge/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,13 +665,13 @@ def get_object(self, queryset=None):


class OrganizationRequestBaseView(
AdminOrganizationMixin,
DetailView,
OrganizationHomeView,
TitleMixin,
LoginRequiredMixin,
SingleObjectTemplateResponseMixin,
SingleObjectMixin,
AdminOrganizationMixin,
):
model = Organization
slug_field = "key"
Expand Down
1 change: 0 additions & 1 deletion resources/organization.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
display: flex;
flex-direction: column;
justify-content: space-between;
height: 300px;
margin-bottom: 1em;
text-decoration: none;
color: inherit;
Expand Down
3 changes: 0 additions & 3 deletions templates/organization/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
{% endif %}
{{ make_tab_item('public', 'fa fa-globe', request.path + '?tab=public', _('Public')) }}
{{ make_tab_item('private', 'fa fa-lock', request.path + '?tab=private', _('Private')) }}
{% if request.user.is_superuser %}
{{ make_tab_item('import', 'fa fa-table', url('import_users'), _('Import'), force_new_page=True) }}
{% endif %}
</div>
{% endblock %}

Expand Down
1 change: 0 additions & 1 deletion templates/user/user-left-sidebar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<div class="left-sidebar">
{{ make_tab_item('list', 'fa fa-trophy', url('user_list'), _('Leaderboard')) }}
{{ make_tab_item('friends', 'fa fa-users', url('user_list') + '?friend=true', _('Friends')) }}
{{ make_tab_item('organizations', 'fa fa-university', url('organization_list'), _('Groups')) }}
{% if request.user.is_superuser %}
{{ make_tab_item('import', 'fa fa-table', url('import_users'), _('Import'), force_new_page=True) }}
{% endif %}
Expand Down

0 comments on commit 3c99a2c

Please sign in to comment.