Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add item_description method to reports to fix RSS feed

  • Loading branch information...
commit d6ce93ce794a5c7a6df35561555dcb9d49839385 1 parent 6f9d616
@tobami authored
View
6 codespeed/models.py
@@ -478,6 +478,12 @@ def get_absolute_url(self):
return reverse("changes") + "?rev=%s&exe=%s&env=%s" % (
self.revision.commitid, self.executable.id, self.environment.name)
+ def item_description(self):
+ if self.summary == "":
+ return "no significant changes"
+ else:
+ return self.summary
+
def _save_tablecache(self, data):
self._tablecache = json.dumps(data)
View
2  codespeed/static/css/main.css
@@ -292,7 +292,7 @@ table.reports caption a { color: black; }
table.reports caption a img {
border: 0; vertical-align: middle; height: 14px; margin-bottom: 1px; }
table.reports td { padding: 0.4em; }
-table.reports td span { opacity: 0.4; }
+table.reports tr.status-none td.summary { opacity: 0.4; }
table.tablesorter { margin-right: 0.8em; margin-bottom: 0.8em; }
View
2  codespeed/templates/codespeed/reports.html
@@ -4,7 +4,7 @@
<tbody>
{% for report in reports %} <tr class="status-{{ report.colorcode }}">
<td><label title="lessisbetter" style="display:none;">{{ report.get_absolute_url }}</label>{{ report.revision }}</td><td>{{ report.executable }}@{{ report.environment}}</td>
- <td class="summary">{% ifequal report.summary "" %}<span class="nochanges">no significant changes</span>{% else %}{{ report.summary }}{% endifequal %}</td>
+ <td class="summary">{{ report.item_description }}</td>
</tr>{% endfor %}
</tbody>
</table>

0 comments on commit d6ce93c

Please sign in to comment.
Something went wrong with that request. Please try again.