Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: chrome/browser/resources/settings/about_page/about_page.html

Issue 1987813004: MD Settings: About page, implementing update status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://md-settings/about_page/about_page_browser_prox y.html"> 2 <link rel="import" href="chrome://md-settings/about_page/about_page_browser_prox y.html">
3 <link rel="import" href="chrome://md-settings/i18n_setup.html">
4 <link rel="import" href="chrome://md-settings/icons.html">
3 <link rel="import" href="chrome://md-settings/settings_page/main_page_behavior.h tml"> 5 <link rel="import" href="chrome://md-settings/settings_page/main_page_behavior.h tml">
4 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa ges.html"> 6 <link rel="import" href="chrome://md-settings/settings_page/settings_animated_pa ges.html">
5 <link rel="import" href="chrome://md-settings/settings_page/settings_section.htm l"> 7 <link rel="import" href="chrome://md-settings/settings_page/settings_section.htm l">
6 <link rel="import" href="chrome://md-settings/settings_shared_css.html"> 8 <link rel="import" href="chrome://md-settings/settings_shared_css.html">
9 <link rel="import" href="chrome://resources/cr_elements/icons.html">
10 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
11 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
12 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
7 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html"> 13 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
9 15
10 <if expr="chromeos"> 16 <if expr="chromeos">
11 <link rel="import" href="chrome://md-settings/about_page/detailed_build_info.htm l"> 17 <link rel="import" href="chrome://md-settings/about_page/detailed_build_info.htm l">
12 <link rel="import" href="chrome://md-settings/settings_page/settings_subpage.htm l"> 18 <link rel="import" href="chrome://md-settings/settings_page/settings_subpage.htm l">
13 </if> 19 </if>
14 20
15 <dom-module id="settings-about-page"> 21 <dom-module id="settings-about-page">
16 <link rel="import" type="css" href="chrome://md-settings/settings_page.css"> 22 <link rel="import" type="css" href="chrome://md-settings/settings_page.css">
17 <template> 23 <template>
18 <style include="settings-shared main-page-styles"> 24 <style include="settings-shared main-page-styles">
19 span { 25 span {
20 font-size: 20px; 26 font-size: 20px;
21 margin-top: auto; 27 margin-top: auto;
22 margin-bottom: auto; 28 margin-bottom: auto;
23 } 29 }
24 30
25 img { 31 img {
26 -webkit-margin-end: 10px; 32 -webkit-margin-end: 10px;
27 } 33 }
34
35 iron-icon {
36 -webkit-margin-end: var(--iron-icon-spacing);
37 }
38
39 iron-icon.check-icon {
40 fill: var(--paper-blue-600);
41 }
42
43 iron-icon.error-icon {
44 fill: var(--paper-red-600);
45 }
28 </style> 46 </style>
29 <settings-section page-title="$i18n{aboutPageTitle}" 47 <settings-section page-title="$i18n{aboutPageTitle}"
30 current-route="[[currentRoute]]" section="about"> 48 current-route="[[currentRoute]]" section="about">
31 <settings-animated-pages id="pages" current-route="{{currentRoute}}" 49 <settings-animated-pages id="pages" current-route="{{currentRoute}}"
32 section="about"> 50 section="about">
33 <neon-animatable id="main"> 51 <neon-animatable id="main">
34 <div class="settings-box"> 52 <div class="settings-box">
35 <img id="product-logo" 53 <img id="product-logo"
36 srcset="chrome://theme/current-channel-logo@1x 1x, 54 srcset="chrome://theme/current-channel-logo@1x 1x,
37 chrome://theme/current-channel-logo@2x 2x" alt=""> 55 chrome://theme/current-channel-logo@2x 2x" alt="">
38 <span>$i18n{aboutProductTitle}</span> 56 <span>$i18n{aboutProductTitle}</span>
39 </div> 57 </div>
40 <div class="settings-box two-line"> 58 <div class="settings-box two-line">
41 <!-- TODO(dpapad): Implement this. --> 59 <div hidden="[[!shouldShowUpdateStatus_(currentUpdateStatusEvent_)]] ">
60 <iron-icon class$="[[getIconCssClass_(currentUpdateStatusEvent_)]] "
61 icon="[[getIcon_(currentUpdateStatusEvent_)]]"
62 src="[[getIconSrc_(currentUpdateStatusEvent_)]]">
63 </iron-icon>
64 </div>
42 <div class="start"> 65 <div class="start">
43 <div>Your device is up to date</div> 66 <div hidden="[[!shouldShowUpdateStatus_(currentUpdateStatusEvent_) ]]">
44 <div class="secondary">Version Foo.bar.baz</div> 67 [[getUpdateStatusMessage_(currentUpdateStatusEvent_)]]
68 </div>
69 <div class="secondary">$i18n{aboutBrowserVersion}</div>
45 </div> 70 </div>
46 <div class="secondary-action"> 71 <if expr="chromeos">
47 <paper-button class="secondary-button">Check for update</paper-but ton> 72 <paper-button class="secondary-action">Check for update</paper-butto n>
48 </div> 73 </if>
49 </div> 74 </div>
50 <div id="help" class="settings-box two-line" on-tap="onHelpTap_"> 75 <div id="help" class="settings-box two-line" on-tap="onHelpTap_">
51 $i18n{aboutGetHelpUsingChrome} 76 $i18n{aboutGetHelpUsingChrome}
52 </div> 77 </div>
53 <if expr="_google_chrome"> 78 <if expr="_google_chrome">
54 <div id="reportIssue" class="settings-box" on-tap="onReportIssueTap_"> 79 <div id="reportIssue" class="settings-box" on-tap="onReportIssueTap_">
55 $i18n{aboutReportAnIssue} 80 $i18n{aboutReportAnIssue}
56 </div> 81 </div>
57 </if> 82 </if>
58 <if expr="chromeos"> 83 <if expr="chromeos">
59 <div class="settings-box" on-tap="onDetailedBuildInfoTap_"> 84 <div class="settings-box" on-tap="onDetailedBuildInfoTap_">
60 <!-- TODO(dpapad): Localize string. --> 85 <!-- TODO(dpapad): Localize string. -->
61 Detailed build info 86 Detailed build info
62 </div> 87 </div>
63 </if> 88 </if>
64 </neon-animatable> 89 </neon-animatable>
65 <if expr="chromeos"> 90 <if expr="chromeos">
66 <template is="dom-if" name="detailed-build-info"> 91 <template is="dom-if" name="detailed-build-info">
67 <settings-subpage page-title="Detailed build information"> 92 <settings-subpage page-title="Detailed build information">
68 <settings-detailed-build-info></settings-detailed-build-info> 93 <settings-detailed-build-info></settings-detailed-build-info>
69 </settings-subpage> 94 </settings-subpage>
70 </template> 95 </template>
71 </if> 96 </if>
72 </settings-animated-pages> 97 </settings-animated-pages>
73 </settings-section> 98 </settings-section>
74 </template> 99 </template>
75 <script src="about_page.js"></script> 100 <script src="about_page.js"></script>
76 </dom-module> 101 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698