OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> | |
2 <polymer-element name="issue-banner"> | |
3 <template> | |
4 <link rel="stylesheet" href="issue_banner.css"> | |
5 <template if="{{issue.isBlocking}}"> | |
6 <div class="blocking-issue-header"> | |
7 <div class="sad-face"></div> | |
8 <div> | |
9 <span class="blocking-issue-title">{{issue.title}}</span> | |
10 <span class="blocking-issue-message">{{issue.message}}</span> | |
11 </div> | |
12 </div> | |
13 <div> | |
14 <template if="{{issue.optActionText}}"> | |
15 <button class="button-secondary" title="{{issue.optActionType}}" | |
16 on-click="{{onClickAction}}"> | |
17 {{issue.optActionText}} | |
18 </button> | |
19 </template> | |
20 <button class="button-action" title="{{issue.defaultActionType}}" | |
21 on-click="{{onClickAction}}"> | |
22 {{issue.defaultActionText}} | |
23 </button> | |
24 </div> | |
25 </template> | |
26 <template if="{{!issue.isBlocking}}"> | |
27 <div class="non-blocking-issue"> | |
28 <span>{{issue.message}}</span> | |
29 <br/> | |
James Hawkins
2015/04/06 21:52:47
Don't use <br>. Adjust margins instead (although
apacible
2015/04/06 22:50:41
Done. Also updated above <spans> to <div> so I don
| |
30 <template if="{{issue.optActionText}}"> | |
31 <span class="issue-action" title="{{issue.optActionType}}" | |
32 on-click="{{onClickAction}}"> | |
33 {{issue.optActionText}}</span> | |
34 </template> | |
35 <span class="issue-action" title="{{issue.defaultActionType}}" | |
36 on-click="{{onClickAction}}"> | |
37 {{issue.defaultActionText}}</span> | |
James Hawkins
2015/04/06 21:52:48
nit: Move </span> to a new line.
apacible
2015/04/06 22:50:41
Done. Moved above one as well.
| |
38 </div> | |
39 </template> | |
40 </template> | |
41 <script src="issue_banner.js"></script> | |
42 </polymer-element> | |
OLD | NEW |