OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/polymer/polymer/polymer.html"> | |
2 <link rel="stylesheet" href="issue_banner_dir.css"> | |
Jeremy Klein
2015/04/06 18:49:57
I think you can get rid of this now because of the
apacible
2015/04/06 21:02:43
Done.
| |
3 <polymer-element name="issue-banner"> | |
4 <template> | |
5 <link rel="stylesheet" href="issue_banner.css"> | |
6 <template bind="{{issue}}"> | |
Jeremy Klein
2015/04/06 18:49:57
I'm confused why you need this and how things like
apacible
2015/04/06 21:02:43
Talked offline. Removed this line and added issue.
| |
7 <template if="{{isBlocking}}"> | |
8 <div class="blocking-issue-header"> | |
9 <div class="sad-face"></div> | |
10 <div> | |
11 <span class="blocking-issue-title">{{title}}</span> | |
12 <span class="blocking-issue-message">{{message}}</span> | |
13 </div> | |
14 </div> | |
15 <div> | |
16 <template if="{{optActionText}}"> | |
17 <button class="button-secondary" title="{{optActionType}}" | |
18 on-click="{{onClickAction}}"> | |
19 {{optActionText}} | |
20 </button> | |
21 </template> | |
22 <button class="button-action" title="{{defaultActionType}}" | |
23 on-click="{{onClickAction}}"> | |
24 {{defaultActionText}} | |
25 </button> | |
26 </div> | |
27 </template> | |
28 <template if="{{!isBlocking}}"> | |
29 <div class="non-blocking-issue"> | |
30 <span>{{message}}</span> | |
31 <br/> | |
32 <template if="{{optActionText}}"> | |
33 <span class="issue-action" title="{{optActionType}}" | |
34 on-click="{{onClickAction}}"> | |
35 {{optActionText}}</span> | |
36 </template> | |
37 <span class="issue-action" title="{{defaultActionType}}" | |
38 on-click="{{onClickAction}}"> | |
39 {{defaultActionText}}</span> | |
40 </div> | |
41 </template> | |
42 </template> | |
43 </template> | |
44 <script src="issue_banner.js"></script> | |
45 </polymer-element> | |
OLD | NEW |