Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ Assumes that `code.djangoproject.com` and `djangoproject.com` are stored in the
same directory (adjust paths if needed).

1. Copy the generated CSS:
``cp ../djangoproject.com/static/css/*.css trac-env/htdocs/css/``
``cp ../djangoproject.com/djangoproject/static/css/*.css trac-env/htdocs/css/``
2. Copy _utils.scss (needed by trackahacks.scss):
``cp ../djangoproject.com/static/scss/_utils.scss scss/``
``cp ../djangoproject.com/djangoproject/scss/_utils.scss scss/``
3. Copy the javascript directory:
``cp -rT ../djangoproject.com/static/js trac-env/htdocs/js``
``cp -rT ../djangoproject.com/djangoproject/static/js trac-env/htdocs/js``
4. Compile trackhacks.scss:
``make compile-scss``

Expand Down
45 changes: 43 additions & 2 deletions scss/trachacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,26 @@ pre.wiki {
white-space: pre-wrap;
}

#content.ticket {
width: auto;
// Reduce the options available to guests.
body.guest #query .option {
display: none;
}

#content {
margin-top: 1em;
.ticket {
width: auto;
}
.report-result {
margin-top: 1em;
}
.paging {
margin: 0;
}
// Hide the first paging options as also available at the bottom.
.report-result + .paging {
display: none;
}
}

.foldable {
Expand Down Expand Up @@ -246,6 +264,7 @@ div[role="main"]{
li {
border-right: 0;
padding: 1em;
margin-top: 0;

a {
font-size: 16px;
Expand Down Expand Up @@ -450,3 +469,25 @@ div[role="main"]{
}
}
}

/* Mobile */

@media (max-width: 767px) {
#metanav {
ul {
li {
padding: 1em 0.5em !important;
}
}
}

#filters {
min-width: inherit;
overflow: scroll;
}

div:has(.listing.tickets) {
min-width: inherit;
overflow: scroll;
}
}
2 changes: 1 addition & 1 deletion trac-env/htdocs/css/output.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion trac-env/templates/django_theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ <h2>${_("Context Navigation")}</h2>
</head>

{# we don't use the modernizer js lib anymore, but the css still uses some classes from it #}
<body class="mdzr-boxshadow mdzr-svg">
# set guest_class = "guest" if not req.is_authenticated else ""
<body class="mdzr-boxshadow mdzr-svg ${guest_class}">
# block body

# include 'site_header.html' ignore missing
Expand Down
4 changes: 2 additions & 2 deletions trac-env/templates/site_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<li><a href="https://www.djangoproject.com/download/">Download</a></li>
<li><a href="https://docs.djangoproject.com/">Documentation</a></li>
<li><a href="https://www.djangoproject.com/weblog/">News</a></li>
<li><a href="https://www.djangoproject.com/community/">Community</a></li>
<li>
<a href="https://github.com/django/django" target="_blank" rel="noopener">Code</a>
</li>
<li class="active"><a href="/">Issues</a></li>
<li><a href="https://www.djangoproject.com/foundation/">About</a></li>
<li><a href="https://www.djangoproject.com/community/">Community</a></li>
<li><a href="https://www.djangoproject.com/foundation/">Foundation</a></li>
<li><a href="https://www.djangoproject.com/fundraising/">&#9829; Donate</a></li>
</ul>
</nav>
Expand Down
Loading