Skip to content

Commit c8ce786

Browse files
committed
Updated Trac query styling to be more compact.
1 parent c557e59 commit c8ce786

File tree

4 files changed

+31
-5
lines changed

4 files changed

+31
-5
lines changed

scss/trachacks.scss

+26-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,27 @@ pre.wiki {
108108
white-space: pre-wrap;
109109
}
110110

111-
#content.ticket {
112-
width: auto;
111+
#generic:has(#guest) {
112+
// Reduce the options available to guests.
113+
#query .option {
114+
display: none;
115+
}
116+
}
117+
#content {
118+
margin-top: 1em;
119+
.ticket {
120+
width: auto;
121+
}
122+
.report-result {
123+
margin-top: 1em;
124+
}
125+
.paging {
126+
margin: 0;
127+
}
128+
// Hide the first paging options as also available at the bottom.
129+
.report-result + .paging {
130+
display: none;
131+
}
113132
}
114133

115134
.foldable {
@@ -199,6 +218,7 @@ div[role="main"]{
199218
li {
200219
border-right: 0;
201220
padding: 1em;
221+
margin-top: 0;
202222

203223
a {
204224
font-size: 16px;
@@ -232,6 +252,10 @@ div[role="main"]{
232252
}
233253
}
234254

255+
#ctxtnav {
256+
display: none;
257+
}
258+
235259
#mainnav {
236260
border: 0;
237261
border-radius: 0;

trac-env/conf/trac.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ name = Django
139139
url = https://code.djangoproject.com/
140140

141141
[query]
142-
default_anonymous_query = status!=closed&desc=1&order=id
143-
default_query = status!=closed&desc=1&order=id
142+
default_anonymous_query = description~=&status!=closed&desc=1&order=id&col=id&col=summary&col=type&col=owner&col=component
143+
default_query = description~=&status!=closed&desc=1&order=id&col=id&col=summary&col=type&col=owner&col=component
144144

145145
[repositories]
146146
.dir = /django-mirror

trac-env/htdocs/css/output.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

trac-env/templates/site.html

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ <h1>Issues</h1>
5353
</div>
5454
</div>
5555

56+
<py:if test="req.authname == 'anonymous' or req.authname == ''"><div id="guest"></div></py:if>
57+
5658
<py:if test="req.environ['PATH_INFO'] == '/'">
5759
<div class="container sidebar-right">
5860
<div role="main">

0 commit comments

Comments
 (0)