Skip to content

Commit 7553ce0

Browse files
committed
Style releases table
1 parent 134e3a0 commit 7553ce0

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

warehouse/static/sass/blocks/_table.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
td {
6666
border: 0;
6767
background-color: transparent;
68+
padding: 10px 0;
6869
}
6970

7071
th,
@@ -140,4 +141,26 @@
140141
}
141142
}
142143
}
144+
145+
&--releases {
146+
box-sizing: border-box;
147+
table-layout: fixed;
148+
word-wrap: break-word;
149+
150+
.table__version,
151+
.table__date {
152+
width: 130px;
153+
}
154+
155+
.table__options {
156+
width: 110px;
157+
text-align: right;
158+
}
159+
160+
@media only screen and (max-width: $tablet){
161+
.table__summary {
162+
display: none;
163+
}
164+
}
165+
}
143166
}

warehouse/templates/manage/project.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,26 @@ <h1>{{ project.name }}</h1>
6565
{% block main %}
6666
<h2>Releases ({{ project.releases|length }})</h2>
6767
{% if project.releases %}
68-
<table class="table table--light">
68+
<table class="table table--light table--releases">
6969
<thead>
70-
<th>Version</th>
71-
<th>Release Date</th>
72-
<th>Summary</th>
73-
<th></th>
70+
<th class="table__version">Version</th>
71+
<th class="table__date">Release Date</th>
72+
<th class="table__summary">Summary</th>
73+
<th class="table__options"></th>
7474
</thead>
7575
<tbody>
7676
{% for release in project.releases %}
7777
<tr>
78-
<td><a href="TODO: link to release edit page">{{ release.version }}</a></td>
79-
<td><time class="-js-relative-time" datetime="{{ release.created|format_datetime('yyyy-MM-ddTHH:mm:ss') }}">{{ release.created|format_date()}}</time></td>
80-
<td>
78+
<td class="table__version"><a href="TODO: link to release edit page">{{ release.version }}</a></td>
79+
<td class="table__date"><time class="-js-relative-time" datetime="{{ release.created|format_datetime('yyyy-MM-ddTHH:mm:ss') }}">{{ release.created|format_date()}}</time></td>
80+
<td class="table__summary">
8181
{% if release.summary %}
8282
{{ release.summary }}
8383
{% else %}
8484
&mdash;
8585
{% endif %}
8686
</td>
87-
<td>
87+
<td class="table__options">
8888
<div class="dropdown">
8989
<button class="dropdown__trigger button">
9090
Options

0 commit comments

Comments
 (0)