allura
Revision | e72b1a08111c973b2d53a306a467a37fad0ebc6b (tree) |
---|---|
Zeit | 2012-07-06 18:34:11 |
Autor | Anton Kasyanov <mind1master@gmai...> |
Commiter | Anton Kasyanov |
[#4481] ticket:101 added votes to ticket index
@@ -276,7 +276,11 @@ class Ticket(VersionedArtifact, ActivityObject, VotableArtifact): | ||
276 | 276 | milestone_s=self.milestone, |
277 | 277 | status_s=self.status, |
278 | 278 | text=self.description, |
279 | - snippet_s=self.summary) | |
279 | + snippet_s=self.summary, | |
280 | + votes_up_i=self.votes_up, | |
281 | + votes_down_i=self.votes_down, | |
282 | + votes_total_i=(self.votes_up-self.votes_down) | |
283 | + ) | |
280 | 284 | for k,v in self.custom_fields.iteritems(): |
281 | 285 | result[k + '_s'] = unicode(v) |
282 | 286 | if self.reported_by: |
@@ -84,6 +84,8 @@ class SearchHelp(ffw.Lightbox): | ||
84 | 84 | <li>User who created the ticket - reported_by_s</li> |
85 | 85 | <li>Status of the ticket - status</li> |
86 | 86 | <li>Title of the ticket - summary</li> |
87 | +<li>Votes up/down of the ticket - votes_up/votes_down</li> | |
88 | +<li>Votes total of the ticket - votes_total</li> | |
87 | 89 | <li>Custom field - the field name with an underscore in front like _custom</li> |
88 | 90 | </ul> |
89 | 91 | <h2>Example searches</h2> |