Skip to content

Commit

Permalink
Add item_description method to reports to fix RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
tobami committed Aug 24, 2012
1 parent 6f9d616 commit d6ce93c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions codespeed/models.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -478,6 +478,12 @@ def get_absolute_url(self):
return reverse("changes") + "?rev=%s&exe=%s&env=%s" % ( return reverse("changes") + "?rev=%s&exe=%s&env=%s" % (
self.revision.commitid, self.executable.id, self.environment.name) 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): def _save_tablecache(self, data):
self._tablecache = json.dumps(data) self._tablecache = json.dumps(data)


Expand Down
2 changes: 1 addition & 1 deletion codespeed/static/css/main.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ table.reports caption a { color: black; }
table.reports caption a img { table.reports caption a img {
border: 0; vertical-align: middle; height: 14px; margin-bottom: 1px; } border: 0; vertical-align: middle; height: 14px; margin-bottom: 1px; }
table.reports td { padding: 0.4em; } 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; } table.tablesorter { margin-right: 0.8em; margin-bottom: 0.8em; }


Expand Down
2 changes: 1 addition & 1 deletion codespeed/templates/codespeed/reports.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<tbody> <tbody>
{% for report in reports %} <tr class="status-{{ report.colorcode }}"> {% 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><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 %} </tr>{% endfor %}
</tbody> </tbody>
</table> </table>
Expand Down

0 comments on commit d6ce93c

Please sign in to comment.