Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 9da770f

Browse files
author
daniaki
committed
small template changes
1 parent 202aeaa commit 9da770f

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

accounts/permissions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ def instances_for_user_with_group_permission(user, model, group_type):
129129
return []
130130

131131
if model == ExperimentSet:
132-
instances = ExperimentSet.objects.all()
132+
instances = ExperimentSet.objects.all().order_by("accession")
133133
elif model == Experiment:
134-
instances = Experiment.objects.all()
134+
instances = Experiment.objects.all().order_by("accession")
135135
elif model == ScoreSet:
136-
instances = ScoreSet.objects.all()
136+
instances = ScoreSet.objects.all().order_by("accession")
137137
else:
138138
raise TypeError("Unrecognised model type {}.".format(model))
139139

main/static/main/main/css/base.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ a:hover {
106106
border: 1px solid white;
107107
}
108108

109+
table td,
110+
table th {
111+
white-space: nowrap !important;
112+
width: 1% !important;
113+
}
114+
table {
115+
max-width: none;
116+
}
117+
109118
.styled-table .input-group .form-control,
110119
.table {
111120
color: black;

main/templates/main/base.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
<li class="nav-item">
6060
<a class="nav-link" href="#">Download</a>
6161
</li>
62-
<li class="nav-item">
63-
<a class="nav-link" href="{% url 'main:usage_guide'%}">Usage</a>
64-
</li>
6562
<li class="nav-item">
6663
<a class="nav-link" href="{% url 'main:documentation'%}">Documentation</a>
6764
</li>

0 commit comments

Comments
 (0)