OLD | NEW |
---|---|
1 <!-- | 1 <!-- |
2 Copyright 2014 The Chromium Authors. All rights reserved. | 2 Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. | 4 found in the LICENSE file. |
5 --> | 5 --> |
6 | 6 |
7 <polymer-element name="ct-commit" attributes="data"> | 7 <polymer-element name="ct-commit" attributes="data"> |
8 <template> | 8 <template> |
9 <style> | 9 <style> |
10 :host { | 10 :host { |
(...skipping 19 matching lines...) Expand all Loading... | |
30 border-top: 5px solid white; | 30 border-top: 5px solid white; |
31 border-left: 5px solid #555; | 31 border-left: 5px solid #555; |
32 border-bottom: 5px solid white; | 32 border-bottom: 5px solid white; |
33 } | 33 } |
34 </style> | 34 </style> |
35 <a href="{{data.revision|changesetURL}}">{{data.revision}}</a> {{data.summar y}} <em>{{data.author}}</em> | 35 <a href="{{data.revision|changesetURL}}">{{data.revision}}</a> {{data.summar y}} <em>{{data.author}}</em> |
36 </template> | 36 </template> |
37 <script> | 37 <script> |
38 Polymer({ | 38 Polymer({ |
39 changesetURL: function(revision) { | 39 changesetURL: function(revision) { |
40 // FIXME: This is the last caller of trac.*. Find a better home for this . | |
40 return trac.changesetURL(revision); | 41 return trac.changesetURL(revision); |
abarth-chromium
2014/07/21 06:36:27
CTCommit could know it's URL.
ojan
2014/07/21 19:58:04
Yup. I fix this in https://codereview.chromium.org
| |
41 }, | 42 }, |
42 }); | 43 }); |
43 </script> | 44 </script> |
44 </polymer-element> | 45 </polymer-element> |
OLD | NEW |